I've a radpanel bar and I've 3 radpnelItems with a radgrid in each one.
My question is I need to find out the selected rows in a grid.
I did the foll:
RadGrid m_obRecipientGroupGrid = (RadGrid)m_ctlRecipientPanelBar.FindItemByValue("RadPanelRecipientGroup").FindControl("m_radRecipientGroupGrid");
foreach (GridDataItem obItem in m_obRecipientGroupGrid.SelectedItems)
int iGroupId = Convert.ToInt32(obItem["GroupId"].Text);
Note:; m_ctlRecipientPanelBar is the name of the panel bar
m_radRecipientGroupGrid is the name of the radgrid
When i checked a checkbox(it automatically means the rows is selected right) and click on save(in my page), I do the above code, but it never goes to this loop though i've selected few checkboxes.
and as a result the list is empty.
But the same logic (like the same code) i did in my radgrid without a radpanel item and it worked. why didn't this when i put the radgrid in a radpanel bar doesn't give me the selected rows.
pls help me. how do i do this???
Note: i also have allowmultirowselect = true.
m_radRecipientGroupGrid .clientsettings.selecting.AllowRowSelect = true;
Pls do help me