Hi Support
In Radgrid for asp.net , I have large number of records in Grid and there is radio button along side with every row , I also use paging and page size = 20, now how can I know which row number will be if radio button number choose by user or suppose selected RadioButton is 80 then how can i show the radgrid paging in that page where the radiobutton is existed . By default paging starts from 1 but I need to show that page where user choose may be the page is in 8th number paging ,
See the code:
Private void Method(int number)
{
{
btn.checked = true;
RadGrid1.CurrentpageIndex = questionnumber;
}
Any suggestion will be helpful or any demo project
In Radgrid for asp.net , I have large number of records in Grid and there is radio button along side with every row , I also use paging and page size = 20, now how can I know which row number will be if radio button number choose by user or suppose selected RadioButton is 80 then how can i show the radgrid paging in that page where the radiobutton is existed . By default paging starts from 1 but I need to show that page where user choose may be the page is in 8th number paging ,
See the code:
Private void Method(int number)
{
RadGrid1.Allowpaging = false;
RadGrid1.ReBind();
foreach
(GridDataItem item
in
grid1.Items)
{
RadioButton btn = (RadioButton)item.FindControl(
"radiobutton1"
);
string
value = item.GetDataKeyValue(
"Questionnumber
"
).ToString();
if( value == Questionnumber
){
btn.checked = true;
RadGrid1.CurrentpageIndex = questionnumber;
}
RadGrid1.Allowpaging = true;
RadGrid1
.PageSize = 20; RadGrid1.ReBind();
// if I write this then my Radio Button selected is not show and if I not write then paging is not showAny suggestion will be helpful or any demo project