or
| <script type="text/javascript" src="/js/jquery132.js"></script> |
| <telerik:RadScriptManager runat="server" ID="RadScriptManager1" > |
| <Scripts> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <script type="text/javascript"> |
| window.$ = $telerik.$; |
| </script> |
| <telerik:RadInputManager ID="RadInputManager1" runat="server"> |
| <telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" ErrorMessage="BAD!"> |
| <Validation |
| Location="/Services/Membership.svc" |
| ValidateOnEvent="All" |
| Method="ValidNewUsername" |
| /> |
| <TargetControls> |
| <telerik:TargetInput ControlID="TextBox1" /> |
| </TargetControls> |
| <ClientEvents OnValidating="onValidating" /> |
| </telerik:TextBoxSetting> |
| </telerik:RadInputManager> |
| <script type="text/javascript"> |
| function onValidating(sender, args) { |
| alert('hello'); |
| } |
| </script> |
| RadGrid1.ClientSettings.Scrolling.AllowScroll = true; |
| RadGrid1.ClientSettings.Scrolling.FrozenColumnsCount = 2; |
| RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = true; |
| <telerik:RadGrid Width="800px" OnItemCommand="radGridItemCommand" Skin="Hay" ID="RadGrid1" runat="server" AllowPaging="True" AllowFilteringByColumn="True" AllowSorting="True" GridLines="None" AutoGenerateColumns="False" OnItemDataBound="radGridItemDataBound" OnNeedDataSource="radGridNeedDataSource" > |
| <MasterTableView Height="100%" PageSize="24" RetrieveAllDataFields="false" AllowSorting="true"> |
| <Columns> |
| <telerik:GridBoundColumn FilterImageUrl="img/arrow-icon.png" FilterControlWidth="50" DataField="Data_Date" SortExpression="Data_Date" HeaderText="Date" DataFormatString="{0:MM/dd/yy}"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn Visible="false" FilterControlWidth="15" DataField="Data_Hour" SortExpression="Data_Hour" HeaderText="Hour2"></telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn FilterImageUrl="img/arrow-icon.png" FilterControlWidth="15" HeaderText="Hour" SortExpression="Data_Hour"> |
| <ItemTemplate> |
| <asp:LinkButton ID="hourLinkButton" runat="server" CommandName="Click" CausesValidation="false" CommandArgument='<% # Eval("Data_Date").ToString() + "|" + Eval("Data_Hour").ToString() %>' Text='<% #Eval("Data_Hour") %>' OnClick="AntennaLevel"/> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn Visible="false" FilterControlWidth="15" DataField="Week" SortExpression="Week" HeaderText="Week"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn Visible="false" FilterControlWidth="15" DataField="Month" SortExpression="Month" HeaderText="Month"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn FilterControlWidth="15" Visible="False" DataField="MarketNum" SortExpression="MarketNum" HeaderText="MarketNum"></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <AlternatingItemStyle BackColor="#c9fca3"/> |
| </telerik:RadGrid> |

RadTreeView1.DataFieldID =
"pagename";
RadTreeView1.DataFieldParentID =
"parentpagename";
RadTreeView1.DataTextField =
"pagename";
RadTreeView1.DataValueField =
"pagename";
Thanks
Matt
Hello,
I have three RadListBoxes on a page. First one is populated by a SQLDataSource. When an item is clicked on the first RadListBox, I want the item to add to the other two listboxes. The problem is that only one RadlistBox will populate with the selected item depending on which list box is last in the procedure.
I’m using VS 2008, and RadControls version: 2009.2.826.35
Sample ASP:
| <telerik:RadListBox ID="RadListBox1" runat="server" DataSourceID="dsEDBRecords" AllowDelete="true" Style="text-align: left;" AutoPostBack="true" DataTextField="FIELDNAME" DataValueField="UVALUE" Height="150px" Width="200px" OnSelectedIndexChanged="SetValue1" SelectionMode="Single" > </telerik:RadListBox> |
| <telerik:RadListBox ID="RadListBox2" runat="server" AllowDelete="false" Style="text-align: left;" AutoPostBack="true" Height="150px" Width="200px"></telerik:RadListBox> |
| <telerik:RadListBox ID="RadListBox3" runat="server" AllowDelete="false" Style="text-align: left;" AutoPostBack="true" Height="150px" Width="200px" ></telerik:RadListBox> |
| Protected Sub SetValue1(ByVal sender As Object, ByVal e As System.EventArgs) |
| Dim lbListBox As RadListBox = sender |
| Dim strItem As RadListBoxItem = lbListBox.SelectedItem |
| Dim strItem1 As RadListBoxItem = lbListBox.SelectedItem |
| RadListBox3.Items.Add(strItem) |
| RadListBox3.ClearSelection() |
| RadListBox2.Items.Add(strItem1) |
| RadListBox2.ClearSelection() |
| End Sub |