Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
225 views
We have a RadGrid that we use for search results, which we limit to the first 100 hits based on the criteria.  We do this because we want to limit the load on the database, and it encourages our users to narrow down the results by adding more search criteria.  However, we'd like to be able to export the entire dataset to Excel.  Is there a way to run a new query when the export button is clicked and export the resulting dataset?

The way we limit the results is by adding a parameter to the stored procedure that indicates if it's a "QuickSearch" or not.  If not, all records are returned.  So I should be able to run the same search parameters, but change the QuickSearch to false, and that would return the entire dataset (up to 1000 records).  That's what I would like to export.  Is this possible?  Or is there a way to set up the RadGrid paging so that it only retrieves 100 records at a time?

Thanks!

Eddie
Maria Ilieva
Telerik team
 answered on 10 Jun 2008
22 answers
354 views
Hi,

I want to have different skins to my tabs with custom states (over, down, etc.). I should change the skin file TabStripStates.gif to do that.

But It's appear that the image file modification is different from the last method (with classic TabStrip Control) but I can't find documentation to do the new image file modifications.

States appear to be all in the same image (.gif).

In the new documentation (with ajax TabStripControl), customise image file (TabStripStates.gif) is not explain.

Is there an easy way to change this file (in Photoshop) to correspond to my design like your last tutorial.

Thanks.


Alex Gyoshev
Telerik team
 answered on 10 Jun 2008
4 answers
174 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
69 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
56 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
527 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
279 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
86 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
138 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?