I am upgrading the infragistics version from 11.1 to 13.2 and in my webhierarchical data grid there is a radio butto under template column and i need to handle the click event of radio button.
Which was possible in ClickCellbutton event of ultrawebgrid .
Please can you let me know its equivalent.
Thanks in Advance
Hello,
Thank you for contacting Infragistics!
To replace the ClickCellButton I recommend you use the Click event of the WebDataGrid. To set it up you would go into the ClientEvents collection of the WebDataGrid:
http://help.infragistics.com/doc/ASPNET/2014.2/CLR4.0/?page=Infragistics4.Web.v14.2~Infragistics.Web.UI.GridControls.GridClientEvents~Click.html
In the event itself you can call args.get_type(); to see if the object clicked was a cell, row, header, or footer.
Please let me know if you have any further questions concerning this matter.
Hello Mike,
i am not able to see the events in code behind as they are client events.
I need to handle the click event of the radio button which is placed under the template column.
As soon as it is checked i need to perform server side operation and show the data of the selected row in a new frame.
Priyanka
Hello Priyanka,
One way you could go about this is through the use of the WebDataGrid's ItemCommand event. This event will fire whenever a WebControl that is contained within the grid would trigger a postback. In the case of your radio button you would want to make sure it has runat="server" set on it and then also provide a CommandArgument and CommandName. As soon as you click on the radio button the ItemCommand event should fire on the server, where you can extract the CommandArgument and CommandName values from the event arguments and perform the logic that you need to execute.
Hi
I need to post back the webhierarchical data grid from my javascript.
Previously when i had ultrawebgrid there was a function igtbl_dopostback which was used to do the postback.
Please can you suggest me the equivalent function for webhierarchical data grid.
with ultrawebgrid following was done.
var row = igtbl_getActiveRow(gridId)
if (row != null) {
var cell = igtbl_getActiveRow(gridId).getCell(iCellIndex);
if (document.submitPage){ submitPage(gridId,'CellButtonClick:'+cell.Element.id);
}else{ igtbl_doPostBack(gridId,'CellButtonClick:'+cell.Element.id);}
Priyanka,
The WebHierarchicalDataGrid doesn't have a method to cause a post back and you will need an alternative solution. You could look into using the __doPostBack method provided by ASP.NET or maybe there is another alterative that doesn't require a post back. For example if the post back is only to refresh data in another control or part of the page, maybe an asynchronous call can be made back to the server to get the updated information and the updates can be done on the client.
In your previous update you mentioned that you want to show data in a new frame? What is the new frame? If this is an actual frame where you are requesting a URL, can you use a query string to pass that information needed to get the data as part of the request to the other URL?
Let me know if you have any questions with this matter.