Dynamic combobox doesn't respond in Grid in batch edit mode

2 posts, 0 answers
  1. Petr
    Petr avatar
    33 posts
    Member since:
    Jul 2015

    Posted 26 Mar 2019 Link to this post

    Hi,

    I have RadGrid in batch edit mode which includes 2 different comboboxes. Both of them has your own template. One of the combobox is the same for all rows, but values in second combobox depends on value in another column, the value works like a filter. I check several discussions how to do it and I implement combobox with client functions on DropDownOpening (get value from row column) and ItemsRequesting (cancel event for second event) events. Everything works fine and data are loaded correctly in combobox. But I cannot select any value. If I open drop down list, I can scroll it and see everything, but it doesn't respond to any click. Also hover style is not applied for items. It looks like combobox is not fully loaded, but I don't see any error in JS or any other else.

    Did you see this kind of problem anytime?

    Maybe there is a problem that I have 2 different comboboxes in grid. But one of them works without problems and second shows correct data and reload it correctly for each row. Maybe there is some problem with template, but I cannot find it and the same template works in all other comboboxes in my application.

    Do you have idea what I can check?


    Thanks a lot for any advice,
    Petr
  2. Eyup
    Admin
    Eyup avatar
    4072 posts

    Posted 29 Mar 2019 Link to this post

    Hi Petr,

    Batch editing is based fully on client-side and it is essentially different than other server-side modes:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-batch-edit-mode


    I'm afraid this requirement is not supported with Batch editing. You can use InPlace edit mode instead, which resembles Batch editing:
    https://demos.telerik.com/aspnet-ajax/dropdowntree/examples/applicationscenarios/dropdowntreeingrid/defaultcs.aspx?product=grid
    https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/edit-mode/in-place

    You can also add AJAX to simulate behavior similar to client-side performance.

    For cascading comboboxes editing implementation, you can also check the samples provided here:
    https://www.telerik.com/forums/radcombobox-cascading-inside-radgrid#GxsIQqyyPkqj1Za-mNbalg

    I hope this will prove helpful.

    Regards,
    Eyup
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top