I'm going crazy and I'm not sure what the problem is.
Here is my situation:
My main page (aspx) contains two usercontrol (ascx)
first one is basically a tree. second one is a radgrid and some textbox I fill on row selection itemcommand.
The second one is dinamically loaded depending on tree's node value has a radgrid. I mean, I load different ascx by the node's value but they all are a radgrid and textboxes.
main Page
PlaceHolder_UC is dinamically loaded this way
function AAAAAAA()....
I call AAAAAAA on the nodeclick event catch on the aspx raised by my first ascx
Ascx2 radgrid is filled, i click on the rows, itemcommand fires, I fill the textboxes. everything is ok
here come my problem
I click on a different tree's node, AAAAAAA is called, ascx2 radgrid is filled with a new set of data, i click on the rows and itemcommand never fires
here's my ascx2 (summaring)
Thank you
Here is my situation:
My main page (aspx) contains two usercontrol (ascx)
first one is basically a tree. second one is a radgrid and some textbox I fill on row selection itemcommand.
The second one is dinamically loaded depending on tree's node value has a radgrid. I mean, I load different ascx by the node's value but they all are a radgrid and textboxes.
main Page
<td><qsf:RTV runat="server" ID="CatTree1" ></qsf:RTV> </td> <td style="width:80%;vertical-align:top"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"><ContentTemplate><asp:PlaceHolder ID="PlaceHolder_UC" runat="server"></asp:PlaceHolder></ContentTemplate> <Triggers><asp:AsyncPostBackTrigger ControlID="CatTree1" /></Triggers></asp:UpdatePanel> </td>PlaceHolder_UC is dinamically loaded this way
function AAAAAAA()....
Dim UControl As ControlIf .... controlPath = "Arrangements2.ascx"End IfUControl = CType(LoadControl(controlPath), UserControl)If controlPath <> "" Then If Not (UControl Is Nothing) Then 'ascx dinamically attached PlaceHolder_UC.Controls.Clear() PlaceHolder_UC.Controls.Add(UControl) ..... Dim myUC As ASP.Arrangements2 = DirectCast(tempControl, ASP.Arrangements2) 'here I Call function on second ascx, fill radgrid whit data myUC.InitControl(value) .... End IfEnd IfI call AAAAAAA on the nodeclick event catch on the aspx raised by my first ascx
Ascx2 radgrid is filled, i click on the rows, itemcommand fires, I fill the textboxes. everything is ok
here come my problem
I click on a different tree's node, AAAAAAA is called, ascx2 radgrid is filled with a new set of data, i click on the rows and itemcommand never fires
here's my ascx2 (summaring)
<asp:UpdatePanel ID="UpdatePanelAscx" runat="server" UpdateMode="Conditional"><ContentTemplate><telerik:RadGrid ID="RadGridArrangement" runat="server"OnItemCommand="RadGridArrangement_ItemCommand">.....<ClientSettings enablePostBackOnRowClick="True"> <Selecting AllowRowSelect="True" /></ClientSettings>.........<Triggers> <asp:AsyncPostBackTrigger ControlID="RadGridArrangement" EventName="OnItemCommand" /></Triggers></asp:UpdatePanel>Thank you