When we are looking at a schedule with a recurring event from 1am to 3am Sunday to Tuesday, the overflow icons showing only on Monday and Tuesday. It doesn't show up on Sunday. See attached image as example.
Is there a way to do this?
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.
}