<ej:DropDownList ID="ddlRazlogNarudbe" runat="server" OnValueSelect="ddlRazlogNarudbe_ValueSelect" >
<Items>
<ej:DropDownListItem Text="Audi A4" Value="Audi A4"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A5" Value="Audi A5"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A6" Value="Audi A6"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A7" Value="Audi A7"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A8" Value="Audi A8"></ej:DropDownListItem>
</Items>
</ej:DropDownList></div>
<div style="float:left;width:300px">
<ej:DropDownList ID="ddlMTNarudbe" runat="server"/></div><br /><br /><br />
Protected Sub ddlRazlogNarudbe_ValueSelect(sender As Object, e As Syncfusion.JavaScript.Web.DropdownListEventArgs)
If (e.ItemId = 3) Then
ddlMTNarudbe.DataTextField = "CustomerID"
ddlMTNarudbe.DataSource = "http://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/"
ddlMTNarudbe.Query = "ej.Query().from('Customers').take(6)"
ddlMTNarudbe.DataBind()
End If
|
<%@ Register Assembly="Syncfusion.EJ.Web, Version=15.1450.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<asp:ScriptManager runat="server">
. . . . . . . . . . .
</asp:ScriptManager> |
Protected Sub ddlRazlogNarudbe_ValueSelect(sender As Object, e As Syncfusion.JavaScript.Web.DropdownListEventArgs)
If (e.ItemId = 3) Then
ddlMTNarudbe.DataTextField = "CustomerID"
ddlMTNarudbe.Query = "ej.Query().from('Customers').take(6)"
ddlMTNarudbe.DataBind()
End If
dialogpopup.ShowOnInit = True |
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlRazlogNarudbe" />
</Triggers>
<ContentTemplate>
<ej:DropDownList ID="ddlRazlogNarudbe" runat="server" OnValueSelect="ddlRazlogNarudbe_ValueSelect">
<Items>
<ej:DropDownListItem Text="Audi A4" Value="Audi A4"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A5" Value="Audi A5"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A6" Value="Audi A6"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A7" Value="Audi A7"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A8" Value="Audi A8"></ej:DropDownListItem>
</Items>
</ej:DropDownList>
<br />
<br />
<div style="float: left; width: 300px">
<ej:DropDownList ID="ddlMTNarudbe" runat="server" />
</div>
<bold><u>
VEZANI MATERIJAL</u></bold>
<br />
</ContentTemplate>
</asp:UpdatePanel>
|
<ej:Dialog runat="server" ShowOnInit="false" ID="Dialog1">
<DialogContent>
<asp:UpdatePanel runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlRazlogNarudbe" />
</Triggers>
<ContentTemplate>
<ej:DropDownList ID="ddlRazlogNarudbe" runat="server" OnValueSelect="ddlRazlogNarudbe_ValueSelect">
<Items>
<ej:DropDownListItem Text="Audi A4" Value="Audi A4"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A5" Value="Audi A5"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A6" Value="Audi A6"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A7" Value="Audi A7"></ej:DropDownListItem>
<ej:DropDownListItem Text="Audi A8" Value="Audi A8"></ej:DropDownListItem>
</Items>
</ej:DropDownList>
<br />
<br />
<div style="float: left; width: 300px">
<ej:DropDownList ID="ddlMTNarudbe" runat="server" />
</div>
<bold><u>
VEZANI MATERIJAL</u></bold>
<br />
</ContentTemplate>
</asp:UpdatePanel>
</DialogContent>
</ej:Dialog> |