Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
191 views

Hi,

I have created an OrgChart and added a rendered field using RadOrgChart.RenderedFields.ItemFields.Add().

Is there a suitable way that I can add additional data to each Node/Group Item in the OrgChart without displaying it to the user and be able to access it from the client-side? Could this be done through a hidden field or through additional rendered fields?

Thanks,

Mark

Peter Milchev
Telerik team
 answered on 14 Aug 2018
25 answers
2.9K+ views
We are getting this error when the following code is added to a User Control:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="JawbCategoryComboBox">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="JawbOccupationComboBox" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

It is the <telerik:AjaxUpdatedControl> line that is causing the issue.  If I comment it out, the error goes away.  I read the other posts about code within the <head> tags, but the only code in the <head> section is stylesheet code.  There aren't any <% %> tags anywhere in the <head> section of the master page or any of the children.  Here is the exact error:


[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8669270
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +132

[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +180
   Telerik.Web.UI.RadAjaxControl.PerformRender() +375
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1222
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +95
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


What else causes this error?

Thanks,
Bill

Niall
Top achievements
Rank 1
 answered on 13 Aug 2018
13 answers
514 views
I have RadGrid with many custom filters and I want to use RadToolTip(Manager) to show tooltip window with information of applied filter on column with filter. Tooltip can be closed by user manually and then I programmatically remove filter. I have been trying unsuccessfully for three hours to attach RadToolTip to column header because that element does not have either server or client ID. How to open programmatically RadToolTip over column name?
Marin Bratanov
Telerik team
 answered on 13 Aug 2018
3 answers
133 views

I have been looking for a bit, and have not found the answer.  I feel like I just might have overlooked it.  

How does the RadSiteMap control know where to break the items into the next column.  I am using one of your demos (loading it with XML from code behind - which doesn't work straight out of the ZIP btw).  The menu item is set up with a RadSiteMap control with three columns.  I can add and remove items from each of the groups, and it will continue to break in the same place.  There are two groups under the first column, and one group under each of the others.  How does it know, or - more importantly - how do I tell it when to break to another column?

Brian
Top achievements
Rank 1
 answered on 13 Aug 2018
1 answer
206 views

Hi,

how i can compare cell value to his grand total (for after change color).

I try in CellDataBound, but how access to the grand total ?

 

 

 

 

Eyup
Telerik team
 answered on 13 Aug 2018
1 answer
184 views

Is it possible to use ColumnValidation and EditFormIndexColumnIndex index together?  

I  have a grid where the validation was working as expected.  Added editformcolumnindex and now it cannot "find" those columns. 

 

Example following works fine without EditFormIndexColumnIndex

 

<telerik:GridDropDownColumn DataField="itemManager" UniqueName="editManager" HeaderText="Manager"
    DataSourceID="sqlDataSource6" ListValueField="adId" ListTextField="adName" EditFormColumnIndex="2"
    EnableEmptyListItem="true" EmptyListItemText="Select" DropDownControlType="RadComboBox">
    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
        <RequiredFieldValidator ForeColor="Red" ErrorMessage="  Required Field"></RequiredFieldValidator>
        <ModelErrorMessage BackColor="Red" />
    </ColumnValidationSettings>
</telerik:GridDropDownColumn>
Peter Milchev
Telerik team
 answered on 13 Aug 2018
0 answers
73 views

Hi

I bind Appointments manually with resources, but i can't see the added appointment in radscheudler.

 

RadScheduler1.Resources.Clear();
RadScheduler1.ResourceTypes.Clear();
ResourceType UserName = new ResourceType("User");
UserName.ForeignKeyField = "TEILNEHMERID";
UserName.KeyField = "TEILNEHMERID";
UserName.TextField = "NACHNAME";
UserName.DataSource = dsTLNINGRP_VIEW.Tables[0].DefaultView;
RadScheduler1.ResourceTypes.Add(UserName);
RadScheduler1.GroupBy = "User";
//RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
RadScheduler1.DataSource = ds.Tables[0].DefaultView;
bindHolidays(dsTLNINGRP_VIEW);
RadScheduler1.DataBind();

Here is the bindHolidays Method

 

…

 

Appointment appointment = new Appointment();
appointment.ID = ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString();
appointment.Subject = WAMResource.Abwesend;
appointment.Attributes["TYP"] = "A"; //Abwesend Custom Attributes
appointment.Attributes["BACKCOLOR"] = Color.Red.ToString();
appointment.BackColor = Color.Red;
appointment.Resources.Add(new Telerik.Web.UI.Resource("User", ds.Tables[0].Rows[i]["TEILNEHMERID"].ToString(), "Toprak"));
appointment.Start = DateTime.Parse(ds.Tables[0].Rows[i]["STARTTIME"].ToString());
appointment.End = DateTime.Parse(ds.Tables[0].Rows[i]["ENDTIME"].ToString());
RadScheduler1.InsertAppointment(appointment);

 

Support ATT
Top achievements
Rank 1
 asked on 13 Aug 2018
1 answer
245 views

Hi,

We have some columns one decimal and some are two decimals. When we export to excel one decimal column values exported to two decimals and hide the last "o" digit. For example, we have a value in a grid 10.20 while export to excel showing 10.2. How to fix the decimal value issues? Any sample application would be appreciated.

Eyup
Telerik team
 answered on 13 Aug 2018
1 answer
1.0K+ views

Hi,

We need to set the column width in export to excel file. Currently, its fit the width by using its Header Text. We need to customize it like in grid we have 50px column width but when we export to excel we want to set 20px. How can we achieve the goal? Any sample application would be appreciated.

Eyup
Telerik team
 answered on 13 Aug 2018
2 answers
231 views

Hi All,

Have  RadGrid, which works fine.

I want data Loadding  in RadGrid

It Works fine in FireFox and IE

But Google Chrome RadGrid is not Full displayed. 

Have attached the screen shot.

Is there any option to rectify this

 

 

Thanking You


Eyup
Telerik team
 answered on 13 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?