Hello:
Does documentation exist where I could find the appropriate javascript functions to use to access values in individual cell items of a currently selected row? I have created a JS event handler to handle the RowSelectionChanging event on the client side. I have successfully enabled Intellisense by adding a webscript manager and temporarily removing the reference to the master page. However, when I assign a variable the collection returned by getCurrentSelectedRows(), no methods appear for this variable under intellisense. Does a function such as get_item or get_cell exist in this collection? Even more specifically the values I must access are values inside textboxes that sit on top of the cell. I know that on the server side "FindControl" can be used.
In the end, my goal is to handle this event, access the values from each textbox of the row and then send a manual AJAX request to update the database with these values.
Any input would be much appreciated. Below is my javascript function. It is very simple because I have not been able to proceed beyond this point as I don't know which functions to use to access cell items.
Thank you,
gridRowSelectionChanging(sender, e) {
///<summary>
///
///</summary>
///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param>
///<param name="e" type="Infragistics.Web.UI.RowSelectionChangingEventArgs"></param>
//Returns a Read Only collection of the currently selected rows
currentSelectedRows = e.getCurrentSelectedRows();
Also, I tried the following:
function
///<summary>//////</summary>///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param>///<param name="e" type="Infragistics.Web.UI.RowSelectionChangingEventArgs"></param>//Returns a Read Only collection of the currently selected rows
var currentSelectedRows = e.getCurrentSelectedRows();
if (currentSelectedRows.get_length() == 1) {
alert(currentSelectedRows.get_Item(0));
}
But I receive a JS error stating “Object doesn’t support this property or method.”
Thanks,
I also tried the following:
currentSelectedRows.get_Item(0);
currentSelectedRows.getItem(0);
currentSelectedRows.get_item(0);
currentSelectedRows.Item(0);
I still get the same error "Object doesn't support this property or method."