Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views

hello .I have a question about exporting a grid to excel

I have a grid with one numeric column(INT 32) and I want to show the content of this cell with comma (Like 10,000) and when it will export to excel it shows exactly like the content (I mean 10,000 in grid and in excel both) And the main part is I want it will be numeric cell in excel not string cell.

I have added this parts to column  :   DataType="System.Int32" DataFormatString="{0:n0}

but after exporting, this cell format is not numeric .it is string and I should change it to numeric cell manualy . I want it in numeric format .

Thanks in Advanced

Viktor Tachev
Telerik team
 answered on 22 Aug 2016
3 answers
390 views
Q: When dragging rows up or down, how do we capture the new index?

With the new drag & drop features of the 2009.Q2 release, is there a simple example of dragging a RadGrid row up or down?  All the online demos drag *between* grids, but even the online demos do not move the row up or down.

I can do all the database stuff, I just need to know what event to hook into when dropping on the same grid, and how to get the new grid index of the dropped row.

Logically it would be something like:
grid1_rowdropped....
    if startingGrid = droppedGrid then
        get index of new location in grid1 that the row was dropped into
            do database stuff here (I can do this once I get the index passed back)

I just need a little nudge in the right direction.
(If anyone is building a simple sample from scratch, a small ToDo list sample would probably be usefull for the community.)

Thank you,
Mike
Konstantin Dikov
Telerik team
 answered on 22 Aug 2016
2 answers
80 views

I created a menu based on the sample "Menu - Server-side Templates" http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx

unfortunately the submenu links are not working on mobile devices (tested on IPhone 6), same problem with your demo application.

How can I fix the problem.

Regards,

Thomas

Thomas
Top achievements
Rank 1
 answered on 22 Aug 2016
16 answers
555 views
Hi,
I'm using the scheduler to organize appointments on a bunch of rooms; sometimes it happens that the appointment is not for a defined room but for any room available at that moment, i would like to have the appointment item to spread across the columns instead of having single items per every column.
I added a screen shot of what it is and what I'd like to have (manipulated by graphic tools)
Thanks in advance
Plamen
Telerik team
 answered on 22 Aug 2016
4 answers
513 views
I have a page with a few buttons contained in a panel. The buttons will initially be invisible but after some user actions, some of the buttons will be visible. I'm using RadAjaxManager to ajaxify the panel so that the buttons can be visible/invisible.

But one of my buttons need to trigger a downloading of a file, and I need to do a response.write. I did not ajaxify that button, so I assume that it should do a normal non-ajax postback when clicked but it is not working, because I get an ajax error -

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed

So this means that even though I did not ajaxify that button, but because that button was participating in an ajax response (due to it being invisible then visible) triggered by another control, it became ajaxified??

I have read your documentation on "Exclude controls from ajaxifying" but that only mentioned using RadAjaxPanel. I am using RadAjaxManager. So how do I make it work?

I only got this problem with Prometheus, I used to use the Q1 2007 Asp.Net controls and they work fine.

Vasudha
Top achievements
Rank 1
 answered on 19 Aug 2016
1 answer
106 views

Hi All

I'm fairly new to Telerik tools and would like some assistance.

I am using the RadImageGallery component.

Is it possible to connect the 'ImagesFolderPath' property to a share or path on a different server, rather than store all the images within the site?

Thanks

Gary

 

 

 

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 19 Aug 2016
1 answer
326 views

I am using a RadGrid to display information and allowing export to CSV option.  I would like to be able to add some additional 'static' information in the first row of the exported CSV file..

i.e.

(ROW 1) - STATIC TITLE

(ROW 2) - Column Header 1, Column Header 2, Column Header 3..etc
(ROW 3 -X) Column Data 1, Column Data 2, Column Data 3..etc 

I have research multi-header/grouping solution, onrgidExporting solution, insertRow - but I am not able to achieve what I am attempting. 

Sample of my grid

<telerik:RadGrid ID="rgTAS" Width="100%"
 AllowSorting="false"
 AllowPaging="false"
 AllowFilteringByColumn="false"
 ViewStateMode="Enabled"
 OnItemDataBound="rgTAS_ItemDataBound"
 AllowMultiRowSelection="false" runat="server"
        OnGridExporting="rgTAS_onExporting"
 GridLines="None">
 <MasterTableView Width="100%" AutoGenerateColumns="false" CommandItemDisplay="None"
            ShowFooter="false" ShowHeader="true"
             >
 <Columns>
               <telerik:GridBoundColumn DataField="cc" HeaderText="CC"></telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="country_na" HeaderText="COUNTRY"  ></telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="track" HeaderText="TRACK"></telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="ia" HeaderText="IA" ></telerik:GridBoundColumn>
            </Columns>
            </MasterTableView>
        </telerik:RadGrid>

 

 

 

Please assist...

 

Kostadin
Telerik team
 answered on 19 Aug 2016
11 answers
1.2K+ views
I realize this may sound like a slightly strange question, but I was wondering if it is possible to show 00:00-24:00 in the TimePicker. At the moment, I cannot find anyway to include both 00:00 at the beginning and 24:00 at the end. I have a scenario where I need this for a client, and I was hoping to be able to accomplish it with the Rad TimePicker rather than the drop-down lists I inherited from the previous developer.
Eyup
Telerik team
 answered on 19 Aug 2016
1 answer
548 views

Hi, All.  I am trying to find a radeditor control that's inside a RadGrid Form Template.  I have tried so many methods, and nothing seems to be quite grabbing the item. Could someone please help me?  I need to get to the content of the editor.  This is the current path I am on:

ASP.NET

            <EditFormSettings EditFormType="Template">
                <FormTemplate>
                <div style="margin: 20px 20px 20px 20px;">
                    <h3>Accept / Reject Authorization</h3>
                    <br />
                    <span style="color: Red;">Note:</span> Provide comments to the authorizing entity then click Accept or Reject.
                    <telerik:RadEditor ID="Editor1" runat="server" OnClientLoad="OnClientLoad">
                        <Content> </Content>
                    </telerik:RadEditor><br />
                    <asp:CustomValidator ID="CV1" runat="server" ErrorMessage="Comments are required!<br />" ControlToValidate="Editor1" ForeColor="Red" Display="Dynamic" ClientValidationFunction="CheckComment"></asp:CustomValidator>
<%--                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Comments are required!<br />" ControlToValidate="Editor1" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>--%>
                    <telerik:RadButton ID="AcceptAuthorization" runat="server" Text="Accept" Icon-PrimaryIconCssClass="rbOk" CommandName="Update" CommandArgument="Accept"></telerik:RadButton>      
                    <telerik:RadButton ID="RejectAuthorization" runat="server" Text="Reject" Icon-PrimaryIconCssClass="rbCancel" CommandName="Update" CommandArgument="Reject"></telerik:RadButton>      
                    <telerik:RadButton ID="CloseButton" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="False"></telerik:RadButton>
                         </div>
                </FormTemplate>
            </EditFormSettings>

Javascript:

<script type="text/javascript">
 
             function CheckComment(sender, args) {
                 alert("Hi!");
                                 
                 var ec = $telerik.findControl(container, "Editor1")
 
                      //more to come once I get past this step.           
                                args.IsValid = false;
           
                            }
 
                           </script>
  Thanks in advance!

GP
Top achievements
Rank 1
 answered on 18 Aug 2016
5 answers
116 views

Hi All,

I am totally new to Telerik controls, this is my first assignment with them and I have an issue.

No matter what I put in the editor it looses all carriage returns, shows a bullet and number in the editor but after save on the HTML page it looks like this.

$0$0Bullets$0$0$0$0$0Numbers$0$0$0$0Bold$0$0Italics$0$0Underlined$0$0$0$0 (the Bold was bolded, the Italics was italicized and the underline was underlined), but it inserts these '$0$0' before and after each item.

Does anyone have a clue what is going on, perhaps it is the AJAX Script Manager on this page, there is not a Telerik one?

I do not see any methods or .css causing an issue, I could be wrong though.

ASP.NET:

<telerik:RadEditor ID="txt_answer" Width="580" Height="250" runat="server" EnableContextMenus="True"
EnableTheming="True" ToolsFile="~/App_Data/ToolsFile.xml" EnableResize="false"
ShowSubmitCancelButtons="False" Skin="Telerik">
<cssfiles>
<telerik:EditorCssFile />
</cssfiles>
</telerik:RadEditor>

Michael
Top achievements
Rank 1
 answered on 18 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?