Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
216 views
We are currently rebuilding a module in one of our applications that takes a document template, replaces marked placeholders within the template with specific data , and then allows the user to download the file as a word document.

The user would like to be able to edit these templates online, before they are rendered.  One key feature that we need to include is conditional blocks - certain sections of the template will only be rendered if the data in the system meets specific conditions.  We need to make these conditional blocks as user friendly to edit as possible.  

What i have envisaged is creating a custom module for the RadEditor that can be used to select and insert conditional blocks, that the user can then edit to their liking.  It is important that the end user (who is non technical) can identify and understand these conditional sections easily and click on them to load them in the custom module editor.  

I notice i can create custom content filters in javascript that can hook into the rendering of the designer/html view, which would seem appropriate for this kind of solution.

The problem is that there is no documentation on the customFilter object - where can i find more info on how to use this?
Philippe GRACA
Top achievements
Rank 1
 answered on 29 Nov 2017
24 answers
2.5K+ views
Hi Telerik,

I want to use your filtered combobox as given in web link: http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

But I am getting "CS0234: The type or namespace name 'QuickStart' does not exist in the namespace 'Telerik' (are you missing an assembly reference?)" error.

I tried to find QuickStart in my telerik package but can not found this file/dll. Please help me to implement the required control and get the proper dll.

Regards,
Harmeet
hardik
Top achievements
Rank 1
 answered on 29 Nov 2017
4 answers
656 views
hi everyone
i have problem with dropdowntree
in my local site whene i have some postback in my site and change some views of multiview this error appears :
the control collection cannot be modified during databind init load prerender or unload phases
and this is my stack trace:
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
   System.Web.UI.ControlCollection.Add(Control child) +9600379
   Telerik.Web.UI.RadDropDownTree.CreateHeader() +135
   Telerik.Web.UI.RadDropDownTree.CreateChildControls() +57
   System.Web.UI.Control.EnsureChildControls() +83
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +27
   System.Web.UI.Control.FindControl(String id) +12
   Telerik.Web.UI.HierarchicalControlItemContainer.FindDataSourceControl() +124
   Telerik.Web.UI.HierarchicalControlItemContainer.GetDataSource() +107
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +58
   System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +19
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

any one know any thing about this error??
i have no mention of this control in my code view (code behind)
Seham
Top achievements
Rank 1
 answered on 28 Nov 2017
0 answers
161 views

I've done some server side validation on Insert, and then called the confirmation box 

RadWindowManager1.RadConfirm("Are you sure?", "confirmInsertCallBackFn", 330, 100, null, "System Alert");

 

So on my client side I can cancel the user response ...

function confirmInsertCallBackFn(arg) {
                if (arg) {
                    $find("<%=RadGrid1.ClientID%>").get_masterTableView().fireCommand("InitInsert", "");
                    ### NEED TO CLOSE THE INSERT FORM ###
                }
            }

The only issue is that the the Insert form doesn't close when the RadConfirm is OK. What is the java script equivalent of "RadGrid1.MasterTableView.IsItemInserted =False" in order to close the Insert form.

 

I found general guidance here, but the cancelInsert() call actually cancels the Insert altogether and closes the insert form, rather than just close the form.

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/cancelinsert

$find("<%=RadGrid1.ClientID%>").get_masterTableView().cancelInsert();

 

Paul
Top achievements
Rank 1
 asked on 27 Nov 2017
22 answers
542 views
We are implementing a treeview where the # of nodes could exceed 5000 nodes. We are using ServerSideCallBack to populate the children nodes and have noticed that the treeview control stops responding if the # of nodes exceeds 800-900.  After a while an error  message pops up "A script on this page is causing internet explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script". If I select "No", sometimes (based on the # of nodes)  it loads the children and at other times it just freezes.

What would suggest in this scenario ? Is there a way that we could load the children in smaller chunks ? Let us know.

Sundaresan
Top achievements
Rank 1
 answered on 27 Nov 2017
0 answers
187 views

Hello,

I am using below code block to bind filter combobox but the not able to bind data to combobox. can anyone help me in this?

 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridFilteringItem)
           {               
               GridFilteringItem item = (GridFilteringItem)e.Item;
               RadComboBox combo = (RadComboBox)item.FindControl("RadComboboxName");
               combo.DataSource = Data(0,0).DefaultView.ToTable(true, "Name");
               combo.DataTextField = "Name";
               combo.DataValueField = "Name";
           }
       }
Kod
Top achievements
Rank 1
 asked on 27 Nov 2017
0 answers
106 views

 Hello,

I want to implement radgrid filter as per the screen shot attached. can anyone help me with Radgrid filter column with all the values in it. I came across this link but i dont know how to bind filter combobox since i am biding grid in code behind.

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/filter-templates/defaultcs.aspx

Kod
Top achievements
Rank 1
 asked on 27 Nov 2017
10 answers
249 views
Hi,

I am creating a dynamic rad grid with multiple templatefield .  when I am scrolling horizondally the Grid is becoming invisible and some text like System.Data.DataRowView are visible. For your information I am creating grid entirely in the page init but declaration is in the .aspx page. Any help will be greatly apreciated.
Ilaya
Top achievements
Rank 1
 answered on 27 Nov 2017
4 answers
484 views
Hi,

I am working with RadEditor. I have purchased premium controls pack.
Editor works fine but when we open a image manager it throw an error i.e.

Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction

My webconfig file code is :

<system.web>
 <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik.Web.UI.DialogHandler.aspx" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
    </handlers>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" />
    </modules>
  </system.webServer>
</configuration>

and i am using routing without MVC architecture with asp.net 4.0 framework. and in global.asax file code is here

 routes.Ignore("{resource}.axd/{*pathInfo}");
routes.Ignore("Telerik.Web.UI.DialogHandler.aspx");

ignore for telerik controls.

these all code works fine in visual studio and run site from visual studio.

but it throws error while we run this site in IIS 7.0 or IIS 7.5.

and it shows a alert message and image manager page displays :

HTTP Error 500.21 - Internal Server Error

Handler "Telerik.Web.UI.DialogHandler.aspx" has a bad module "ManagedPipelineHandler" in its module list


message

How to resolve this error?????
Hamza
Top achievements
Rank 1
 answered on 26 Nov 2017
1 answer
208 views
Can the text color in agenda view be controlled?  When using a darker color for the ApplyCssClass  property of a ResourceStyleMapping element of a ResourceStyles element, the text is not visible when switched to AgendaView.
Peter Milchev
Telerik team
 answered on 26 Nov 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?