Hi,
I have an MVCxGridView.
I need to get specific cell data from the grid using ASPxClientGridView. I add the MVCxGridView to the page using the following;
JavaScriptsettings.CustomJSProperties = (s, e) =>
{
MVCxGridView g = s as MVCxGridView;
Dictionary<int, object> dict = new Dictionary<int, object>();
int startIndex = g.PageIndex * g.SettingsPager.PageSize;
int endIndex = startIndex + g.SettingsPager.PageSize;
for (int i = startIndex; i < endIndex; i++)
{
dict[i] = g.GetRowValues(i, "shippingnumber");
}
e.Properties.Add("shipmentData" + ViewBag.Count, dict);
};
Now I have a seperate button which calls a client side event and does some ajax work. I want to get hold of these shipments numbers.
Can someone please tell me how to do this? So far I have;
C#var shipmentGridView = ASPxClientGridView.Cast('@shipmentGridViewId');
however I cant see from the documentation hot to then access the vars other than using a callback which I would rather aovid please.