Hello
I am attempting to access the index of a row selected in a radGrid using itemIndexHierarchical, however I am getting an incorrect index in certain cases.
I am binding my data on the client using set_dataSource(json) and dataBind(). If there are no rows when the grid is first populated, then I add one (or several) by adding an item to my json, then doing set_dataSource and dataBind(), then call itemIndexHierarchical(), the index that gets returned is 1 higher than it should be.
Any workaround to this (other than counting the number of items in the grid before I do anything, if there are 0, then subtract 1 from the value I get back from itemIndexHierarchical())?
I am attempting to access the index of a row selected in a radGrid using itemIndexHierarchical, however I am getting an incorrect index in certain cases.
I am binding my data on the client using set_dataSource(json) and dataBind(). If there are no rows when the grid is first populated, then I add one (or several) by adding an item to my json, then doing set_dataSource and dataBind(), then call itemIndexHierarchical(), the index that gets returned is 1 higher than it should be.
Any workaround to this (other than counting the number of items in the grid before I do anything, if there are 0, then subtract 1 from the value I get back from itemIndexHierarchical())?