Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi,
I have treelist with several templated controls. How am I supposed to read values out of these controls if they are colapsed?

Your own support says that the collapsed items are not available until expanded  (http://www.telerik.com/forums/get-all-items-in-radtreelist-include-collapse-items). Nice. Am I supposed to tell my users to expand the whole tree before saving?
Eyup
Telerik team
 answered on 20 May 2014
3 answers
114 views

I have a fairly complex page which consists of a RadGrid along with several levels of nested views along with various nested tabs, grids, and such.  While things are currently functional, they are not what is desired and I am looking for some pointers on where to go from where I am.

Currently my situation consists of the following "levels":

Level 0 - Grand Totals By Business Entity
Level 1 - Expenses Summary
Level 1 - Revenue Summary
Level 1 - HTML PIE Chart showing breakdown of overall
Level 2 - Detail Summary grouped into fixed categories
Level 3 - Per Item Detailing items represented by level 2 summary. (User insert/update/delete allowed)
Level 3 - Supporting file attachments via AsyncUpload control. (User insert/delete allowed)

Each represents a level of nesting of data.  Level zero being the topmost summary level.  Each level has a header/footer with aggregation used to produce totals.  Level 1 consists of a RadTabStrip with two RadGrids and one RadHtmlChart Pie Chart.  Level 2 has a summary grid.  Level 3 is where actual user entry occurs.

From my end users perspective, they want to keep the expanded details expanded, and their totals get updated when they insert/update/delete new items.  I seem to be able to either keep things expanded OR update the totals.  When I attempt to do both, I end up with collapsed summaries. 

Everything is server side and business object based.  All databinding is down via NeedsDataSource type binding or explicit binding on the "expanded" action command.

As I now have things my detail levels stay open and my filters are preserved.  The totals are not updated until the users select a "refresh" button and a given detail level.  This results in all child levels collapsing but they get their totals updated while preserving their filters.

I have tried all kinds of ideas from adding logic to track grouping/expanded items, to using the RadPersistanceManager process.  I suspect that I am over thinking my problem.  Does anyone have any pointers on arriving at a solution which keeps the detail/group levels in their current state while also updating the summary totals on the parent levels???

Your suggestions would be appreciated.

Viktor Tachev
Telerik team
 answered on 20 May 2014
4 answers
103 views
I have a radGrid that renders the row cells different, depending on if the cell has data. If the cell has data, then an additional line is rendered on the bottom of the cell, spanning the cell width, when the row is highlighted. The cells without any data do not render this line. This happens if enablealternatingitems is true or false, gridlines on/off. Also, the gridlines will NOT render if they are turned on.  This is my base grid code - minus all the columns. I am using Telerik.web.ui.dll version 2010.1.415.35.

<telerik:RadGrid ID="dgServices" runat="server" Width="99%" AutoGenerateColumns="False" 
   CellPadding="0" AllowMultiRowSelection="true" GridLines="Both" ShowFooter="true"  AllowPaging="false">  
   <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">  
       <Scrolling AllowScroll="true" /> 
   </ClientSettings> 
   <PagerStyle Mode="NumericPages" /> 
   <HeaderStyle Font-Bold="true" /> 
   <MasterTableView Width="98%" DataKeyNames="ServiceSeq"
 The attached screen shot shows the rendering effect.
Maria Ilieva
Telerik team
 answered on 20 May 2014
1 answer
46 views
Hi,

we have upgraded to Telerik version 2014.1.225.40   and testing the page, the page (having a main grid and details grid) loads fine in IE 10..

IE 10
main & details grid looks good
IE 8
main looks good, but the
details grid header is not visible..

Attached are the screenshot.  Code snippets as well.. Any help is appreciated

Thanks,
Suryansu


<telerik:RadGrid CssClass="SecondgridElement" ID="radGrdCurrencyMapDetails" runat="server"
SkinID="RadGrid" DataSourceID="objContDSCurrencyMapDetails" OnItemCommand="radGridCurrencyMapDetails_ItemCommand"
OnItemDataBound="radGrdCurrencyMapDetails_ItemDataBound">
<MasterTableView DataKeyNames="CurrencyMapPeriodId" CommandItemDisplay="None" EditMode="InPlace">
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
<Columns>
<%--<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../App_Themes/Default/Grid/Update.gif"
EditImageUrl="../App_Themes/Default/Grid/Edit.gif" InsertImageUrl="../App_Themes/Default/Grid/AddRecord.gif"
CancelImageUrl="../App_Themes/Default/Grid/Cancel.gif" UniqueName="EditCommandColumn">
<HeaderStyle Width="7%" />
<ItemStyle HorizontalAlign="Center" />
</telerik:GridEditCommandColumn>--%>
<telerik:GridTemplateColumn UniqueName="EditCommandColumn" AllowFiltering="false">
<ItemTemplate>
<asp:ImageButton ToolTip="Edit Exchange Rate Period Map Details" ID="imgEdit" runat="server"
ImageUrl="../App_Themes/Default/Grid/Edit.gif" OnClientClick='<%#Eval("CurrencyMapPeriodId","javascript:EditExchangeRatePrdMap({0});")%>' />
</ItemTemplate>
<HeaderStyle Width="3%" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Output period" UniqueName="dst_period" DataField="DstPeriod"
SortExpression="DstPeriod" DataType="System.Int16">
<ItemTemplate>
<asp:Label ID="lblDstPeriod1" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"DstPeriod") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblDstPeriod" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"DstPeriod") %>'></asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Output year" UniqueName="dst_year" DataField="DstYear"
SortExpression="DstYear">
<ItemTemplate>
<asp:Label ID="lblDstYear1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DstYear") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="lblDstYear" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DstYear") %>'></asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Exchange rate period" UniqueName="src_period"
DataField="Srcaperiod" SortExpression="Srcaperiod">
<ItemTemplate>
<asp:Label ID="lblSrcaperiod1" runat="server" Text='<%# "P"+ DataBinder.Eval(Container.DataItem,"Srcaperiod") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="radCmbSrcaperiod" runat="server" DataTextField="Text" DataValueField="Value">
</telerik:RadComboBox>
<asp:Label ID="lblSrcaperiod" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Srcaperiod") %>'
Visible="false">
</asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Exchange rate year" UniqueName="src_year"
DataField="SrcYear" SortExpression="SrcYear">
<ItemTemplate>
<asp:Label ID="lblSrcYea1r" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SrcYear") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="radCmbSrcYear" runat="server" DataTextField="Text" DataValueField="Value">
</telerik:RadComboBox>
<asp:Label ID="lblSrcYear" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"SrcYear") %>'
Visible="false">
</asp:Label>
</EditItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>



Eyup
Telerik team
 answered on 20 May 2014
1 answer
106 views
I want to  delete a selected node on delete key press using OnClientKeyPressing event.
But its still not working after setting the tab to treeview.

Thanks,
vsoni
Nencho
Telerik team
 answered on 20 May 2014
3 answers
119 views
Is it possible to change line series marker colour dependant on value?
Simon Channell
Top achievements
Rank 1
 answered on 20 May 2014
1 answer
465 views
Hi Team

I need to report an issue. I'm using Telerik.Web.UI.RadGrid control in my app. I have some special characters to be rendered in the grid (e.g. ', <, >, \, :, _ etc). When I'm saving these in DB I HTML Encode them. And when rendering back in UI, I HTML Decode them. I found that while HTML Encoding special characters, if there is this combination of characters &# in the encoded string (e.g. for ' [single quote] which becomes &#39;), there is a java script alert message with error "An unknown error occurred while processing the request on the server. The status code returned from the server was: 500". If I remove this &# in the string from back end then it works fine. 

I really need help on this as the special characters are really required in the strings and I cannot go in the entire database remove this &# string combination and thus make the data invalid. Below is more details from the metadata of the control I'm using in my app.

namespace Telerik.Web.UI
{
    [ClientScriptResource("Telerik.Web.UI.RadGrid", "Telerik.Web.UI.Grid.RadGridScripts.js")]
    [ControlValueProperty("SelectedValue")]
    [DefaultEvent("NeedDataSource")]
    [DefaultProperty("")]
    [Description("Telerik RadGrid")]
    [Designer("Telerik.Web.Design.RadGridDesigner, Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
    [EmbeddedSkin("Grid")]
    [EmbeddedSkin("Grid", "Default")]
    [TelerikToolboxCategory("Telerik AJAX Data Components")]
    [ToolboxBitmap(typeof(RadGrid), "Telerik.Web.UI.Grid.png")]
    [ToolboxData("<{0}:RadGrid runat=server></{0}:RadGrid>")]
    public class RadGrid : GridBaseDataList, INamingContainer, IPostBackDataHandler, IPostBackEventHandler, IRadFilterableContainer
    {
........
........
}
Konstantin Dikov
Telerik team
 answered on 20 May 2014
1 answer
101 views
Hi,

i have to develop a webpage for a restaurant. Is it possible to create a virtual menu with telerik controls?

Thanks a lot
Best Regards
Rene
Vessy
Telerik team
 answered on 20 May 2014
4 answers
504 views
Hi All,

I want to cancel the post back when calling "OnClientIndexChanged" event.
I tried to set AutoPostBack="false", but the page still posts back.
I tried to cann eventArgs.set_cancel(true) for "OnClientIndexChanging", but then the client selection is not shown.

How can I solve this problem?
I just don't want the page to posts back...

Thanks for your help..
THANGARAI
Top achievements
Rank 1
 answered on 20 May 2014
2 answers
174 views
Hi All
Why am i not getting answered?

is there something that i am missing?
I try to set the value of radnumeric textbox inside a grid cell templatecolumn
ı try this and it doesnt work.

why?
     function RowSelected(sender, eventArgs) {
            var grid = sender;
            var MasterTable = grid.get_masterTableView();
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
            row.findElement("Numeric1").set_value(15);
        }
THANGARAI
Top achievements
Rank 1
 answered on 20 May 2014
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?