| <FilterTemplate> | |
| <telerik:RadComboBox | |
| ID="filterNationalities" | |
| DataSourceID="dbNationalities" | |
| DataValueField="ID" | |
| DataTextField="description" | |
| AutoPostBack="false" | |
| runat="server" | |
| AppendDataBoundItems="true" | |
| SelectedValue='<%#((GridItem)Container).OwnerTableView.GetColumn("NationalityID").CurrentFilterValue %>' | |
| OnClientSelectedIndexChanged="FilterByNationality" | |
| OnItemCreated="TranslateNationalities" | |
| Width="75" | |
| ZIndex="10000000"> | |
| <Items> | |
| <telerik:RadComboBoxItem /> | |
| </Items> | |
| </telerik:RadComboBox> | |
| |
|
| <telerik:RadScriptBlock ID="scriptFilterNationality" runat="server"> | |
| <script type="text/javascript"> | |
| function FilterByNationality(sender, args) { | |
| var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>"); | |
| tableView.filter("NationalityID", args.get_item().get_value(), "EqualTo"); | |
| } | |
| </script> | |
| </telerik:RadScriptBlock> | |
| </FilterTemplate> | |
| protected void TranslateNationalities( object sender, RadComboBoxItemEventArgs e ) { |
| RadComboBoxItem dataItem = e.Item; |
| dataItem.Text = "translate text"; |
| } |
<telerik:GridTemplateColumn DataField="City" HeaderText="City" UniqueName="City">
<EditItemTemplate>
<telerik:RadComboBox ID="CB_City" AppendDataBoundItems="true" Height="100px" runat="server" Skin="Black"
DataTextField="CityName" DataValueField="CityName" DataSourceID="SqlDataSourceCity"
SelectedValue='<%# Bind("City")%>' AutoPostBack="true">
</telerik:RadComboBox>
</EditItemTemplate>
<ItemTemplate>
<%# Eval("City")%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<asp:SqlDataSource
ID="SqlDataSourceTown"
runat="server"
ConnectionString="<%$ ConnectionStrings:connectionString %>"
ProviderName="System.Data.SqlClient"
SelectCommand="sp_town_list"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter
ControlID="??????????????????" <<<<<<<< CB_City ControlID Doesnt work :((
DefaultValue="New York"
Name="CityName"
PropertyName="SelectedValue"
Type="String" />
</SelectParameters>
Hi All,
I have used telerik tree view control in my code to select users as info and to field.
<telerik:RadTreeView ID="tvToDirectorate" runat="server" CheckChildNodes="True" OnNodeClick="tvToDirectorate_NodeClick"
OnDataBinding="tvToDirectorate_DataBinding" OnNodeDataBound="tvToDirectorate_NodeDataBound1"
DataFieldParentID="lParentID" DataTextField="sDisplayName" DataValueField="lValueID"
DataFieldID="lValueID" OnNodeExpand="tvToDirectorate_NodeExpand" >
<NodeTemplate>
<table cellpadding="0" cellspacing="0" width="100%" align="right">
<tr>
<td style="width: 50%">
<asp:CheckBox ID="rdTo" name='<%# Container.Value %>' runat="server" GroupName="toinfo" Visible="true" />
</td>
<td style="width: 50%">
<asp:CheckBox ID="rdInfo" name='<%# Container.Value %>' runat="server" GroupName="toinfo" Visible="true"/>
</td>
</tr>
</table>
</NodeTemplate>
</telerik:RadTreeView>
The checkboxes are dynamically creating name with different IDs. Now I want following.
1. I want to access name in JavaScript so that I would be able to select one checkbox as “Info” or “To”. Currently at a time both can be selected but that’s not good.
2. Secondly if I am using radio button that is a good choice. But I want to deselect when double click radio button. And I cannot be able to access the radio button on run time.
On main window I am using telerik grid control where using
<EditFormSettings EditFormType="WebUserControl" PopUpSettings-Modal="true" PopUpSettings-Width="800px" UserControlName="~/UserControls/ucMailRecipient.ascx">
<PopUpSettings Modal="True" Width="800px" />
</EditFormSettings>
When click on “Add Recipients” popup window with “Modal=True” open where we selects the users.
We cannot use “document.getElementById("rdTo").checked;” since its dynamically creating.
And may be name should like “$ctl_TreeView_” etc may be.
Please if anybody helps to tackle this problem. Many thanks for your help.
Thanks

hi all,
i am new to ajax. i have downloaded AjaxControlToolkit 3.5 and right click on the toolkit and browse to the AjaxControlToolkit.dll
now i have all the ajax control in but i am not able to drag and drop AutoCompleteextender and some other controls to the design view
but at the same some controls can be draged and droped in to the design view
i have right click on the Textbox but i cant find "Add Extender" in the option
Please help
Kind Regards