Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
178 views
I would like to create a custom detail view, revealed by ExpandCollapse Expand and hidden by Collapse.  In particular, I was trying to use a RadPanelBar to display several detail sections with the flexibility to open/close the detail sections.

Immediately inside my <NestedViewTemplate>, I can write

<%# Eval("something") %>

which evaluates into the value of the 'something' property for the selected row -- this works as expected.

Also nested inside my <NestedViewTemplate> I include a <telerik:RadPanelBar> and its associated <Items> and <telerik:RadPanelItem>.  Inside one <ItemTemplate>, I want to output some <%# Eval("something") %>.  However, they are always blank/empty at this point.

What am I missing?

Thanks,
Tim

Here is a snippet:

    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="AjaxLoadingPanel1" 
        Height="100%" Width="100%"> 
        <telerik:RadGrid ID="RadGridExample" runat="server" AllowPaging="True" AllowSorting="True" 
            AutoGenerateColumns="False" AllowMultiRowSelection="True" DataSourceID="ExampleSummaryDataSource" 
            GridLines="None" Skin="Web20" OnPreRender="RadGridExample_PreRender" OnItemCommand="ItemCommand"> 
            <PagerStyle Mode="NextPrevNumericAndAdvanced" BackColor="#C6D9EA" Font-Bold="False" 
                Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                Wrap="True" /> 
            <MasterTableView DataSourceID="ExampleSummaryDataSource" CommandItemDisplay="Top" 
                DataKeyNames="ExampleID"> 
                <NoRecordsTemplate> 
                    <asp:Label ID="NoPoliciesToDisplay" runat="server" Text="There are no policies to display at this time.  Select the New command above to create a policy." /> 
                </NoRecordsTemplate> 
                <CommandItemTemplate> 
                    <div style="text-align: left; padding: 0px 0px 3px 5px;"> 
                        <asp:LinkButton ID="NewExampleButton" runat="server" CommandName="<%# NEW_COMMAND %>" 
                            Visible='true'><img style="border:0px;vertical-align:middle;" alt="" src="images/addrecord.gif" />New</asp:LinkButton>&nbsp; 
                        <%-- RebindGrid is handled by the RadGrid for us -- we do nothin--%> 
                        &nbsp;&nbsp; 
                        <asp:LinkButton ID="RebindButton" runat="server" CommandName="<%# REBIND_COMMAND %>"><img style="border:0px;vertical-align:middle;" alt="" src="images/refresh.gif" />Refresh</asp:LinkButton> 
                    </div> 
                </CommandItemTemplate> 
 
                <NestedViewTemplate> 
                    <div> 
                        <!-- 
                          ****  THIS ONE WORKS ****
                        --> 
                        {<%# Eval("ExampleID") %>} 
                    </div> 
                    <div class="text" style="background-color: <%# ExpandedRowBackground %>"> 
                        <telerik:RadPanelBar Width="100%" ID="RadPanelBarExampleDetail" runat="server" Skin="Web20" 
                            ExpandMode="MultipleExpandedItems"> 
                            <Items> 
                                <telerik:RadPanelItem runat="server" ID="RadPanelBarExampleDetailDetails" Text="Example Details"> 
                                    <Items> 
                                        <telerik:RadPanelItem> 
                                            <ItemTemplate> 
                                                <div class="text" style="background-color: <%# ExpandedRowBackground %>"> 
                                                    <ul class="formList"> 
                                                        <li> 
                                                            <!-- 
                                                              ****  THIS ONE IS ALWAYS BLANK ****
                                                            --> 
                                                            {<%# Eval("ExampleID")%>} 
                                                        </li> 
                                                    </ul> 
                                                </div> 
                                            </ItemTemplate> 
                                        </telerik:RadPanelItem> 
                                    </Items> 
                                </telerik:RadPanelItem> 
                            </Items> 
                        </telerik:RadPanelBar> 
                    </div> 
                </NestedViewTemplate> 
                <RowIndicatorColumn Visible="False"> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn Visible="False" Resizable="False"> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"> 
                        <HeaderStyle Width="30px"></HeaderStyle> 
                        <HeaderTemplate> 
                            <asp:CheckBox ID="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" 
                                runat="server"></asp:CheckBox> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <asp:CheckBox ID="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" 
                                runat="server"></asp:CheckBox> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridBoundColumn Visible="false" DataField="ExampleID" HeaderText="ExampleID" 
                        SortExpression="ExampleID" UniqueName="ExampleID" /> 
                </Columns> 
                <EditFormSettings> 
                    <PopUpSettings ScrollBars="None"></PopUpSettings> 
                </EditFormSettings> 
            </MasterTableView> 
            <SelectedItemStyle BackColor="#2074C7" Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                Font-Strikeout="False" Font-Underline="False" ForeColor="White" Wrap="True" /> 
            <HeaderStyle BackColor="#092C90" Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                Font-Strikeout="False" Font-Underline="False" Wrap="True" ForeColor="White" /> 
        </telerik:RadGrid> 
    </telerik:RadAjaxPanel> 
 

Tim
Top achievements
Rank 1
 answered on 10 Jun 2008
1 answer
72 views
Hi there my last thread got corrupted some how so I'm starting a new one with the same Title. 

I  tried the latest hotfix and it fixes the Table Insert drop down but the OnHover for the Zoom and Paragraph tools are still loosing their styles. For a recap I'm using latest RadEditor inside an ajaxified RadGrid's usercontrol. The styles don't load properly when Ajax is turned on. Any help is greatly appreciated.

 


From: telerik
Date: 6/4/2008 8:42:56 AM
Hello Rory,

The problem should be fixed in the latest in-house build of RadControls for ASP.NET AJAX which you can download the hotfix from here
.

If you still experience problems please do not hesitate to contact us.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center




From: Rory
Date: 6/3/2008 8:34:52 PM
Hi there I'm using a simple UserControl with a RadEditor and a RadGrid that edits and adds via the user control. The grid is contained by an Ajaxified <Div> that is set in my AjaxManager. When I click add or edit and fire Ajax Requests to enter Edit Mode the editors Toolbar dropdown for <tool name="Zoom"> and <tool name="FormatBlock"> never fully load.

When I turn Ajax off it works fine but I need the Grid to be Ajaxified. is there any way to exclude the RadEditor once its in side the <div> or some other way of turning off Ajax just for the Editor.
Thanks.
Rumen
Telerik team
 answered on 10 Jun 2008
2 answers
105 views
An issue I am dealing with with RadGrid Ajax ExporttoPDF()


When exporting to pdf, footer is not displaying.

Also, caption is not displaying oin pdf...

Any assistance is greatly appreciated.

Terry

Terry
Top achievements
Rank 1
 answered on 10 Jun 2008
5 answers
58 views
Hi,
I have two level tabs on master page as parent and child. Now i want a functionality like when i point to parent tab through mouse i suppose to see all child tab of that  particular parent and after clicking on child tab i need to see child page(Contain page)
how can i do this....?
Plz help me...
Sagar Baheti
Top achievements
Rank 1
 answered on 10 Jun 2008
4 answers
532 views
Hi,

I tried to set the attribute "width" of the new radtoolbar to 100%, but it doesn't affect it. I'm using Vista skin.
Can you help me with this one, please?
Simon
Telerik team
 answered on 10 Jun 2008
10 answers
289 views
This is my first attempt at using the chart. It works fine until I set the ChartClientScrollMode to anything other than "None".  The error I get is 
 
Sys.Webforms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

In my ascx page(it's in a user control) the RadChart is defined:

<

telerik:RadChart ID="RadChart1" runat="server" Height="500px" Width="800px">

</telerik:RadChart>


The initialization occurs in the code behind:

The datasource is populated with a dataset created from a storedproc.

RadChart1.DataSource = charts.SPDataSet;

ChartSeries series1 = new ChartSeries("PercentChange", ChartSeriesType.Line);

RadChart1.Series.Add(series1);

RadChart1.PlotArea.XAxis.LayoutMode =

ChartAxisLayoutMode.Between;

RadChart1.Series[0].DataYColumn =

"pctChange";

RadChart1.PlotArea.XAxis.DataLabelsColumn =

"NSTERRITORY";

RadChart1.ChartTitle.TextBlock.Text =

"Percent Change By Territory from Q4 '06 to Q4 '07";

RadChart1.AutoLayout =

true;

RadChart1.Legend.Visible =

false;

RadChart1.ClientSettings.EnableZoom =

false;

RadChart1.ClientSettings.ScrollMode = Telerik.Web.UI.

ChartClientScrollMode.Both;

RadChart1.ClientSettings.XScale = 4;

// bind to the datasource

RadChart1.DataBind();

I tried all values for the ChartClientScrollMode and get the same error (except when it is None).

The error occurs in the databinding event.  Is there something I've left out that should be there?

Thanks!

Edited to add: My Chart dll says it's version:  2.0.1.0 - when I first started using the chart I got an error message and it said to add this to my web config:

<

add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2008.1.515.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />


joni

joni
Top achievements
Rank 1
 answered on 10 Jun 2008
1 answer
88 views
Hi,

I started testing RadEditor version 4.5. There I made some modifications on the dialogs. Now I bought the RadControls. This package includes the new Editor version 5.0. and I wanted to make the same modifications on following files:

ICE_RadEditorHelp.ascx
DocumentManager.ascx
ImageManager.ascx
FileBrowser.ascx

  But in this version I do not find the folders dialogs etc. Isn't it possible to modify them? Or do I have to search in a different place? Thanks for helping.

Falk
Georgi Tunev
Telerik team
 answered on 10 Jun 2008
1 answer
141 views
Is there any way to change the default field (the field that has focus) in the Hyperlink Manager?  I'd like to be able to have the URL field have focus and automatically select the contents so that users can simply type/paste a URL and press OK instead of having to click the URL field and select the contents before typing/pasting.

Cheers -- Peter
George
Telerik team
 answered on 10 Jun 2008
2 answers
147 views
Hello,

I'm using Lite Editor for MOSS2007, and I have a problem with the Table Wizard. I created my custom CSS class, added it to ToolsFile like this:
 
    <classes> 
        <class name="Alternating Table Row" value=".ArticleTableAlternatingTd" /> 
    </classes> 

Then I would like to use the tab "Cell properties" of table wizard, in order to mark desired table cells, and apply the style. Unfortunately, the drop down list is displayed properly only in IE, but in Firefox and Safari it contains only one item "Clear Style". Is this a known issue? are there any workarounds?

Thanks,
dj
dj
Top achievements
Rank 1
 answered on 10 Jun 2008
2 answers
176 views
I see posts by people mentioning version 5 but I only see version 4.5.3 in my downloads section of 'My Purchases'.

If there is a version 5, how do I get hold of it and where can I view a list of fixes/additions to the new version?

Thanks
Georgi Tunev
Telerik team
 answered on 10 Jun 2008
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?