I'm trying to fire a command from raddataform like:
var masterTable = $find("<%= RadDataForm1.ClientID %>");
masterTable.fireCommand("MyUploadCommand", "");
that fires very well and I can catch coomand in RadDataForm1_ItemCommand like:
If e.CommandName = "MyUploadCommand" Then......
but I cannot find controls inside <EditItemTemplate> no matter what. also very strange but inside Itemcommand routine e.DataFormItem.IsInEditMode is always false but its in edit mode.
I can access controls from RadDataForm1_Deletecommand, RadDataForm1_InsertCommand perfectly but not from RadDataForm1_ItemCommand.
How can I trigger a command with javascript and catch it and access controls ?
If I cannot find the answer I have to give up using raddataform because there are no documents left to read...
best.
My value of rating control is 4.7 but it just show 4 stars.
<telerik:RadRating runat="server" ID="rrComment" ReadOnly="true" EnableEmbeddedSkins="true" Precision="Exact" ViewStateMode="Inherit" />
Hi guys
I have a nicely-styled pdf output from theRadGrid, and I would like to complete the report by including a text cover page within the pdf before the data. How can I do this. Personally, I could create the cover page separately and merge it with the data pdf but I really want to provide this function so non-IT people can create their own output in a single click.
Can you suggest how this could be done?
Thanks
Clive
Hello Telerik Team,
Kindly, I got an error regarding the casting of a telerik object. I have removed the telerik compresion but my application is using a dinamic layer to create the control in the page, Also i will be removing the telerik compresion for all the clases in the control layer. Please can you provide more information regarding the below error, see the details:
Impossible d'effectuer un cast d'un objet de type 'Telerik.Web.UI.CompressedPageState' en type 'System.Collections.IDictionary'.
Informations sur l'erreur: Type: InvalidCastException Message: Impossible d'effectuer un cast d'un objet de type 'Telerik.Web.UI.CompressedPageState' en type 'System.Collections.IDictionary'. Trace de la pile: Ã System.Web.UI.Page.RegisterRequiresControlState(Control control) Ã Telerik.Web.UI.RadComboBox.OnInit(EventArgs e) Ã System.Web.UI.Control.InitRecursive(Control namingContainer) Ã System.Web.UI.Control.AddedControl(Control control, Int32 index) Ã System.Web.UI.ControlCollection.Add(Control child) Ã Telerik.Web.UI.GridPagerButtonBuilder.CreatePageSizeDropDown(Panel container) Ã Telerik.Web.UI.GridPagerButtonBuilder.CreatePageSize(Panel container) Ã Telerik.Web.UI.GridPagerItem.InitializePagerItem(GridColumn[] columns) Ã Telerik.Web.UI.GridPagerItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) Ã Telerik.Web.UI.GridTableView.CreateTopPagerItem(Boolean useDataSource, GridColumn[] copiedColumnSet, Boolean isPagingEnabled, GridTHead thead) Ã Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) Ã Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) Ã System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) Ã System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) Ã System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) Ã System.Web.UI.WebControls.DataBoundControl.PerformSelect() Ã Telerik.Web.UI.GridTableView.PerformSelect() Ã System.Web.UI.WebControls.BaseDataBoundControl.DataBind() Ã Telerik.Web.UI.GridTableView.DataBind() Ã Telerik.Web.UI.RadGrid.DataBind() Ã Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) Ã Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) Ã Env.MYAPPLICATION.Web.Controles.FormulaireGrilleGenerique`1.OnLoad(EventArgs e) dans e:MYAPPLICATION\Env.MYAPPLICATION.Web.Controles\FormulaireGrilleGenerique.cs:ligne 90 Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Control.LoadRecursive() Ã System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Line 90: MYAPPLICATION\Env.MYAPPLICATION.Web.Controles\FormulaireGrilleGenerique.cs:ligne 90:
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
Hello,
After I updated to 2015 q1 I get following error
Upgrade problem - Unable to cast object of type 'Telerik.Web.UI.ElasticButton' to type 'System.Web.UI.WebControls.LinkButton'
This happens in ItemCreated. I was using following code to hide insertitem when I used insertbutton to open a Radwindow.
protected void ClassesOverviewGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
if (e.Item.OwnerTableView.IsItemInserted)
{
GridEditableItem item = e.Item as GridEditableItem;
LinkButton updateButton = (LinkButton)item.FindControl("PerformInsertButton");
((GridTableRow)updateButton.Parent.Parent).Style.Value += "display:none";
}
}
}
If I change to
LinkButton updateButton = (LinkButton)item.FindControl("PerformInsertButton");
((GridTableRow)updateButton.Parent.Parent).Style.Value += "display:none";
then I get the error in second line:
Additional information: Unable to cast object of type 'EditFormTableCell' to type 'Telerik.Web.UI.GridTableRow'.
Do you know how I can fix this?
Whenever I do resize for radeditor. It fails to render correctly.
Please see this attached screenshot.