Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
848 views
how to remove links from header text below. When I set ExportOnlyData="true"  the link is removed but the header text span tags shows in the excel header. Is there a way to edit the header text before exporting to excel.


<telerik:RadGrid
            ID="RadGridReport"
            runat="server"
            CssClass="GridLines"
            ExportSettings-FileName="RadGridReportReport"
            AutoGenerateColumns="false"
            AllowPaging="false"
            AllowSorting="true"
            AllowFilteringByColumn="false"
            AllowMultiRowSelection="false"
            Enabled="true"
            Visible="false"
            OnGridExporting="RadGridReport_GridExporting"
            OnExcelExportCellFormatting="RadGridReport_ExcelExportCellFormatting">
            <ExportSettings OpenInNewWindow="true" />
            <MasterTableView AllowMultiColumnSorting="true"  AllowNaturalSort="false">
                <HeaderStyle HorizontalAlign="Center" Font-Bold="true" />
                <ItemStyle HorizontalAlign="Left" />
                <AlternatingItemStyle HorizontalAlign="Left" />
                <Columns>
                        <telerik:GridTemplateColumn UniqueName="Code" HeaderStyle-Width="15%">
                        <HeaderStyle CssClass="rgHeader hasNestedTable" />
                        <HeaderTemplate>
                            <table class="nestedHeaderTable" cellspacing="0" >
                                <tr style="height:35%;">
                                    <th id="StateCode" colspan="2" align="center"><b>State Code</b></th>
                                </tr>
                                <tr style="height:65%;">
                                    <th id="Code" width="20%" align="center">
                                    <asp:LinkButton  ID="btnCode" Font-Underline ="true" ForeColor ="Blue" Text="Code <span  class = 'hidden'> Select to sort by Code</span>" ToolTip="Sort by Code" CommandName='Sort'  CommandArgument='Code' runat="server" /></th>
                                    <th id="Type" width="80%" align="center">
               <asp:LinkButton  ID="btnType" Font-Underline ="true" ForeColor ="Blue" Text="Type <span  class = 'hidden'> Select to sort by Type</span>" ToolTip="Sort by Type" CommandName='Sort'  CommandArgument='Type' runat="server" /></th>
                                </tr>
                            </table>
                        </HeaderTemplate>
                        <ItemStyle CssClass="hasNestedTable" />
                        <ItemTemplate>
                            <table class="nestedItemTable" cellspacing="0" >
                                <tr>
                                    <td headers ="Code" width="20%" align="left" style="mso-number-format:\@;"><%# DataBinder.Eval(Container.DataItem, "Code")%></td>
                                    <td headers ="Type" width="80%" align="left"><%# DataBinder.Eval(Container.DataItem, "Type")%></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>

 </Columns>
            </MasterTableView>
        </telerik:RadGrid>

Maria Ilieva
Telerik team
 answered on 26 May 2016
4 answers
122 views

Its possible to do this? make some changes in data row values (description or price columns for example) and then change the row order (swap the first and second rows values with radcontextmenu for example) . Sorry for my bad english.....

 

Thanks

Josep Ramon
Top achievements
Rank 1
 answered on 26 May 2016
1 answer
526 views

I have a UI within a RadWindow which includes a RadDatePicker and a RadGrid.  When I click the date popup icon for this RadDatePicker, the calendar will not display.  However, this is the same control definition I use inside a regular page. 

 

Inside the RadGrid is an Edit Form template with a RadDatePicker with the same issue.

Viktor Tachev
Telerik team
 answered on 26 May 2016
1 answer
574 views

We are using dynamic datasources (tables) to populate a Telerik RadGrid. The user can pick a table name from a combobox dropdown. Once they've picked the table, the grid is generated with the appropriate columns.

We would have used the "Automatic Data Source operations", but we can't since the DataSourceID isn't being specified on the grid (we allowing the user to pick which table they want to view/edit).

From the Telerik documentation: The automatic data source operations only work when binding the grid to a declarative data source using the DataSourceID property of the grid. You must configure the data source so that it supports the automatic operations.

How can we implement CRUD operations on a Telerik RadGrid that has a dynamic datasource? We're able to view the data in the grid now, but we're unable to Edit it. I don't know how/where to make the code changes to allow the Edit function to be dynamic.

Viktor Tachev
Telerik team
 answered on 26 May 2016
1 answer
660 views

Hi,

I have a radbutton which when pressed updates some profile variables and then redirects to another page. What I am trying to achieve is to have a new tab open when the button is pressed instead of the same tab redirecting to another page.

The radbutton is located within a GridTemplateColumns in a Ragrid if that makes a difference:

<telerik:RadButton ID="SelectC" runat="server" Text="Select" CommandName="Select"                                  CommandArgument='<%#Eval("Rulcode_Child")+","+ Eval("UIO_ID")+","+ Eval("PERSON_CODE")%>' >
</telerik:RadButton>

protected void gridEnrolmentsCourse_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
    if (e.CommandName == "Select")
    {
        string[] commandArgs = e.CommandArgument.ToString().Split(new char[] { ',' });
        Profile.Rulcode = Convert.ToInt32(commandArgs[0]);
        Profile.UIOID = Convert.ToInt32(commandArgs[1]);
        Profile.Percode = Convert.ToInt32(commandArgs[2]);
 
        if (ViewState["PreviousPage"] != null)
        {
            //Open new tab here somehow
            Response.Redirect(ViewState["PreviousPage"].ToString());
        }
    }
}

Mohammed
Top achievements
Rank 1
 answered on 26 May 2016
1 answer
118 views

Hi dear Telerik

I have a RadAjaxPanel and 3 RadTextBox in page . 3 RadTextBox fire TextChange event but when ajax happend tab order not work and focus out ! and i must click into another textbox !

is any way for fix it ?

thanks .

Viktor Tachev
Telerik team
 answered on 26 May 2016
1 answer
147 views

Hi dear Telerik

I want to enable Compression in my website . How can i do it ?

I use IIS 8 .

Another question : How can i do for performance in my website when using Ajax UI telerik ?

Thanks .

Viktor Tachev
Telerik team
 answered on 26 May 2016
1 answer
169 views

Hi dear Telerik

I dont want to use RadAjaxManager or RadAjaxPanel in my wbsite ,  beacause managment code is very hard !

how can use 100% client side ajax call when using AJAX UI ? 

For example i wana to use Jquery validatin instead  validation control (asp.net)  !

Is any Sample online or sample website that do it ?

please help me

thanks

Eyup
Telerik team
 answered on 26 May 2016
1 answer
148 views

All,

I am having problems with a radpanelbar in IE 11.  It works perfectly in firefox but most of my clients are on IE so I am hoping there is a setting somewhere that will help.  The radpanel is being used to break up a large form and I want everything expanded initially which works well.  So the layout is as follows:

<telerik:RadPanelBar ID="RadPanelBar1" Width="100%" AllowCollapseAllItems="true" runat="server">
    <Items>
          <telerik:RadPanelItem Text="Section 1" Expanded="true">
                <ContentTemplate>
                </ContentTemplate>
          </telerik:RadPanelItem>
          <telerik:RadPanelItem Text="Section 2" Expanded="true">
                <ContentTemplate>
                </ContentTemplate>
          </telerik:RadPanelItem>
                           ....
     </Items>
</telerik:RadPanelBar>

When the page loads in IE and I try to click on Section 1, Section 2 (or any of the following areas), the page jumps to the top of the radpanel and nothing has collapsed.  If I then click on Section 1, it collapses without any problems.  If I go back and expand all the sections and scroll down through the form and once again try to collapse a section, it again jumps to the top.  It will not let me collapse any section unless the window is scrolled so that the first section is at the top of the page.  In firefox, everything works perfectly. If in IE, the page is viewable within the browser without scrolling (I've closed all the big sections and only left small ones open) , then I can collapse/expand ok.  Problem is whenever the top of the radpanel is not visible or when the entire panel is not visible, then it has to jump to the top before I can collapse anything.  This happens regardless of IE compatibility mode.

I also tried wrapping the whole radpanel within an updatepanel, same results in IE.

Thanks for your help

Ken

Nencho
Telerik team
 answered on 26 May 2016
3 answers
75 views
I may be wrong, but I am hoping someone can comment on this issue. When creating complex tables with both a header row and a header column using the RadEditor, I noticed something that "appears" to be wrong. Perhaps you can clarify?

Although I created a table correctly, (went to accessibility, checked 1 for both the header row and column & checked the associated cells with headers checkbox) ... this is the code that get's spit out.

<table style="width: 50%; " class="tableData">
<thead><tr>
<th style="" id="table_heading_0"> </th>
<th style="" id="table_heading_1">2011</th>
<th style="" id="table_heading_2">2012</th>
</tr></thead>
<tbody><tr>
<th style="" id="table_heading_3">Fire</th>
<td headers="table_heading_1">5</td>
<td class="" style="" headers="table_heading_2">5</td>
</tr><tr>
<th style="" id="table_heading_4">Police</th>
<td headers="table_heading_1">5</td>
<td headers="table_heading_2">5</td>
</tr></tbody></table>

  1. Each header is assigned a unique ID (Correct!)
  2. Each header is identified with a <th> class (Correct!)
  3. Each non-header cell associates with just ONE header (INCORRECT! ... I assume)

Since there are two headers associated with each non-header cell, shouldn't there should be two IDs referenced in the "headers" attribute? Would the correct coding for this look something like this (each header ID separated by a space or comma)?

<table style="width: 50%; " class="tableData">
<thead><tr>
<th style="" id="table_heading_0"> </th>
<th style="" id="table_heading_1">2011</th>
<th style="" id="table_heading_2">2012</th>
</tr></thead>
<tbody><tr>
<th style="" id="table_heading_3">Fire</th>
<td headers="table_heading_1,table_heading_3">5</td>
<td class="" style="" headers="table_heading_2,table_heading_3">5</td>
</tr><tr>
<th style="" id="table_heading_4">Police</th>
<td headers="table_heading_1,table_heading_4">5</td>
<td headers="table_heading_2,table_heading_4">5</td>
</tr></tbody></table>

Wondering if I am interpreting this incorrectly...

Stanimir
Telerik team
 answered on 26 May 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?