Hi !
Is the first time i've got this problem and i'm sure is not unique for my next years.
Explanations :
A listview (with 5 records for example) generate 5 rows with link, data and buttons(full postback) and 2 buttons for ajaxPostback.
<asp:ListView runat="server" ID="lvTest" OnItemCommand="lvTest_ItemCommand" DataKeyNames="Idkey" > .... </asp:ListView>
2 buttons :
- One :
CommandArgument='<%#Eval("MyIDForTreatment1") %>' CommandName="CmNameButton1"- Second :
CommandArgument='<%#Eval("MyIDForTreatment2") %>' CommandName="CmNameButton2"RadAjaxManager (conditional is for specifics button for fullpostback (example : download document):
<telerik:RadAjaxManager ID="RAM1" runat="server" UpdatePanelsRenderMode="Inline" ClientEvents-OnRequestStart="conditionalPostback" > <telerik:AjaxSetting AjaxControlID="lvTest" EventName="ItemCommand"><UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Zone1" /> </UpdatedControls></telerik:AjaxSetting> </telerik:RadAjaxManager> in code behind :
Protected Sub lvTest_ItemCommand(sender As Object, e As ListViewCommandEventArgs) Case "CmNameButton1" 'update content of zone 1 and visible true Case "CmNameButton2" 'update content of zone 2 and visible true End SelectEnd Sub
how to specify if i click on button1 : update Zone1
how to specify if i click on button2 : update Zone2
can't set commandName in AjaxSetting eventname ? for distinguished sender event ?
thanks for your help !
