Hello,
I have very simple grid to load 2000 rows per page. while expanding details table it's taking load/render about 10 seconds. But details table has only 3 rows.
Here is my code. please advise me if i am doing anything wrong.
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
ShowStatusBar
=
"true"
AutoGenerateColumns
=
"False"
PageSize
=
"2000"
AllowSorting
=
"True"
AllowMultiRowSelection
=
"False"
AllowPaging
=
"True"
OnDetailTableDataBind
=
"RadGrid1_DetailTableDataBind"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
>
<
PagerStyle
Mode
=
"NumericPages"
></
PagerStyle
>
<
MasterTableView
DataKeyNames
=
"PersonID"
AllowMultiColumnSorting
=
"True"
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"LeadFullName"
HeaderText
=
"LeadFullName"
HeaderButtonType
=
"TextButton"
DataField
=
"LeadFullName"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"PersonID"
Name
=
"Orders"
Width
=
"100%"
>
<
Columns
>
<
telerik:GridBoundColumn
SortExpression
=
"short_description"
HeaderText
=
"short_description"
HeaderButtonType
=
"TextButton"
DataField
=
"short_description"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
</
MasterTableView
>
</
telerik:RadGrid
>
protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
if (!e.IsFromDetailTable)
{
RadGrid1.DataSource = GetList();
}
}
protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
switch (e.DetailTableView.Name)
{
case "Orders":
{
int PersonID = Convert.ToInt32(dataItem.GetDataKeyValue("PersonID").ToString());
e.DetailTableView.DataSource = Claimant.GetDocuments(PersonID);
break;
}
}
}
Hello,
Scenario: In radgrid,
1. Frozen columns is set to 3
2. <Scrolling AllowScroll="true" SaveScrollPosition="true" />
3. ColumnResizing : <Resizing ClipCellContentOnResize="false" AllowColumnResize="True" EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowResizeToFit="true"></Resizing>
In the below mentioned server side event, when I set the HeaderStyle.Width of a clolumn, the Frozen column stops working in all browsers
Protected Sub dgEscrow_PreRender(sender As Object, e As EventArgs)
Dim visibleCols As Int32 = 0
Dim lstIndex As New List(Of Integer)
For Each col As GridColumn In dgEscrow.MasterTableView.Columns
If col.Visible Then
visibleCols = visibleCols + 1
lstIndex.Add(col.OrderIndex)
End If
Next
Dim lastVisibleCol As GridColumn = dgEscrow.MasterTableView.GetColumn(dgEscrow.MasterTableView.Columns(lstIndex(visibleCols - 1) - 2).UniqueName)
lastVisibleCol.HeaderStyle.Width = Unit.Pixel(137)
''dgEscrow.MasterTableView.Columns(lstIndex(visibleCols - 1) - 2).HeaderStyle.Width = Unit.Pixel(137)
'dgEscrow.MasterTableView.Columns(lstIndex(visibleCols - 1) - 2).ItemStyle.Width = Unit.Pixel(137)
End Sub
Can you please suggest by which I can solve this problem
Please reply at the earliest because I need to provide the fix..
Recently, I have seen a Telerik ASP.NET AJAX VSExtensions on visualstudiogallery.msdn.microsoft.com.
Can I use it for a internal project, non commercial and without trial 30 days ?
Thanks !
I have created an HTML chart bound to a SQL data source. Following a client-side exampleI have added an event handler which echoes the value of the bar show in the attached file.
When I click on the indicated bar an alert pops up telling me the value is "5".
What I really want is the is the X axis value, which in this case is "1920".
The purpose will then be re-direct to a different URL with this number in the query string.
function OnSeriesClick(args) {
alert("Click! Value=" + args.value);
}
<
telerik:RadHtmlChart
runat
=
"server"
ID
=
"RadHtmlChart1"
DataSourceID
=
"SqlDataSource1"
Width
=
"660px"
>
<
ClientEvents
OnSeriesClick
=
"OnSeriesClick"
OnLegendItemClick
=
"OnLegendItemClick"
/>
<
PlotArea
>
<
CommonTooltipsAppearance
Shared
=
"true"
>
<
SharedTemplate
>
<
div
>Composed in decade beginning #= category #</
div
>
# for (var i = 0; i <
points.length
; i++) { #
<div>#: points[i].series.name#: #: points[i].value #</
div
>
# } #
</
SharedTemplate
>
</
CommonTooltipsAppearance
>
<
Series
>
<
telerik:ColumnSeries
DataFieldY
=
"songs"
Name
=
"Songs"
>
</
telerik:ColumnSeries
>
</
Series
>
<
XAxis
DataLabelsField
=
"date_range"
>
<
LabelsAppearance
RotationAngle
=
"75"
/>
<
TitleAppearance
Text
=
"Decade"
/>
<
MajorGridLines
Visible
=
"false"
></
MajorGridLines
>
<
MinorGridLines
Visible
=
"false"
></
MinorGridLines
>
</
XAxis
>
<
YAxis
>
<%-- <
TitleAppearance
Text
=
"Count"
/>--%>
<
MajorGridLines
Visible
=
"true"
Color
=
"#ffc5bf"
Width
=
"1"
></
MajorGridLines
>
<
MinorGridLines
visible
=
"false"
></
MinorGridLines
>
</
YAxis
>
</
PlotArea
>
<
Legend
>
<
Appearance
Visible
=
"false"
/>
</
Legend
>
<
ChartTitle
Text
=
"Songs by Decade"
>
<
Appearance
BackgroundColor
=
"White"
Visible
=
"True"
>
</
Appearance
>
</
ChartTitle
>
</
telerik:RadHtmlChart
>
<
div
class
=
"admin_activity_toolbar"
>
<
telerik:RadToolBar
ID
=
"ToolBar"
Runat
=
"server"
OnButtonClick
=
"ToolBar_ButtonClick"
Orientation
=
"Vertical"
Width
=
"120px"
>
<
Items
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Done"
Value
=
"done"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Button 2"
IsSeparator
=
"True"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Pivot"
Value
=
"pivot"
Enabled
=
"False"
>
</
telerik:RadToolBarButton
>
</
Items
>
</
telerik:RadToolBar
>
From what I have tried, it appears that you cannot set the width and height of many of the Telerik controls using CSS which makes it very difficult to create responsive sites.
Is there a way to actually do this or is this a pipe dream?
ClientEvents-OnDateSelected="DateSelected"
function DateSelected(sender, args) {
...
}
Hi,
I use 2015.1.401.
Why does the AppointmentCreated event fire AFTER the Page_PreRender? I want to get a count of certain Appointments and it seems like the perfect place for that is in AppointmentCreated (where I already have alot of other appointment related logic). And then in Page_PreRender I want to use those counts to write out a label to the user to give them some statistics about their appointments.
Is there a different event I can use?
Thanks,
Brent