Hi Guys,
I have a radajaxpanel on a page. inside the radajax panel, i have a radgrid, a button, a label and a radwindow.
On the click event of the button, i am showing the radwindow using RadWindow.visibleOnLoad = true
On RadWindow, i have a button, on the click event of this button, i am deleting some rows from the database and setting up a message on the label and also setting it's visible property to true. I am also using radGrid.Rebind() , radGrid.SelectedIndexes.Clear() and RadWindow.visibleOnLoad = false
But none of these controls are updating after the request. Pop is still visible, label is not visible and radgrid is not refreshed.
So i wrote some javascipt code
in the above code , pnlProcessList is the ID of RadAjaxPanel. This code is successfully closing the radWindow, refreshing the radGrid.
But still have two problems, selected indexes are not cleared and label is not visible.
Please help me on this. I am not sure what i am doing wrong.
Thanks,
Gaurav
I have a radajaxpanel on a page. inside the radajax panel, i have a radgrid, a button, a label and a radwindow.
On the click event of the button, i am showing the radwindow using RadWindow.visibleOnLoad = true
On RadWindow, i have a button, on the click event of this button, i am deleting some rows from the database and setting up a message on the label and also setting it's visible property to true. I am also using radGrid.Rebind() , radGrid.SelectedIndexes.Clear() and RadWindow.visibleOnLoad = false
But none of these controls are updating after the request. Pop is still visible, label is not visible and radgrid is not refreshed.
So i wrote some javascipt code
//Close pop up
string
script =
string
.Format(
"$find('{0}').close();"
, radwindowClearReason.ClientID);
pnlProcessList.ResponseScripts.Add(script);
//Clear selected rows
script =
string
.Format(
"$find('{0}').clearSelectedItems();"
, grdProcessList.ClientID);
pnlProcessList.ResponseScripts.Add(script);
//refresh grid
script =
string
.Format(
"$find('{0}').ajaxRequest();"
, pnlProcessList.ClientID);
pnlProcessList.ResponseScripts.Add(script);
in the above code , pnlProcessList is the ID of RadAjaxPanel. This code is successfully closing the radWindow, refreshing the radGrid.
But still have two problems, selected indexes are not cleared and label is not visible.
Please help me on this. I am not sure what i am doing wrong.
Thanks,
Gaurav