Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
33 views
Hi there,

Can any one help me, how to format data exporting from grid to Excel, PDF and CSV?
When I export the grid its alignment looks very badly.

And i am not getting the ExportToExcelML() in my code behind.

Regards,

Amarnath
Shinu
Top achievements
Rank 2
 answered on 28 Dec 2010
4 answers
58 views

Hello.

I'm using a RadSplitter control with a RadTreeView in the left pane and a detail ASP:Panel on the right pane.

All is working fine except the speed of the right panel update. Updating the controls in the as:panel container is very slow when the tree contains many nodes and it's fast when the tree contains a few nodes. The update is triggered when the user clicks on a node.

In the Ajax Manager i'm updating the asp:panel PanelTreeItems only and not the left pane that contains the tree (PanelMain). Does it mean that the tree is also updated?
Here is the ASP code

...
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyFilters" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTreeView">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="PanelTreeItems" LoadingPanelID="RadAjaxLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadWindowManager ID="RadWindowManager" runat="server" Skin="Outlook">
    </telerik:RadWindowManager>
...
<asp:Content ID="ContentMain" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <asp:Panel ID="PanelMain" runat="server" Visible="true">
    <table>
        ...
        <telerik:RadSplitter ID="RadSplitter" runat="server" Height="100%" Width="100%" Visible="false"
            ResizeMode="EndPane" Skin="Office2007">
            <telerik:RadPane ID="Radpane1" runat="server" Width="350" Scrolling="Y" MinWidth="22">
                <table id="MainTable" style="z-index: 102;" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <telerik:RadTreeView ID="RadTreeView" runat="server" CheckBoxes="false" Height="90%">
                        </telerik:RadTreeView>
                    </tr>
                </table>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"></telerik:RadSplitBar>
            <telerik:RadPane ID="Radpane2" runat="server" Scrolling="None" MinWidth="22">
                <asp:Panel ID="PanelTreeItems" runat="server" Visible="true">
                ...
                </asp:Panel>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </table>
    </asp:Panel>
</asp:Content>

Thanks for you help.
Regards
Augusto
Iana Tsolova
Telerik team
 answered on 28 Dec 2010
3 answers
70 views
Hello, I upgraded to the latest and it seems that the LoginStatus and LoginName are rendering as Buttons!  They are supposed to be normal text, I think.  I use the formdecorator in my master page for All controls - any way to turn it off specifically for this or to override the style below?  Note: I'm not a CSS expert, so you would have to tell me what to put.   Maybe a good feature going forward is to also specify IgnoreControls="LoginControl", in case you want ALL but ignore only these controls...
thanks
Marty

<span id="ctl00_ctl00_DefaultContent_LoginView1_loginName1" class="rfdLoginControl">Welcome sa</span>
Bozhidar
Telerik team
 answered on 28 Dec 2010
1 answer
180 views
Hi,
We are facing issues while using the Clinet side validation (RequiredFieldValidator) in RadGrid EditFormSettings section.
The Edit/Add form has a button (btnGrdSave), on click btnGrdSave button the RequiredFieldValidator doesn't gets fired, instead the server side code is executed. This behaviour is causing the server code execution before validating the form.

I am attaching the code, kindly review and help me in sorting out the issue.

Code:
<telerik:RadGrid ID="RadGridAmount" runat="server" GridLines="None" AllowPaging="True"
                                                                        PageSize="5" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
                                                                        HorizontalAlign="NotSet" AllowMultiRowEdit="false" AllowFilteringByColumn="true"
                                                                        OnItemCommand="RadGridAmount_ItemCommand" Width="100%" AllowMultiRowSelection="False" AllowAutomaticUpdates="True"
                                                                        OnNeedDataSource="RadGridAmount_NeedDataSource" OnPreRender="RadGridAmount_PreRender">
                                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                                        <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="RangeID" EditMode="PopUp">
                                                                            <CommandItemSettings ShowAddNewRecordButton="true" />
                                                                            <Columns>
                                                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Select" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:CheckBox ID="chkRangeID" runat="server" AutoPostBack="false" />
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridBoundColumn UniqueName="RangeID" HeaderText="RangeID" AllowFiltering="false"
                                                                                    DataField="RangeID" Visible="false">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridBoundColumn FilterControlWidth="105px" HeaderStyle-Width="300px" ItemStyle-Width="300px"
                                                                                    DataField="RangeFrom" HeaderText="RangeFrom" SortExpression="RangeFrom" UniqueName="RangeFrom"
                                                                                    HeaderStyle-Font-Bold="true" ReadOnly="true">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridBoundColumn FilterControlWidth="105px" HeaderStyle-Width="300px" ItemStyle-Width="300px"
                                                                                    DataField="RangeTo" HeaderText="RangeTo" SortExpression="RangeTo" UniqueName="RangeTo"
                                                                                    HeaderStyle-Font-Bold="true" ReadOnly="true">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridTemplateColumn HeaderText="Percentege" DataField="Percentege" UniqueName="Percentege"
                                                                                    HeaderStyle-Font-Bold="true" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="txtPercentage" runat="server" Width="30%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridTemplateColumn HeaderText="Amount" DataField="Amount" UniqueName="Amount"
                                                                                    HeaderStyle-Font-Bold="true" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="txtAmount" runat="server" Width="30%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridEditCommandColumn>
                                                                                </telerik:GridEditCommandColumn>
                                                                                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete">
                                                                                </telerik:GridButtonColumn>
                                                                            </Columns>
                                                                            <EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit RangeID: {0}"
                                                                                CaptionDataField="RangeID" EditFormType="Template">
                                                                                <FormTemplate>
                                                                                    <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Range From:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtRangeFrom" Text='<%# Bind("RangeFrom") %>' runat="server" ValidationGroup="RangeValidation1">
                                                                                                </asp:TextBox>
                                                                                                  <asp:RequiredFieldValidator runat="server" ID="rfvFrom" ControlToValidate="txtRangeFrom"
                                                                                                    Display="Dynamic" ErrorMessage="Range From is required" ValidationGroup="RangeValidation1" />
                                                                                           
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Range To:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtRangeTo" Text='<%# Bind("RangeTo") %>' runat="server" ValidationGroup="RangeValidation1">1
                                                                                                </asp:TextBox>
                                                                                                  <asp:RequiredFieldValidator runat="server" ID="rfvTo" ControlToValidate="txtRangeTo"
                                                                                                    Display="Dynamic" ErrorMessage="Range To is required" ValidationGroup="RangeValidation1" />
                                                                                           
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <table style="width: 100%">
                                                                                        <tr>
                                                                                            <td align="right" colspan="2">
                                                                                                <asp:Button ID="btnGrdSave" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                                                    ValidationGroup="RangeValidation1" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                                                                </asp:Button>&nbsp;
                                                                                                <asp:Button ID="btnGrdCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                                                    CommandName="Cancel"></asp:Button>
                                                                                                <asp:ValidationSummary ID="valsumm" runat="server" ValidationGroup="RangeValidation1" ShowSummary="true">
                                                                                                </asp:ValidationSummary>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </FormTemplate>
                                                                            </EditFormSettings>
                                                                        </MasterTableView>
                                                                    </telerik:RadGrid>
Nikolay Rusev
Telerik team
 answered on 28 Dec 2010
0 answers
120 views
I have a RadComboBox with AutoPostBack property set to "True". When the SelectedIndexChanged of RadComboBox gets fired, the page does gets loaded completely, but suddenly after that it throws a javascript runtime error. The same happens even on click of a button too.

I have attached the snapshot of the error that pops up.

Even if i comment out all the code written in SelectedIndexChanged Event, still its throws the same javascript runtime error. So i think there is something wrong with the markup written (but not sure).

It would be of great help to me if you shed some light on the possibilities of what might be the cause of the error.

Please do reply on urgent basis, as i am stuck in my project due to this issue.

Thanks in advance.
<telerik:RadAjaxManager ID="radAjaxManager" runat="server" EnableHistory="True">
        <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="btnAddMembers">           
             <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGvViewMembers" LoadingPanelID="radMembersLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="radGvViewExisitngMembers" LoadingPanelID="radMembersLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="lblImport"/>
                    <telerik:AjaxUpdatedControl ControlID="lblErrorImport"/>
                    <telerik:AjaxUpdatedControl ControlID="radComboDatabase"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnRemoveMembers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGvMembers" LoadingPanelID="radMembersLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="radMembersLoadingPanel" runat="server" Height="75px"
        Width="75px" Transparency="2">
        <asp:Image ID="loadingImg" runat="server" ImageUrl="~/App_Themes/Default/images/loading.gif"
            AlternateText="Loading..." />
    </telerik:RadAjaxLoadingPanel>
 
<!-- RadComboBox   -->
<telerik:RadComboBox ID="radComboDatabase" runat="server" AutoPostBack="true" OnSelectedIndexChanged="radComboDatabase_SelectedIndexChanged"
                        AppendDataBoundItems="true">
                        <CollapseAnimation Type="OutQuint"></CollapseAnimation>
                        <Items>
                            <telerik:RadComboBoxItem Text="Select database" Value="-1" />
                        </Items>
                    </telerik:RadComboBox>

Anup
Top achievements
Rank 1
 asked on 28 Dec 2010
0 answers
72 views
Hi Sir,

I download the trial version use tree list for testing to see my requirement.

My most of the requirement are fulfill in the treelist but I want to Context Menu in TreeList and use it backed side.

If this possible ? then please give me one small example.

Thanking you,

Kishor Dalwadi
Kishor Dalwadi
Top achievements
Rank 2
 asked on 28 Dec 2010
2 answers
84 views
Hi sir,

I have requirement for use radiobuttonlist as resources type.

Advanaceform's all controls  and one more control radiobuttonlist as attribute use in my application.

Please give me proper solution for that.

Thanking you.

Kishor Dalwadi
Kishor Dalwadi
Top achievements
Rank 2
 answered on 28 Dec 2010
2 answers
257 views
Hi, I have a gridview and am using templates to display and edit data. In the Item templates I use a Label to display the records RefrigerantType. When I go to edit mode I have a dropdown which is bound to a sqlDatasource and it works fine except that I need it to default to the value of the label in the item template. I have searched quite a bit but can't seem to find a way to do this. One thing that is different here is that there is only one Column in the table for the Refrigerant Type so both the DataTextField and DataValueField are the same. How do I get the value of the Label and set the dropdown default value to it? Thanks for any help.
AkAlan
Top achievements
Rank 2
 answered on 28 Dec 2010
0 answers
103 views
Hello,
          I have a flash control that I want to hide /show on click of a button. This flash control and button are inside UpdatePanel. 

 The flash control is below

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="200" HEIGHT="40" id="myMovieName"><PARAM NAME=movie VALUE="xyz.swf">
    <PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED href="xyz.swf" width="200px" height="40px" bgcolor="#FFFFFF" NAME="myMovieName" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" >
    </EMBED>
    </OBJECT> 


This works well in IE but not in Google Chrome. I use "display" property's "none" and "block" to hide/show the control. If I have textbox instead of flash control it works in google chrome. Is there anything that I m missing.  Please let me know.

Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 asked on 28 Dec 2010
1 answer
82 views
Hello -- I am using RadScheduler with a WCF service and custom data provider. I am still early in development, and have successfully retrieved basic, non-recurring appointments from my data store and shown them on the GUI. Now I am trying to show a recurring appointment, and I keep getting "The server method 'Get Appointments' failed". What I need to know is: how do I get the GUI to show me the details of this exception so I can figure out what's going wrong? I've walked through all my server code and no exception occurs. I need real exception details now, and I don't know how to get the GUI to show them to me. Please help!!

Thanks,
Landon
Landon
Top achievements
Rank 1
 answered on 27 Dec 2010
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?