Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
843 views
Hi,
     I am having a grid in which the cell value is very long string so i used Tooltip to display the full string, only 15 characters are displayed in the grid by using substring function.. On Exporting the GRID to EXcel i Got only the 15 characters data as the cell value instead i need the Tooltip value (i.e) full string value in the EXCEL. Please help me with a code.. Thanx in advance..
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Apr 2013
1 answer
282 views

How to access the column name in server side  from the following grid when the user clicks the link button . 


 <telerik:RadGrid ID="rdGrdBudgetStatusSummary" runat="server" AutoGenerateColumns="false"
                    EnableLinqExpressions="false" Skin="Office2007" CssClass="radgrid" GridLines="None"
                    AllowSorting="true" OnSortCommand="GridRebind" PageSize="15" ShowFooter="true"
                    OnExcelMLExportRowCreated="RadGrid1_ExcelMLExportRowCreated" OnItemCommand="RadGrid1_ItemCommand"
                    OnItemCreated="RadGrid1_ItemCreated" AllowFilteringByColumn="true">
                    <GroupingSettings CaseSensitive="false" />
                    <MasterTableView AllowPaging="true" Width="100%" TableLayout="Fixed" DataKeyNames="rspusr,Approved,Submitted">
                        <PagerStyle Mode="NextPrev" AlwaysVisible="true" HorizontalAlign="Left" />
                        <Columns>
                            <telerik:GridBoundColumn HeaderText="Responsible User" DataField="ResponsibleUser"
                                UniqueName="ResponsibleUser" FooterText="Total " Visible="true">
                                <HeaderStyle Width="130px" HorizontalAlign="Center" />
                                <ItemStyle Width="130px" />
                                <FooterStyle HorizontalAlign="right" />
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn SortExpression="Approved" Aggregate="Sum" HeaderText="Approved"
                                UniqueName="Approved" DataField="Approved" FooterAggregateFormatString="{0}"
                                ReadOnly="true" DataType="System.String">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkBtnApproved" CommandName="ReDirect" runat="server" Text='<%#Eval("Approved")%>'>                                                                           
                                    </asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle Width="100px" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                                <FooterStyle HorizontalAlign="right" />
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn SortExpression="Submitted" Aggregate="Sum" HeaderText="Submitted"
                                DataField="Submitted" UniqueName="Submitted" Visible="true" FooterAggregateFormatString="{0}">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkBtnSubmitted" runat="server" Text='<%#Eval("Submitted")%>'
                                        CommandName="ReDirect">                                      
                                    </asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle Width="130px" HorizontalAlign="Center" />
                                <ItemStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                                <FooterStyle HorizontalAlign="right" />
                            </telerik:GridTemplateColumn>
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Apr 2013
1 answer
249 views
We're using RadEditor and the hyperlink manager for our application, version v4.0.30319

In chrome and safari, when highlighting text, then clicking on the hyperlink manager and creating a hyperlink, the hyperlink is not created. If no text is selected and the hyperlink manager is selected first, the hyperlink IS inserted. 

This behavior only occurs in chrome and safari (webkit?)  and not in firefox or IE, which work perfectly fine.

Here is the relevant code.  I am not able to replicate this error on the demos, but I was wondering if this is an issue that has been addressed in a later version or if there is something I can do to fix it.

Thanks

<asp:Panel ID="pBlog" runat="server" >
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" >
                <Windows>
                    <telerik:RadWindow runat="server" ID="Editor" Width="700px" Height="550px" AutoSize="false"  VisibleStatusbar="false"  />
                </Windows>
            </telerik:RadWindowManager>
            <telerik:RadEditor runat="server" ID="RadEditor1" Width="100%" AutoResizeHeight="false" AllowScripts="false" EnableResize="false" Height="500px"   > 
                <ContextMenus>
                    <telerik:EditorContextMenu >
                        <telerik:EditorTool name="Cut"/>
                        <telerik:EditorTool name="Copy"/>
                        <telerik:EditorTool name="Paste"/>
                        <telerik:EditorTool Name="PasteFromWord" />
                        <telerik:EditorTool Name="PastePlainText" />
                        <telerik:EditorTool Name="PasteAsHtml" />
                    </telerik:EditorContextMenu>
                </ContextMenus>
                <Tools>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool name="Print" shortcut="CTRL+P" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Cut" shortcut="CTRL+X" />
                        <telerik:EditorTool Name="Copy" shortcut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" shortcut="CTRL+V" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" shortcut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" shortcut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                                         
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="Bold" shortcut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" shortcut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" shortcut="CTRL+U" />
                        <telerik:EditorTool Name="Strikethrough"/>
                        <telerik:EditorTool Name="Superscript"/>
                        <telerik:EditorTool Name="Subscript"/>
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="CustomDialog" Text="Insert Image" />
                        <telerik:EditorTool Name="LinkManager" shortcut="CTRL+K" />
                            <telerik:EditorTool Name="EmbedVideo" Text="Embed YouTube Video" />
                    </telerik:EditorToolGroup>
                                         
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="FontName" Text="Font"/>
                        <telerik:EditorTool Name="RealFontSize" Text="Size"/>
                    </telerik:EditorToolGroup>
                                         
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="ForeColor" />
                        <telerik:EditorTool Name="BackColor" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool name="FormatStripper"/>
                    </telerik:EditorToolGroup>
                </Tools>
            </telerik:RadEditor>
 
</asp:Panel>


EDIT: I was able to duplicate the error with this much simpler code.

<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<html>
<head><title></title></head>
<body>
<form runat="server">
<asp:ScriptManager id="scriptman" runat="server" />
 
            <telerik:RadEditor runat="server" ID="RadEditor1" Width="100%" AutoResizeHeight="false" AllowScripts="false" EnableResize="false" Height="500px"   > 
                   <Tools>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="LinkManager" shortcut="CTRL+K" />
                    </telerik:EditorToolGroup>
                                         
                </Tools>
            </telerik:RadEditor>
            </form>
</body>
</html>

Jake
Top achievements
Rank 1
 answered on 01 Apr 2013
3 answers
291 views
Hi.  I've got a RadGrid with multiple pages.  The loading panel shows the first time I perform an action (sorting, searching, changing page, etc), but does not show on subsequent page changes or searches.    Any suggestions would be appreciated.  Thanks!

<telerik:RadAjaxManager EnableAJAX="true" ID="RadAjaxManagerOnlineCE" runat="server">  
    <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="RadGridCE">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE"  LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnSearchCECourses">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnViewAllCECourses">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                    <telerik:AjaxUpdatedControl ControlID="pSearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <telerik:AjaxSetting AjaxControlID="btnSort">  
                <UpdatedControls>  
                    <telerik:AjaxUpdatedControl ControlID="RadGridCE" LoadingPanelID="RadAjaxLoadingPanelCESearch"   />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
    </AjaxSettings>
</telerik:RadAjaxManager>
  
  
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelCESearch" runat="server" Height="75px" Width="75px" Transparency="50" InitialDelayTime="0" >
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'  style="border: 0px;" />
 </telerik:RadAjaxLoadingPanel>
Daniel Domer
Top achievements
Rank 1
 answered on 01 Apr 2013
3 answers
116 views
I am using RadSpell v2012.2.724.35 (without RadEditor) to spell check a textbox in a custom SharePoint 2010 Web Part. I followed various threads to properly register the handlers in the web.config, but when I click the link button to initiate the spell check, I get the javascript alert "web.config registration missing". However, after clicking OK to dismiss the alert, the spell check dialog opens successfully and I am able to complete the spell check with no problems. It seems the logic that validates the presence of the handler registration is wrong in this case, as the spell control works perfectly.

What do I need to do to get rid of this error message?
Rumen
Telerik team
 answered on 01 Apr 2013
3 answers
259 views

Hi,

 

We are new to telerik controls.

We are using visual studio 2012, .net framwork 4.5 C# for our asp.net web applications. Currently we are using infragistics. Management decided to try another suite. So, Recently, downloaded Telerik controls to test. We use grid extensively in all our applications.

This is what I need:

 

  1. Add RadGrid at designtime and bind to grid. We know exactly what fields from database. An object is used to bind to grid.
  2. Populate at runtime. (I need to know which events fire and when and order of events). Right now we are doing this in page_load event and not post back.
  3. When data is added like (datbind happens), I need to change the URL of hyperlinks (that are added at design time using template columns) of that row based on values in that row’s other fields. Infragistics has ‘RowInitialize’ event. So, we do lot of work in that event.
  4. We hide some columns and hide and show some other columns based on certain criteria.

I appreciate your response
Katta

Prathibarani
Top achievements
Rank 1
 answered on 01 Apr 2013
2 answers
777 views
Hi,

Using Rad controls for asp.net ajax 2013 Q1 with visual studio 2012 ultimate c#.
We have some global code that is used by all the grids in all the pages. In itemDataBound event of RadGrid, I need to get row data and pass it on to global code. Currently, with the grid we are using:
  
    customClass rowData = (customClass) e.data;

Is it possible to cast itemdata to custom object. If yes, please let me know how and example link.

Thanks,
Prathiba.

Prathibarani
Top achievements
Rank 1
 answered on 01 Apr 2013
1 answer
97 views
It looks like RadGridWebPart doesn't support web part connections. Is this so? If it's not supported, is it a (near) future enhancement?

I'd like the users to click a row in one sharepoint list and have that filter another web part's list contents.
Tsvetoslav
Telerik team
 answered on 01 Apr 2013
1 answer
150 views
Hi

I use 'RadWindowManager' and 'radopen' javadcript function to open and brows extra pages.
How can I add [sandbox="allow-forms allow-scripts"] to the iframe of the radwindow?

Thank you very much
Marin Bratanov
Telerik team
 answered on 01 Apr 2013
1 answer
93 views
I currently have a RadGrid with two detail tables and few other columns on the grid. The first column on the Grid has an ExpandColumn to expand the detail tables by default. This comes default because there is a detail table. The second column on the grid is a GridClientSelectColumn. I want to have two ExpandColumns at the beginning and then the GridClientSelectColumn. When I click on the first ExpandColumn, the first detail table needs to be expanded. When I click on the second ExpandColumn, the second detail table needs to be expanded. I tried to add two "telerik:GridExpandColumn" before the checkbox but they are being added after the checkbox. Then I tried to hide the default checkbox as I don't those but then the second ExpandColumn moves to the first column.

Can anyone provide code that displays it in the correct order and displays the appropriate detail table while clicking on an ExpandColumn?

Eyup
Telerik team
 answered on 01 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?