<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Detection.Detection.js"
/>
Assembly 'Telerik.Web.UI, Version=2015.1.225.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4' contains a Web resource with name 'Telerik.Web.UI.Common.Detection.Detection.js', but does not contain an embedded resource with name 'Telerik.Web.UI.Common.Detection.Detection.js'.
<
script
src
=
"https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2015.1.225/Common/Core.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2015.1.225/Common/jQueryExternal.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2015.1.225/Common/jQueryPlugins.js"
type
=
"text/javascript"
></
script
>
<
script
src
=
"/wsAdmin/jQuery/jquery-1.11.2.min.js"
type
=
"text/javascript"
></
script
>
<
script
type
=
"text/javascript"
>
//
<![CDATA[
(window.jQuery)||document.write('<script type="text/javascript" src="/wsAdmin/jQuery/jquery-1.11.2.min.js"><\/script>');//]]>
</
script
>
<
script
src
=
"https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2015.1.225/Common/Widgets/Draggable.js"
type
=
"text/javascript"
></
script
>
A few questions:
Thanks in advance for any pointers.
Best regards, Marja
My issue is the gauge control won't render in design mode:
Error Creating Control - GaugeuserCountFailed to create designer 'Telerik.Web.UI.RadRadialGauge, Telerik.Web.UI, Version=2020.2.617.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4'
I've got a reference in the project page to the .40 .dll version..
Project builds & runs fine, just cannot get this to work!..
This is VS.NET 2017 on Windows 10
I've tried deleting files in:
%AppData%\Local\Microsoft\VisualStudio\16.0_1695dc1b\ProjectAssemblies, Cleaning & REbuilding the solution..
Help!
Rich
Hi,
How do I uninstall all Telerik menus and references in Visual Studio? I can't find a way to do this on your menu.
Thanks,
Kevin
Hello,
After a user configures their Pivotgrid to show the data the way they like it, I would like to get the resulting data into a data table for other uses like generating a chart off of the the resulting data. It would be like the excel export function but export to a datatable in code behind.
For now, I am using autoscaling to create a graph. A user wanted an option to force Y axis to 0. I created a checkbox, and when checked set minvalue to 0 in code behind. Works great.
When the user unchecks the box because they don't like the 0 axis, how to I reset the graph to auto scaling, like it was before they checked the box? It's a large dataset, so I would prefer not to destroy the chart and rebind if possible.
<
mynamespace:MyDataGridImplementation
ID
=
"ItemSummaryGrid"
runat
=
"server"
AllowSorting
=
"true"
AllowPaging
=
"true"
PageSize
=
"10"
OnNeedDataSource
=
"OuterGridNeedDataSource"
OnItemDataBound
=
"OuterGridItemDataBound"
OnItemCommand
=
"OuterGrid_ItemCommand"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
MasterTableView
AutoGenerateColumns
=
"false"
EnableNoRecordsTemplate
=
"true"
DataKeyNames
=
"OuterGridItemId"
NoMasterRecordsText='<%# ResourceManager.GetPhrase("NoRecords", "There are no records.") %>'>
<
Columns
>
<
telerik:GridBoundColumn
AllowSorting
=
"true"
DataField
=
"ItemSummaryDateTime"
DataType
=
"System.DateTime"
DataFormatString
=
"{0:d}"
HeaderText
=
"Date"
UniqueName
=
"ItemSummaryDateTime"
/>
<
telerik:GridBoundColumn
AllowSorting
=
"true"
DataField
=
"ItemSummaryItemType"
DataType
=
"System.String"
HeaderText
=
"Type"
UniqueName
=
"ItemSummaryItemType"
/>
<
telerik:GridBoundColumn
AllowSorting
=
"true"
DataField
=
"ItemSummaryItemSubject"
DataType
=
"System.String"
HeaderText
=
"Subject"
UniqueName
=
"ItemSummaryItemSubject"
/>
<
telerik:GridBoundColumn
AllowSorting
=
"true"
DataField
=
"ItemSummaryName"
DataType
=
"System.String"
HeaderText
=
"Name"
UniqueName
=
"ItemSummaryName"
/>
</
Columns
>
<
NestedViewTemplate
>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
CssClass
=
"ChildGridWrapper"
>
<
mynamespace:MyDataGridImplementation
ID
=
"ItemDetailsLinesGrid"
runat
=
"server"
AllowSorting
=
"false"
OnNeedDataSource
=
"NestedGridNeedDataSource"
OnItemDataBound
=
"NestedGridItemDataBound"
EnableShowAllButton
=
"False"
>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataKeyNames
=
"NestedGridItemEventId"
ShowHeader
=
"true"
ShowFooter
=
"false"
>
<
Columns
>
<
telerik:GridBoundColumn
AllowSorting
=
"false"
DataField
=
"DetailItemDateTime"
DataType
=
"System.DateTime"
DataFormatString
=
"{0:d}"
HeaderText
=
"Date"
UniqueName
=
"DetailItemDateTime"
/>
<
telerik:GridBoundColumn
AllowSorting
=
"false"
DataField
=
"DetailItemTypeCode"
DataType
=
"System.String"
HeaderText
=
"Type"
UniqueName
=
"DetailItemTypeCode"
/>
<
telerik:GridBoundColumn
AllowSorting
=
"false"
DataField
=
"DetailItemMessage"
DataType
=
"System.String"
HeaderText
=
"Details"
UniqueName
=
"DetailItemMessage"
/>
</
Columns
>
</
MasterTableView
>
</
mynamespace:MyDataGridImplementation
>
</
asp:Panel
>
</
NestedViewTemplate
>
</
MasterTableView
>
<
ClientSettings
AllowGroupExpandCollapse
=
"false"
EnablePostBackOnRowClick
=
"false"
>
<
Selecting
AllowRowSelect
=
"false"
/>
</
ClientSettings
>
</
mynamespace:MyDataGridImplementation
>
protected
void
OuterGridNeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
// ItemSummaryList is populated during OnLoad. Outer grid populates correctly with summary data.
ItemSummaryGrid.DataSource =
null
;
if
(!IsContentDesignMode)
ItemSummaryGrid.DataSource = ItemSummaryList;
}
protected
void
OuterGridItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e ==
null
)
throw
new
ArgumentNullException(
"e"
);
// format and set outer summary grid column values.
}
protected
void
OuterGrid_ItemCommand(
object
sender, GridCommandEventArgs e)
{
if
(e.CommandName == RadGrid.ExpandCollapseCommandName)
{
var gridItem = e.Item
as
GridDataItem;
if
(gridItem !=
null
)
{
var nestedGrid = (RadGrid)gridItem.ChildItem.FindControl(
"ItemDetailsLinesGrid"
);
nestedGrid.Rebind();
}
}
}
protected
void
NestedGridNeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
// NestedGridNeedDataSource is fired successfully from OuterGrid_ItemCommand when the outer grid row is expanded
var control = ((Control)sender);
var nestedGridItem = control?.BindingContainer
as
GridNestedViewItem;
if
(nestedGridItem !=
null
)
{
var nestedGrid = (RadGrid)nestedGridItem.FindControl(
"CommunicationLogEventLinesGrid"
);
// here we set the DataSource for the nested grid. I have verified during debugging that
// nestedGrid.DataSource is null when the nested grid is initially expanded and this event is fired.
nestedGrid.DataSource = FakeData();
// not sure if an explicit call to DataBind is necessary here...
//nestedGrid.DataBind();
}
}
protected
void
NestedGridItemDataBound(
object
sender, GridItemEventArgs e)
{
// NestedGridItemDataBound is never fired.
// A breakpoint set here is never reached when the nested grid is expanded from the UI.
if
(e ==
null
)
throw
new
ArgumentNullException(
"e"
);
var gridDataItem = e.Item
as
GridDataItem;
// format and set nested detail grid column values.
}
public
IEnumerable<FakeItemDetailData> FakeData()
{
return
Enumerable.Range(1, 5).Select(i =>
new
FakeItemDetailData
{
NestedGridItemEventId = Convert.ToString(i),
DetailItemDateTime = DateTime.Now,
DetailItemTypeCode =
"HIHI"
,
DetailItemMessage = $
"HI! {i}"
});
}
public
class
FakeItemDetailData
{
public
string
NestedGridItemEventId;
public
DateTime DetailItemDateTime;
public
string
DetailItemTypeCode;
public
string
DetailItemMessage;
}
Hello.
I am customizing the following demo source now.
The demo version of the source is located in the following path.
https://demos.telerik.com/aspnet-ajax/sample-applications/diagram-app/
https://demos.telerik.com/aspnet-ajax/sample-applications/diagram-app/DiagramAppSource.zip
But while working on it, I faced a big challenge.
The demo source did not have a function to give content property to the shapes displayed in the original diagram.
So, in order to put this function in here, I have tried a lot of effort by looking for various examples, but I couldn't implement the function.
So I want to get your help.
First, drag and drop a shape control from the toolbox to display it on the canvas, then select it and enter the body in the property editing window on the right to display the body in the shape.(at this time, add textbox on configPanel)
Also, the same function is realized for the connections.
I would be grateful if you posted the explanation and example code together.
Please help me.
I am using a RadGrid with edit mode as batch and edit type is row. I have a GridCheckboxColumns in my grid which is editable when the row is selected.
When I select a row for editing, I want the checkbox cell to be readonly based on another cell value of the row.
I have tried solutions from other posts such as cancelling edit on BatchEditOpening client-side event, making GridEditItem readonly on the server-side ItemCreated event and disabling checkbox on ItemDatabound event but none have worked for my scenario.
Here is the sample code: I want PortalAccess checkbox cell to be readonly when
<telerik:RadGrid ID="grdContactsList" runat="server" AutoGenerateColumns="False"
OnBatchEditCommand="grdContactsList_BatchEditCommand"
AllowSorting="true" EnableViewState="false" OnItemCommand="grdContactsList_ItemCommand" >
<ClientSettings EnableRowHoverStyle="false" Selecting-AllowRowSelect="false" >
<ClientEvents OnBatchEditOpening="batchEditOpening" />
</ClientSettings>
<MasterTableView TableLayout="Auto" CssClass="bordered" NoMasterRecordsText="No records to display."
AllowSorting="true" EditMode="Batch"
<BatchEditingSettings EditType="Row" />
<ColumnGroups>
<telerik:GridColumnGroup HeaderText="Email Communications" Name="EmailCommunications"></telerik:GridColumnGroup>
</ColumnGroups>
<Columns>
<telerik:GridBoundColumn DataField="SponsorPortal" SortExpression="SponsorPortal" HeaderText="IsSponsor" UniqueName="IsSponsor"
Display="false" ReadOnly="true"></telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn HeaderText="Portal Access" SortExpression="PortalAccess"
UniqueName="PortalAccess" DataField="PortalAccess"
HeaderStyle-CssClass="tblC" ItemStyle-CssClass="tblC">
</telerik:GridCheckBoxColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Dim s_wtr2 As New StringWriter() |
Dim h_wtr2 As HtmlTextWriter = New HtmlTextWriter(s_wtr2) |
'Check Type |
If drpType.SelectedValue = "CC Declined" Then |
gridPacc.RenderControl(h_wtr2) |