Author Topic: Summary in TOP  (Read 410 times)

hirehop

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
    • View Profile
Summary in TOP
« on: May 18, 2023, 09:18:05 pm »
Hello
i have small Issue with summary in Top its not editable but its allow to enter the cell

how to disable to enter the cell

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Summary in TOP
« Reply #1 on: May 18, 2023, 09:58:26 pm »
Could you please share a small test case in jsfiddle.

hirehop

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Summary in TOP
« Reply #2 on: May 22, 2023, 06:57:23 pm »
Here I have sent you jsfiddle link

i think i have got the issue but i dont know the solution
issue is i am tring to set max character 45 that is the issue

jsfiddle js_line_no : 23

https://jsfiddle.net/hirakwebguru/nsfvb51h/36/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Summary in TOP
« Reply #3 on: May 23, 2023, 04:22:00 pm »
1. Please use editor.type = "textbox" instead of "input"

2. Add editable callback to prevent editing of summary row in your case:

Code: [Select]
editable: function(ui) {
  return !ui.rowData.pq_gtitle;
},

https://jsfiddle.net/vm4j0orb/

hirehop

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Summary in TOP
« Reply #4 on: May 26, 2023, 02:32:45 pm »
thanks a lot