I have a 7.3 UltraWebGrid bound to a two-table hierarchical dataset. It loads and works fine, i.e. the parent rows load first and when you click to expand a parent row, it then pulls down and loads the related child rows. Here is my question: When I click on a child row, what event is fired? Clearly, it is causing a postback, but it is not firing SelectedRowsChange or ActiveRowChange as I would have expected. I am not doing any updates, I simply need to capture the row being clicked. Am I missing something here?
Hello.
Clicking a child row will activate it just like any other row. What is the grids DisplayLayout.CellClickAction property set to? This will determine the action that is taken when a cell is single clicked. In order to get the grid to post back when you click, you have to handle the grids server side Click, DblClick, ActiveRowChange, ActiveCellChange, ExpandRow, CollapseRow, SelectedCellsChange, SelectedRowsChange, or SelectedColumnsChange events. Does it post back when you click a cell in the child row and not in the parent row? There are no events specific to child rows being activated or de-activated. You can handle the various row events and look at the eventargs to determine which row caused the action.
On the client there are some events that fire: BeforeRowActivate, AfterRowActivate, BeforeRowCollapsed, AfterRowCollapsed, BeforeRowExpanded, AfterRowExpanded, BeforeSelectChange, AfterSelectChange, CellClick, DblClick, RowSelectorClick, and others. What client and server side events do you have handled? Are you causing a postback from a client side event?
I have the following question on a related issue: Once I set my UltraWebGrid to LoadOnDemand XML, with a RowsRange value of 50, I am able to doubleclick on any one row prior to the 51st and the doubleclick event is fired as usual; scrolling further down (causing an AJAX load), and doubleclickig on a row, no event is fired.
Since I am using the doubleclicking of rows ro direct the user to a full view/edit screen of the items shown on the grid, it is important for me to have this functionality.
any suggestions?
Hi all,
Please refer to the following thread for more information on this matter:
http://community.infragistics.com/forums/p/8783/317145.aspx#317145
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support