Hello Team,
Recently we have upgraded telerik control ,so application can works fine on IE 11.
In the application ,we have a RadWindow popup to open the SSRS report but suddenly found that print is not working on IE 11 for SSRS (SQL Server 2008 R2)
Is there any possibility to set the browser Compatibility for IE 9 on RadWindow popup like below
I tried in this way <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" > but it didn't work because application is set to work on Edge mode.
I just wanted to set browser Compatibility for IE 9 only for RadWindow popup.
Note : There is a aspx page having user control and from user control, RadWindow popup is getting open to show the SSRS report.
Thanks
Afroz khan
GridAdapter.Grid.ClientSettings.Scrolling.AllowScroll = true;
GridAdapter.Grid.ClientSettings.Scrolling.UseStaticHeaders = true;
GridAdapter.Grid.ClientSettings.Scrolling.FrozenColumnsCount = 1;
GridAdapter.Grid.ClientSettings.Scrolling.ScrollHeight = Unit.Pixel(500);
I'd like to display a child collection of my grid's object data source in the detail item template but I'm not sure how to do the databinding.
The grid is bound using the NeedDataSource event. and there are no available DataKeys that I can use because it builds the data in the code-behind.
How do I bind the child collection to a detail template so I can display in a grid-like format?
I have two DatePickers on an Edit Template of a grid. When I'm adding a new record or editing an existing record of the grid, the DatePickers are throwing a script error: 'False' is undefined
I also have enabled AutoPostBack="true" on the first DatePicker as I need to set a second DatePicker with a future date based on the date entered in the first DatePicker. The Edit Template is wrapped in an Ajax Loading Panel, and based on this link: http://www.telerik.com/forums/146104-datepicker-script-error, I've set the flag EnablePageHeadUpdate to false and I'm still receiving the script error.
Any ideas?
Here's my code:
<
telerik:RadGrid
runat
=
"server"
ID
=
"radAlerts"
AllowPaging
=
"True"
AllowSorting
=
"True"
ShowHeader
=
"True"
GridLines
=
"None"
OnNeedDataSource
=
"radAlerts_OnNeedDataSource"
OnItemCommand
=
"radAlerts_OnItemCommand"
OnItemDataBound
=
"radAlerts_OnItemDataBound"
OnInsertCommand
=
"radAlerts_OnInsertCommand"
OnUpdateCommand
=
"radAlerts_OnUpdateCommand"
OnDeleteCommand
=
"radAlerts_OnDeleteCommand"
>
<
ClientSettings
AllowColumnsReorder
=
"False"
EnableRowHoverStyle
=
"True"
EnablePostBackOnRowClick
=
"True"
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
<
Scrolling
UseStaticHeaders
=
"True"
></
Scrolling
>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"AlertId"
AutoGenerateColumns
=
"False"
AllowMultiColumnSorting
=
"True"
EnableHeaderContextMenu
=
"True"
CommandItemDisplay
=
"TopAndBottom"
Height
=
"100%"
>
<
NoRecordsTemplate
>No Active Alerts.</
NoRecordsTemplate
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"True"
ShowCancelChangesButton
=
"False"
ShowSaveChangesButton
=
"False"
ShowRefreshButton
=
"True"
/>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
>
<
HeaderStyle
Width
=
"1%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Left"
Width
=
"1%"
></
ItemStyle
>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Deactivate this item?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Deactivate"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
ConfirmDialogHeight
=
"160px"
ConfirmDialogWidth
=
"250px"
UniqueName
=
"DeleteColumn"
>
<
HeaderStyle
Width
=
"1%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
Width
=
"1%"
></
ItemStyle
>
</
telerik:GridButtonColumn
>
<
telerik:GridBoundColumn
DataField
=
"AlertId"
HeaderText
=
"ID"
Visible
=
"False"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Alert"
>
<
HeaderStyle
Width
=
"50%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Left"
></
ItemStyle
>
<
ItemTemplate
>
<
a
href='viewattachment.aspx?alert_id=<%# Eval("AlertId") %>' target="_blank"><%# Eval("Title") %></
a
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"StartDate"
HeaderText
=
"Start Date"
DataFormatString
=
"{0:d}"
FilterControlWidth
=
"80%"
AutoPostBackOnFilter
=
"True"
>
<
HeaderStyle
Width
=
"10%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Left"
></
ItemStyle
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"EndDate"
HeaderText
=
"End Date"
DataFormatString
=
"{0:d}"
FilterControlWidth
=
"80%"
AutoPostBackOnFilter
=
"True"
>
<
HeaderStyle
Width
=
"10%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Left"
></
ItemStyle
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"Inactive"
HeaderText
=
"Inactive"
AutoPostBackOnFilter
=
"True"
>
<
HeaderStyle
Width
=
"5%"
></
HeaderStyle
>
<
ItemStyle
VerticalAlign
=
"Top"
HorizontalAlign
=
"Left"
Width
=
"5%"
></
ItemStyle
>
</
telerik:GridCheckBoxColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
UniqueName
=
"AlertId"
/>
<
FormTemplate
>
<
telerik:RadAjaxLoadingPanel
runat
=
"server"
ID
=
"radLpAlertTemplate"
></
telerik:RadAjaxLoadingPanel
>
<
table
class
=
"editTable"
>
<
tr
>
<
td
class
=
"left"
style
=
"width: 90px"
><
asp:Label
runat
=
"server"
ID
=
"lblTitle"
Text
=
"Title:"
></
asp:Label
></
td
>
<
td
class
=
"left"
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"radAlertTitle"
Width
=
"80%"
ClientIDMode
=
"Static"
MaxLength
=
"100"
></
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
runat
=
"server"
ID
=
"rvAlertTitle"
ControlToValidate
=
"radAlertTitle"
ErrorMessage
=
"Please enter alert text"
Display
=
"Dynamic"
ForeColor
=
"Firebrick"
>*</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"left"
><
asp:Label
runat
=
"server"
ID
=
"lblExitingFile"
Text
=
"Existing file:"
></
asp:Label
></
td
>
<
td
class
=
"left"
><
asp:HyperLink
runat
=
"server"
ID
=
"hlAlertFile"
></
asp:HyperLink
></
td
>
</
tr
>
<
tr
>
<
td
class
=
"left"
><
asp:Label
runat
=
"server"
ID
=
"lblFile"
Text
=
"File: "
></
asp:Label
></
td
>
<
td
class
=
"left"
>
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"radAlertUpload"
MaxFileInputsCount
=
"1"
Width
=
"50%"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"left"
><
asp:Label
runat
=
"server"
ID
=
"lblStartDate"
Text
=
"Start Date:"
></
asp:Label
></
td
>
<
td
class
=
"left"
>
<
telerik:RadDatePicker
runat
=
"server"
ID
=
"radAlertStartDate"
AutoPostBack
=
"True"
OnSelectedDateChanged
=
"radAlertStartDate_OnSelectedDateChanged"
>
<
Calendar
>
<
SpecialDays
>
<
telerik:RadCalendarDay
Repeatable
=
"Today"
>
<
ItemStyle
BackColor
=
"LightGray"
Font-Bold
=
"True"
BorderStyle
=
"Solid"
BorderColor
=
"Black"
BorderWidth
=
"1px"
></
ItemStyle
>
</
telerik:RadCalendarDay
>
</
SpecialDays
>
</
Calendar
>
<
DateInput
DisplayDateFormat
=
"yyyy-MM-dd"
DateFormat
=
"yyyy-MM-dd"
></
DateInput
>
</
telerik:RadDatePicker
>
<
asp:RequiredFieldValidator
runat
=
"server"
ID
=
"rvStartDate"
ControlToValidate
=
"radAlertStartDate"
ErrorMessage
=
"Please enter a Starting Date"
Display
=
"Dynamic"
>*</
asp:RequiredFieldValidator
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"left"
><
asp:Label
runat
=
"server"
ID
=
"lblEndDate"
Text
=
"End Date:"
></
asp:Label
></
td
>
<
td
class
=
"left"
>
<
telerik:RadDatePicker
runat
=
"server"
ID
=
"radAlertEndDate"
>
<
Calendar
>
<
SpecialDays
>
<
telerik:RadCalendarDay
Repeatable
=
"Today"
>
<
ItemStyle
BackColor
=
"LightGray"
Font-Bold
=
"True"
BorderStyle
=
"Solid"
BorderColor
=
"Black"
BorderWidth
=
"1px"
></
ItemStyle
>
</
telerik:RadCalendarDay
>
</
SpecialDays
>
</
Calendar
>
<
DateInput
DisplayDateFormat
=
"yyyy-MM-dd"
DateFormat
=
"yyyy-MM-dd"
></
DateInput
>
</
telerik:RadDatePicker
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
>
<
asp:CheckBox
runat
=
"server"
ID
=
"cbInactive"
Text
=
"Inactive"
Checked
=
"False"
/>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
> </
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
style
=
"text-align: left"
>
<
asp:Button
runat
=
"server"
ID
=
"btnUpdate"
Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' />
<
asp:Button
runat
=
"server"
ID
=
"btnCancel"
Text
=
"Cancel"
CommandName
=
"Cancel"
CausesValidation
=
"False"
/>
</
td
>
</
tr
>
</
table
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Guys honestly wouldn't it be easy to add an OnClientSelected event to TreeView? I see you are changing the Div class from "rtBot" to "rtBot rtSelected". So you know it is happening. So many people have asked about this over the years and I find it annoying to try and do a hack with the OnKeyPressed.
Please?
Sean
Hi,
For the RadHtmlChart I was wondering if there is any way to change the background color of the main chart area only like you could with RadChart?
Appearance.FillStyle.BackgroundColor controls the background to everything including legend, title and axes
PlotArea.Appearance.FillStyle.BackgroundColor colors the main chart area AND the area behind the y-axis labels which looks a bit odd. I've attached examples with RadChart and RadHtmlChart for comparison. We'd like everything but the main chart area to be transparent so whatever is behind the chart can be displayed, in this case a gray RadDock.
Many thanks,
Andy
Hi,
I am using Grid - Virtualization. But when I try to load huge data getting an error "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property." where as also I am using "OnNeedDataSource"
As per my requirement I need to create Grid columns at run time as don't know how many columns and rows we be there as query output.
I have also used below code in my config file but don't get any success
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483647" />
</webServices>
</scripting>
</system.web.extensions>
Can any body help me out in this.
Thanks