radcombobox

How to bind data to radcombobox inside grid EditItemTemplate

谁说胖子不能爱 提交于 2021-01-29 15:47:28
问题 I try to bind data to a radcombobox from server side: Here is my grid: <telerik:RadGrid ID="gvWebUsers" runat="server" OnNeedDataSource="gvWebUsers_NeedDataSource" OnItemCreated="gvWebUsers_ItemCreated" Skin="Gray" AutoGenerateColumns="false" OnItemDataBound="gvWebUsers_ItemDataBound" AllowAutomaticUpdates="true" AllowPaging="true" CssClass="SettingsGrid" Width="99.7%"> <MasterTableView DataKeyNames="UserID" PageSize="15" EditMode="InPlace" > <Columns> <telerik:GridTemplateColumn HeaderText=

How to find textbox in GridView using javascript function fired on “Onclientsideselectedindexchanged” of a radcombobox in same GridView RSS

旧巷老猫 提交于 2020-01-05 07:51:28
问题 I have two controls a TextBox and a radcombobox in ItemTemplate of a GridView. What I want to do is when the event onclientsideselectedindexchanges of radcombobox is fired. I want to show/Hide the TextBox on client side with JavaScript. Basic purpose of this is to avoid post back to show the TextBox which will be DataBound to database. If it is not possible to do on the client-side, then please suggest some alternative on server side. 回答1: In my example, I have a GridView with a template

How to add an additional RadComboBoxItem to data bound RadComboBox?

故事扮演 提交于 2020-01-05 07:35:10
问题 I am using Telerik controls on my aspx page. I have cascading radcombo boxes(dropdown box). I have 3 of them on my page. the values of 2nd rad combo box depends on the 1st and the 3rd depends on selection of 2nd. The thing is that i want to include a select all option in the 3rd dropdown. The values are coming from a database i.e all of them are data bound. How can i add a 'select all' option in the combo boxes? i tried it using parameters.insert function in c#, but does not work. i tried

How to add an additional RadComboBoxItem to data bound RadComboBox?

元气小坏坏 提交于 2020-01-05 07:35:08
问题 I am using Telerik controls on my aspx page. I have cascading radcombo boxes(dropdown box). I have 3 of them on my page. the values of 2nd rad combo box depends on the 1st and the 3rd depends on selection of 2nd. The thing is that i want to include a select all option in the 3rd dropdown. The values are coming from a database i.e all of them are data bound. How can i add a 'select all' option in the combo boxes? i tried it using parameters.insert function in c#, but does not work. i tried

Not able to check and uncheck the checkboxes inside the radcombox

荒凉一梦 提交于 2019-12-25 08:48:35
问题 I am using telerik Radcombobox and in that radcombobox i am using some checkbox like this: But i am not able to check and uncheck the checkboxes which are inside the radcombox. <telerik:RadComboBox ID="rad1" runat="server" Width="200" Font-Names="Arial" DropDownWidth="460" AutoPostBack="true" EmptyMessage="Select Action Type(s)" EnableScreenBoundaryDetection="false" OffsetX="-0"> <HeaderTemplate> <div class="header"> <asp:CheckBox ID="selectAll" CssClass="All" runat="server" Text="Select All"

How can i get all checked items and values in RadTreeView on client side?

我的梦境 提交于 2019-12-24 08:56:14
问题 I have the RadTreeView in the RadCombobox. I need to create function using javascipt because i want to read all checked items and their values after closing of the RadComboBox. How can i get all checked items and values using javascript? This is my source code: function OnClientDropDownClosed() { //Foreach all checked items and save to array //I want to need for example: Text: John Black, Value: 1 } <telerik:RadComboBox ID="RadComboBox1" OnClientDropDownClosed="OnClientDropDownClosed" runat=

RadComboBox changing selected item when clicking on other parts of page

帅比萌擦擦* 提交于 2019-12-13 05:17:41
问题 If I select any item of a RadComboBox, next when I click on other parts of the page then the RadComboBox item is changing. How do I solve this problem? aspx: <telerik:RadComboBox ID="cmbExpCTC" runat="server" MarkFirstMatch="true"> </telerik:RadComboBox> C#: public void FillStatus() { try { cmbExpCTC.Enabled = true; dsLocation = BizRegion.GetCandidateInterviewStatus(hfdcandidateid.Value, hfdjobid.Value, hfdRounds.Value); RadComboBoxItem cItem = new RadComboBoxItem("Sourcing in process",

How to set a RadComboBox that is using a data source to a selected value in codebehind

房东的猫 提交于 2019-12-13 04:14:37
问题 I have a RadComboBox that is bounded by a datasource. I set the datacource to select from a the database using a select query. Run I run the project, I get a complete list of items in the RadComboBox. I want to set the RadComboBox to a selected value, or index in the codebehind. So the RadComboBox will have a value in it once the page is load, instead of it being empty. I have tried to do this with the code like so: RadComboBoxItem item = RCB_PO_NUM.FindItemByText("2000"); item.Selected =

RadComboBox Items Sorting with RadComboBoxSort.None

谁都会走 提交于 2019-12-12 21:03:17
问题 What happens to RadComboBox's Items after you call: myCombo.Sort = RadComboBoxSort.None; myCombo.Items.Sort(); ??? Even when sort option is set to None , Items are sorted, but it is not sorted neither by Text nor Value . An items are ordered by random pattern which make no sense. 回答1: Use SortItems() method instead of Items.Sort(). Documentation says that these approaches are equal: RadComboBox1.SortItems(); RadComboBox1.Items.Sort(); That is not exactly true. If Sort property is set to None,

Object reference not set to an instance of an object when tring to set the selection of a combo box

感情迁移 提交于 2019-12-12 13:34:28
问题 I have a text box and a RadComboBox like this : <asp:TextBox ID="txt_inner_emp_num" runat="server" Width="60px" ontextchanged="txt_inner_emp_num_TextChanged" AutoPostBack="true"></asp:TextBox> <telerik:RadComboBox ID="rad_ddl_inner_emp_name" runat="server" CausesValidation="False" CollapseDelay="0" Culture="ar-EG" ExpandDelay="0" Filter="Contains" ItemsPerRequest="100" MarkFirstMatch="true" Width="380px" EnableAutomaticLoadOnDemand="True" EmptyMessage="-emp name-" ShowMoreResultsBox="True"