I have a Repeater object on my page. In the Repeater ItemTemplate, I have the following RadComboBox
<
telerik:RadComboBox
ID
=
"rcboList"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"true"
runat
=
"server"
/>
When this portion of my page is loaded, contents are dynamically loaded to the above combo box, depending on certain criteria. To further clarify, for each item in the repeater, the contents within rcboList are different.
All though the contents are different, each repeated RadComboBox should behave the same, with a CheckBox beside each item. I can populate my lists and I see these check boxes without issue, however, when my user clicks the button to return the data to the server, there is no data in rcboList.CheckedItems. I figured I tried to iterate over the RadComboBox.Items collection and see if I could get the values from their.
Interestingly, only the first item in the list is marked as selected, but none of the items are marked as checked.
Can I use the RadComboBox this way in an asp:Repeater, or is this simply not possible?
Thank you.
Is there anywhere to find the full list of client side properties and methods for the tools?
For example on here there is no mention of the set_text or set_value methods of the AutoCompleteBoxEntry object so I had to find demos and rely on guesswork to figure that out(I can't even find set_value method of the AutoCompleteBoxEntry mentioned anywhere on the website).
Is there some more complete documentation that I'm missing somewhere? It would be very nice to have this information on hand, I've been finding that I've had to look through a lot of various demos just to try and figure out method names recently.
On My RadGrid I have a checkbox column
<telerik:GridTemplateColumn UniqueName="colPrimaryProcedure" HeaderText="" ItemStyle-HorizontalAlign="Center"><HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<asp:checkbox ID="chkPrimary" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
In the itemDatBound event I'm ading an onCLick attribute to fire a Javascript function.
Case "Treatment Codes"
chkPri.Attributes.Add("onclick", [String].Format("setTreatment(this);"))
chkPri.Text = "<span style='font-size:0px;line-height:0px;'>" & e.Item.DataItem("SpecialtyProcedureId") & "</span>"
In the Javascript file I'm getting the clicked on row, and also selecting a value in a RadComboBox, with Checkboxes set to true, and for each ticked row in the Rad Grid, I'm able to select a value in the combo box. This all works as expected.
var checkBox = document.getElementById(theBox.id);
var checkboxText = checkBox.parentElement.innerText.trim();
comboBoxPPFUWL.findItemByValue(checkboxText).set_checked(true);
What I want to do is if a box in unticked in the grid, is to un slect the row in the combo box, I'd have expected the following to work, but it doesn't.
comboBoxPPFUWL.findItemByValue(checkboxText).set_checked(false);
I'm using an old version of the controls 2014.2.618.40 and can't update because of breaking changes in the newer version.
Can anyone help.
Hello,
What I want to achieve is very simple. I have a standard grid that may be grouped by one of the columns. This is achieved using standard RadGrid functionality.
When the user clicks on the chevron of a group I want to toggle the group (expand or collapse it).There seem to be several threads on this type of thing. However, having looked at some of them what is not clear to me is what is the correct approach.
Some of the questions that arise are
If somebody could point me to a simple example of this I would be very thankful. Ideally, the solution would be server side. By the way, I presume that I need to do the following (see below). However, I am not sure "what goes here", if anything?
Thanks in advance,
John.
protected void GridItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName.Equals("ExpandCollapse"))
{
// what goes here ???
}
}
I've a simple page where I've some tabs in radtabstrip. I want to display this web page in a web browser control in a win form application. If I re size the windows form application then the last tab displays in second line. Please note that the scroll bar also displays. Please see the screenshot1.
Here is the code I used in the aspx page.
<%@ Page Language=
"C#"
AutoEventWireup=
"true"
CodeBehind=
"RadTab.aspx.cs"
Inherits=
"PlayGround_WebApplication.RadTab"
%>
<%@ Register Assembly=
"Telerik.Web.UI"
Namespace=
"Telerik.Web.UI"
TagPrefix=
"telerik"
%>
<!DOCTYPE html>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head id=
"Head1"
runat=
"server"
>
<title></title>
<style type=
"text/css"
>
</style>
</head>
<body>
<form id=
"form1"
runat=
"server"
>
<div>
<telerik:RadScriptManager ID=
"RadScriptManager1"
runat=
"server"
>
</telerik:RadScriptManager>
<telerik:RadTabStrip ScrollButtonsPosition=
"Left"
runat=
"server"
ID=
"radTabStrip"
PerTabScrolling=
"true"
ScrollChildren=
"true"
SelectedIndex=
"0"
Width=
"100%"
Style=
"padding-top: 2px;"
>
<Tabs>
<telerik:RadTab runat=
"server"
Text=
"Customer Details"
Value=
"0"
/>
<telerik:RadTab runat=
"server"
Text=
"Practice Info"
Value=
"1"
/>
<telerik:RadTab runat=
"server"
Text=
"Customer & Case Alerts"
Value=
"6"
/>
<telerik:RadTab runat=
"server"
Text=
"Calls & Notes"
Value=
"2"
/>
<telerik:RadTab runat=
"server"
Text=
"Cases"
Value=
"3"
/>
<telerik:RadTab runat=
"server"
Text=
"Accounting"
Value=
"4"
/>
<telerik:RadTab runat=
"server"
Text=
"Sales"
Value=
"5"
/>
<telerik:RadTab runat=
"server"
Text=
"Attachments"
Value=
"7"
/>
<telerik:RadTab runat=
"server"
Text=
"Education Courses"
Value=
"8"
/>
</Tabs>
</telerik:RadTabStrip>
</div>
</form>
</body>
</html>
Please note that this problem is not occurring in my internet explorer browser. I've tested with IE9 & IE11.
I am using telerik version 2015.3.1111.40 . Previously I was using 2014.1.225.40 . The amazing fact is this problem doesn't occur on my previous version. This is occurring on the latest version.
Observation:
Please shed some light on this issue. Thanks
I have a hierarchical grid with EnableHierarchyExpandAll="true"
I would like to set the background color of the ExpandColumn header. I would prefer to do this with a CSS class rather than a CSS selector.
I have the following CSS defined:
.gridHeader
{
background-color:#E1EDF7 !important;
}
in my grid ItemCreated server-side event, I have the following code:
Select Case e.Item.ItemType
Case GridItemType.Header
Dim headerRow As GridHeaderItem = CType(e.Item, GridHeaderItem)
headerRow("ExpandColumn").CssClass = "gridHeader"
End Select
This doesn't seem to work. Any ideas?