Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
1.1K+ views
Hi,

         I implemented grid view-export to excel functionality in my application.
 
         By default it will take .xls  format..i need it to be .xlsx  format (2007 ).

         but when i added .xlsx file extension in my code..it is  unable to open that fiel

        please let me know the solution for this...

        Urggggent ..plzzzzzzz

Thanks,

Daniel
Telerik team
 answered on 22 Aug 2012
5 answers
894 views

I have a simple form with two masked text boxes for phone numbers and two regular expression validators that are validating the phone numbers. If the Masked Text Boxes are left alone and never get focus, they do not trigger the validation. But once the Text Box gets focus, it sets the value to be a blank masked value with no numbers. This causes the Regular Expression validators to be triggered when the page is submitted.

Anyone have any ideas on a way around this?

...
<div>
     <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="ProfileUpdateValidationGroup" />
     <dl>
          <dt>Work Phone</dt>
          <dd><telerik:RadMaskedTextBox ID="WorkPhone" runat="server" CssClass="rfdRoundedCorners" Mask="(###) ###-####" PromptChar="" ValidationGroup="ProfileUpdateValidationGroup" HideOnBlur="True" /><asp:RegularExpressionValidator ID="WorkPhoneRegularExpressionValidator" runat="server" ErrorMessage="Please enter a valid phone number for Work Phone" ToolTip="Please enter a valid phone number for Work Phone" ValidationGroup="ProfileUpdateValidationGroup" ControlToValidate="WorkPhone" Display="Static" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" CssClass="Sprite18 Imp">* </asp:RegularExpressionValidator></dd>
          <dt>Mobile Phone</dt>
          <dd><telerik:RadMaskedTextBox ID="MobilePhone" runat="server" Mask="(###) ###-####"  HideOnBlur="true" PromptChar="" CssClass="rfdRoundedCorners" ValidationGroup="ProfileUpdateValidationGroup"  /><asp:RegularExpressionValidator ID="MobilePhoneRegularExpressionValidator" runat="server" ErrorMessage="Please enter a valid phone number for Mobile Phone." ToolTip="Please enter a valid phone number for Mobile Phone." ValidationGroup="ProfileUpdateValidationGroup" ControlToValidate="MobilePhone" Display="Static" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" CssClass="Sprite18 Imp">* </asp:RegularExpressionValidator></dd>
     </dl>
</div>
<telerik:RadButton ID="ButtonSave" runat="server" Text="Save Changes" Style="float: right; top: 0px; left: 0px;" Skin="Office2010Blue"  onclick="ButtonSave_Click" ValidationGroup="ProfileUpdateValidationGroup" />
...

rootberg
Top achievements
Rank 2
 answered on 22 Aug 2012
6 answers
190 views
Hi team,
when i try to use RadAjaxLoadingPanel inside the content page it is not display while ajax happen
but when i use it in normal page without master page then it display normally, kindly find below the details:

in the master page i have 
<telerik:RadScriptManager ID="DefaultRadScriptManager" runat="server" EnableScriptCombine="true"
        EnableEmbeddedjQuery="false">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/jquery-1.7.2.min.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.corner.js" />
            <asp:ScriptReference Path="~/Scripts/jquery.blockUI.js" />
        </Scripts>
    </telerik:RadScriptManager>

and in the content page i have 

<telerik:RadAjaxLoadingPanel ID="ralpAssign" runat="server" />
    <telerik:RadAjaxManager ID="ramAssign" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="rbtnOK">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rbtnOK" UpdatePanelRenderMode="Inline" />
                    <telerik:AjaxUpdatedControl ControlID="rgAssigningDetails" LoadingPanelID="ralpAssign" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

what happen is when i use any browser except IE i get the following : 
the first click the loading panel display but after the first postback when i try to click on the button 
the loading panel not display.


kindly let me know why that behavior happen.

Mohammed
Top achievements
Rank 2
 answered on 22 Aug 2012
1 answer
106 views
Hi All,

I am using Radcombobox using Web Service in Master Page.

 <WebServiceSettings Path="MasterPageEmployeeList.asmx" Method="GetEmployeeList" />         

But returning Server error like The Server method 'GetEmployeeList' failed.

but i use the same radcomobobox into aspx page. it is working fine.

Please let me know can i use that type of radcombobox into master page or not.

Thanks in Advance,
Dhamu
Dhamodharan
Top achievements
Rank 1
 answered on 22 Aug 2012
1 answer
204 views
i1 image from RadEditor for diplay.
i2 image is from Html TextArea when i display...


I'm not able to achive as it will be displayed in HTML TextArea.
Plzz help ...


Dobromir
Telerik team
 answered on 22 Aug 2012
1 answer
89 views
Hi all,
     I want to add a button on the titlebar of the radwindow to close the radwindow. How do I add a button on the title-bar
Savyo
Princy
Top achievements
Rank 2
 answered on 22 Aug 2012
3 answers
141 views

Telerik team,

I am using OnClientNodeEditing event of radtreeview to rename the node. I am also updating the database from the client side.
I am getting a weird problem. Whenever I rename the node and after then any server side event gets call the node get the previous text i.e. the text which was before renaming.

I don't want to post back for simple action like renaming the node.
Please let me know the cause and resolution for such behavior of the radtreenode.

Any help will be appreciable.

Regards,
Sampada








Bozhidar
Telerik team
 answered on 22 Aug 2012
3 answers
126 views
Hello,

I am currently working on a project and we decided to use the AutoCompleteBox to help with a search utility on the web application.  The control is great but I have 2 questions about it.

1.  Is there a way to limit the search to when the user types 3 characters?  I think I saw an answer to this already but I want to be sure because if I can make it work after 3 characters are typed in the box it might fix the next problem.

2.  The control works great for small queries to the database, but it does not work well with large queries.  We have a mix of both in the application, some forms use a select statement for data, some have a stored procedure with paging.  In our grids we use custom paging with a stored procedure in the database, we have some that are normal paging and some that are the Google style where when you scroll it automatically pages, is there a way to achieve the same functionality in the AutoCompleteBox?  With having several thousand records, the item just hangs up after the first key is pressed for a minute or 2 before any results are populated.

Thanks for any help!
Kalina
Telerik team
 answered on 22 Aug 2012
3 answers
122 views
Hi,

is there a chance to set an EmptyMessage value for RadAutoCompleteBox?

Best regards
Rayko
Kalina
Telerik team
 answered on 22 Aug 2012
1 answer
85 views
Hi

i have two GridTemplateColumn  for submit button & Reject button . Am ordering the column  seq from codebehind . My problem is column header is changed but data remain static. In attached image the cancel button should come first then submit button but its vice versa.



 <telerik:GridTemplateColumn Visible="true" UniqueName="imgbtnFirst" AllowFiltering="false">
                    <ItemTemplate>
                        <asp:ImageButton  ID="imgbtnFirst" runat="server" OnClick="btnFirstOnClick" Width="15px"
                            Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../../IMages/MoveDown.gif" :"../../IMages/Cancel.gif"%>'
                            ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Reject" :"Cancel"%>' />
                    </ItemTemplate>
                    <HeaderStyle Width="30px" HorizontalAlign="Center" />
                    <ItemStyle Width="30px" />
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn Visible="true" AllowFiltering="false" UniqueName="imgbtnSecond">
                    <ItemTemplate>
                        <asp:ImageButton ID="imgbtnSecond" runat="server" OnClick="btnSecondOnClick" Width="15px"
                            Height="15px" ImageUrl='<%# Eval("stsflg").ToString() =="S" ? "../../IMages/MoveUp.gif" :"../../IMages/Submit.gif"%>'
                            ToolTip='<%# Eval("stsflg").ToString() =="S" ? "Approve" :"Submit for Approval"%>' />
                    </ItemTemplate>
                    <HeaderStyle Width="30px" HorizontalAlign="Center" />
                    <ItemStyle Width="30px" />
                </telerik:GridTemplateColumn>
Eyup
Telerik team
 answered on 22 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?