Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
460 views
I have a Grid in which dates are always displayed in MM/dd/yyyy format.  However, when we export the grid to Excel, we want the date format to be culture-specific.  For example, a US-based user would see 5/27/2014 for today's date while a UK-based user would see 27/05/2014.

Is there a simple way to accomplish this?  Setting the Culture property of the Grid did not do the trick.  I eventually solved the problem by putting some code into the Grid's ExportCellFormatting event in which I convert the Cell.Text to a DateTime (from a string) and subsequently cast the DateTime to a string for the Culture that I retrieve from Request.UserLanguages.

Thanks in advance!
trupti
Top achievements
Rank 1
 answered on 14 Aug 2018
3 answers
106 views

Just wondering which is better for performance to use embedded skins, or create using theme builder and use a custom skin.

I prefer to use a custom skin as I can tweak the css to suit, rather than target the correct specificity to change an inbuilt skin.

What I used to do was take the skin form the skin folder and rename / edit that, but have found that using the Theme builder files the CSS doesn't match exactly the built in skins, so I'm thinking about going back to the built in, but curious about performance.

 

Andy

Rumen
Telerik team
 answered on 14 Aug 2018
5 answers
203 views
I have a rad grid that is selecting fields from 2 different tables. If i have one control parameter in the SQL data source, the grid rebinds fine and shows the data. When i add an OR clause to my SQL statement in the data source configurator for another control parameter. The grid no longer rebinds. But if i test the query from the SQL data source "Test Query", the statement works fine and pulls the data it is supposed to. Any reason as to why the grid would have an issue with the SQL statement having multiple control parameters? I can post code if you need me to.
Eyup
Telerik team
 answered on 14 Aug 2018
7 answers
273 views
Hi Telerik Community,

I am trying to get the text for the selected node, but keep getting "undefined" Here is my javascript:
var tree = $find("<%= RadTreeView1.ClientID %>");
var node = tree.get_selectedNode();
var ParentFolder = tree.get_selectedNode().get_text();

Right now I just have an alert box to show the value of node and the value of ParentFolder but they both keep coming back "undefined" even when I have a node seleted on my RadTreeView (id=RadTreeView1). I am using version 2011.1.519.35 (not sure if that would make a difference in the syntax).

Thanks,
Joe
Peter Milchev
Telerik team
 answered on 14 Aug 2018
16 answers
1.8K+ views
Hi,
I want to know the checked Node is parent node or  Child node.Can I do that.
Please let me know.
I am having a tree view which is loaded by the sql datasource like this,
<telerik:RadTreeView ID="tvwGroups" Height="320px" Width="300" runat="server" CheckBoxes="True" TabIndex="1"
                            DataSourceID="sdsTreeView" DataFieldID="CATGROUPID"  DataTextField="NAME" DataFieldParentID="PARENTID" OnNodeCheck="OnNodeCheck_tvwGroups">
                                <DataBindings>
                                    <telerik:RadTreeNodeBinding TextField="NAME" ValueField="CATGROUPID" />
                                    <telerik:RadTreeNodeBinding Depth="0"  ValueField="CATGROUPID" TextField="NAME"/>
                                </DataBindings>
                            </telerik:RadTreeView>
I want to do different things based on the parent node and child node.


Thanks,
Sravanthi.
Peter Milchev
Telerik team
 answered on 14 Aug 2018
1 answer
178 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
479 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
125 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
193 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?