I have the following two RadListBoxes defined to allow switching items between them. All was well until I defined OnInserted and OnDelted, which fail to fire.
I need to take action when anything is added to or removed from the right list box. This is they only way I'm aware of doing it, but like I said the events don't fire.
Here's the associated code:
<telerik:RadListBox runat="server" ID="rlbxAvailableRoles" Height="210" Width="230" AllowTransfer="true" TransferToID="rlbxSelectedRoles" ButtonSettings-AreaWidth="35px" AllowTransferOnDoubleClick="true" ButtonSettings-ShowTransferAll="false"> <HeaderTemplate> <h3>Available Roles</h3> </HeaderTemplate></telerik:RadListBox><telerik:RadListBox runat="server" ID="rlbxSelectedRoles" Height="210" Width="190" EmptyMessage="Select at least one role" OnInserted="rlbxSelectedRoles_Inserted" OnDeleted="rlbxSelectedRoles_Deleted"> <HeaderTemplate> <h3>Selected Roles</h3> </HeaderTemplate></telerik:RadListBox>
protected void rlbxSelectedRoles_Inserted(object sender, RadListBoxEventArgs e){ LoadPrimaryRoleDropdown();}protected void rlbxSelectedRoles_Deleted(object sender, RadListBoxEventArgs e){ LoadPrimaryRoleDropdown();}
Any help would be appreciated

RadGrid grid = (RadGrid)sender;
GridColumn column = grid.Columns.FindByUniqueName("ViewBus");
(column as GridHyperLinkColumn).NavigateUrl = "www.google.ca";
Hi,
I have Activity object which has childActivity which is a dynamic data type.
DataSource to grid is list of Activity.
How can assign few columns of grid with values of child object.
I was trying like below code.
col.UniqueName = item.Name;
col.HeaderText = item.DisplayName;
(col as GridDateTimeColumn).DataField = Activity.childActivity.Name;

Here is my code:
function RadGrid1_Command(sender, args) { var commandName = args.get_commandName(); if (commandName == "RebindGrid") { var editedrow = args.get_itemIndexHierarchical(); //var itemIndex = args.get_commandArgument();
var master = $find('<%= RadGrid1.ClientID %>').get_masterTableView(); $.ajax({ type: "POST", url: "Default.aspx/...", data: "{year: 1}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { var response = data.d; alert(response.message); } }); } }I can't get the row index from get_itemIndexHierarchical() (JS error function does not exist). Also get_commandArgument() is blank if I try that.
Can anyone help?


<telerik:RadColorPicker ID="colpickschedule_color" runat="server" Preset="Standard"when opening the form it says "specified cast is not valid".. this happanes when field in database contains some hex-color as string (#cacaca) and for DbNull-Values...
ShowIcon="True" SelectedColor='<%# Bind("color") %>'>
</telerik:RadColorPicker>
What i want is to add a custom filter to one column that will takes the date from this column as first date and a date in another column as the second date to do a between like filter with these two dates.
I added a custom filter with FilterListOptions="VaryByDataTypeAllowCustom".
then i added an handler like this (my second date is in "Col2") but this isn't working. What am i missing?:
Protected Sub gvAbsence_ItemCommand(source As Object, e As GridCommandEventArgs) Handles gvAbsence.ItemCommand
If e.CommandName = RadGrid.FilterCommandName Then
Dim filterPair As Pair = DirectCast(e.CommandArgument, Pair)
If filterPair.First.ToString() = "Custom" Then
Dim colName As String = filterPair.Second.ToString()
If colName = "Col0" Then
Dim tbPattern As TextBox = TryCast(TryCast(e.Item, GridFilteringItem)(colName).Controls(0), TextBox)
Dim values As String() = tbPattern.Text.Split(" "c)
If values.Length = 1 Then
e.Canceled = True
Dim newFilter As String = "(([" + filterPair.Second + "] <='" + values(0) + "') AND ([" + "Col2" + "] >='" + values(0) + "'))"
If gvAbsence.MasterTableView.FilterExpression = "" Then
gvAbsence.MasterTableView.FilterExpression = newFilter
Else
gvAbsence.MasterTableView.FilterExpression = (Convert.ToString("((" + gvAbsence.MasterTableView.FilterExpression + ") AND (") & newFilter) + "))"
End If
gvAbsence.Rebind()
End If
End If
End If
End If
End Sub
Hi,
I'm attempting to print a RadGrid via JavaScript in Chrome. I'm getting one of two results:
Everything works as intended in IE 11.
Here is my code. Thanks!
01.function RadButtonRCCPrint_ClientClick() {02. var previewWnd = window.open('about:blank', '', '', false);03. var sh = '<%= ClientScript.GetWebResourceUrl(RadGridRCC.GetType(), String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css", RadGridRCC.Skin)) %>';04. var styleStr = "<html><head><style>.RadGrid_Windows7 .rgRow td, .RadGrid_Windows7 .rgAltRow td { border: solid 1px #000000; }</style><link href='" + sh + "' rel='stylesheet' type='text/css'></link></head>";05. var htmlContent = styleStr + "<body>" + $find('<%= RadGridRCC.ClientID %>').get_element().outerHTML + "</body></html>";06. previewWnd.document.open();07. previewWnd.document.write(htmlContent);08. previewWnd.document.close();09. previewWnd.print();10. previewWnd.close();11.}I am having an issue with the data binding associated with expanding/collapsing items as well as with sorting. For my RadTreeList data source, I am setting the data source to an ArrayList with information that is parsed from a web service. Whenever I expand/collapse an item or attempt to sort the items by a column, the data in the ArrayList is lost, and the RadTreeList refreshes to be empty. Is there a way to save the data stored in the ArrayList between data bindings? Extracting the data takes some time, so communicating with the web service each time is not very feasible. Tell me if I need to provide any more detail.
Thanks!!
Ok, I've been banging my head against my computer trying to get this to work for a couple days, and been searching these forums for anybody having the same problem, but so far no luck. Here's the situation. Seems simple enough:
1. I have a Radgrid.
2. The radgrid has an editform
3. The editform has many controls, dropdown lists, textboxes etc.
4. Controls INSIDE THE EDIT FORM have to change in response to user activity INSIDE THE EDIT FORM. For example, dropdownlist2 has to be loaded with different options in response to the user's selecting options in dropdownlist1. These two dropdown lists are ON THE EDIT FORM, they are NOT columns in the radgrid.
The problem seems to be that I cannot respond to events, such as "ItemChanged" or "TextChanged" or any other event of a control that is INSIDE AN EDITFORM.
I'm making all the upper case letters because every no matter how I word my Google search on this problem, I get answered related to how to respond to events of controls that are in COLUMNS of the RADGRID, which is NOT my problem. The Radgrid's ItemCommand event does not fire when a control is clicked on that is INSIDE THE EDITFORM.
Any help would be most appreciated. Thanks!
- Paul
