Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
177 views
I seem to be having an issue with the GridTemplateColumn.  In it, I have 2 headers and the top one spans over 3 columns.  On the bottom header, for each column I put in a linkbutton which allows the user to sort by that specific column.  Everything works fine and dandy except when I go to export the grid.  For some reason, it creates another row in excel below the bottom header, and merges the text of those linkbuttons into one cell on the new row.  If I changed those linkbuttons to just text, then it exports fine.

Here is the code for my grid:

<MasterTableView Width="947px" Name="gtvReport0"
    <Columns> 
        <t:GridTemplateColumn HeaderStyle-Width="300px" UniqueName="Payments" ShowSortIcon="false"
            <HeaderTemplate> 
                <table id="tablePmt1" style="width:100%;" class="myTable"
                    <tr> 
                        <td colspan="3" align="center">Payments</td> 
                    </tr> 
                    <tr> 
                        <td align="right"
                            <asp:LinkButton ID="lbSortByOneTimePmt" Text="One-Time" ToolTip="Click here to sort" CommandName='Sort' 
                                CommandArgument='Internet Payments' runat="server" Width="100%" /> 
                        </td> 
                        <td style="width:33%" align="right"
                            <asp:LinkButton ID="lbSortByRecurringPmt" Text="Recurring" ToolTip="Click here to sort" CommandName='Sort' 
                                CommandArgument='Recurring Payments' runat="server" Width="100%" /> 
                        </td> 
                        <td style="width:33%" align="right"
                            <asp:LinkButton ID="lbSortByTotalPmt" Text="Total" ToolTip="Click here to sort" CommandName='Sort' 
                                CommandArgument='Total Payments' runat="server" Width="100%" /> 
                        </td> 
                    </tr> 
                </table> 
            </HeaderTemplate> 
            <ItemTemplate> 
                <table id="tablePmt2" style="width:100%;" class="myTable"
                    <tr> 
                        <td align="right"><%#Eval("Internet Payments") %></td
                        <td style="width:33%;" align="right"><%#Eval("Recurring Payments")%></td
                        <td style="width:33%" align="right"><%#Eval("Total Payments")%></td
                    </tr> 
                </table> 
            </ItemTemplate> 
        </t:GridTemplateColumn> 
    </Columns> 
</MasterTableView>     

Any help would be appreciated.

Thanks in advance!
Zach
Zach
Top achievements
Rank 1
 answered on 16 Nov 2009
3 answers
99 views
I came across a strange grid bug, which when i set UseStaticHeaders = "true" makes the grid narrow (381px wide) and does not use set column with in firefox. All other browsers (IE, Chrome/Safari) render the grid correctly.
Tried recreating the page from scratch, but the issue remains. This is happening only with a single grid.
Does anyone came across this kind of issue and know how to fix that issue?
Pavlina
Telerik team
 answered on 16 Nov 2009
12 answers
244 views
I have a nested radgrid setup where the detail table column name is retrieved from one of the parent's hidden columns. I set this in the detail databind below. When I sort another child grid on any column, all the custom headers on the other grids revert back to default. The custom column in the sorting grid retains it's header text.

 Protected Sub radGridApplicantReport_DetailTableDataBind1(ByVal source As ObjectByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles radGridApplicantReport.DetailTableDataBind 
    Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem) 
    If (e.DetailTableView.Name = "ApplicantList"Then 
         
        'XfactorDisplay 
        If (dataItem.Item("XfactorDisplayFlag").Text = "False"Then 
            e.DetailTableView.Columns(11).Visible = False 
        Else 
            e.DetailTableView.Columns(11).Visible = True 
            'If we are showing, change the header 
            If Not (dataItem.Item("XfactorDisplayText").Text = ""Then 
                e.DetailTableView.Columns(11).HeaderText = dataItem.Item("XfactorDisplayText").Text 
            End If 
        End If 
        If (dataItem.Item("ShowRatingFlag").Text = "False"Then 
            e.DetailTableView.Columns(12).Visible = False 
        Else 
            e.DetailTableView.Columns(12).Visible = True 
        End If 
    End If 
End Sub 

Is there another place I should set the header text so it will persist?
Yavor
Telerik team
 answered on 16 Nov 2009
1 answer
120 views
Hi guys,

Ok, so essentially, I have a grid where the first column is a valuation type.  There should only be one of each valuation type in the whole grid, although there does not necessarily need to be one of each.

ie: I have four types, there doesn't need to be four rows, but there must not be two rows with the same valuation type.

Using the code in Customize/Configure GridDropDownColumn when a row is being inserted, I rebind the editor to a new query which excludes any previously used types.  This works perfectly.  The problem is that when the row is inserted, the value of the type (the ID of the lookup value) is null.

I have traced this through at least some of the events.  I use the grid bound to a LinqDataSource (quick prototyping).  If I debug the InsertCommand event from the grid, I can check the value of the combobox and it is correct.  However by the time it reaches the linq classes and datasource, the value is null.

Does anyone have any ideas?  I know you might need more code, or detail, but I didn't want to post a whole bunch of code here if it was really a waste of time because I'm being so obviously stupid somewhere else.

Thanks,
Adam.
Prangadj
Top achievements
Rank 1
 answered on 16 Nov 2009
2 answers
105 views
Hi,

I cannot access any RadControl's inside my user control or aspx pages. Because I used my own namespace. I don't know how to access rad control inside my namespace. So I need help. When I remove my namespace it work. But, I need to use my namespace. So, could any one help me please???

example:

using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Telerik.Web.UI;

namespace MySite
{
    public partial class UserControl_userContactDetails : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
              RadTextbox1.text="Welcome to My new site!"; // getting error
            }
        }
       
    }
}
Yana
Telerik team
 answered on 16 Nov 2009
2 answers
135 views
I am using a radGrid to display Users data. The radGrid has a GridTemplateColumn which contains single RadMenu control. The radMenu items are used to open modal RadWindow for item editing (and many other user's tasks).

1. When selecting a grid item the RadMenu skin is changed according to grid's ItemSelected style - Any idea how to keep the orginal skin seeting of the radMenu control when selecting grid item?
2. when openning the radWindow to display/edit user's data the page is shadowed (preventing the user to access grid control), however the radMenu is still visible/accessable to end-user (while the radWindow is open) - any idea how to overcome this issue...

Avidan
Avidan
Top achievements
Rank 1
 answered on 16 Nov 2009
2 answers
303 views
Hi,

My pages are loading very slowly.
My pages are containing textboxes, RadCombo, RadGrid and etc.
When I run this page using VisualStudio or in IIS, it will take more time to load.
This performance issue is only for pages with Telerik controls.

Thanks,
Sabarish.




sabarishbabu
Top achievements
Rank 1
 answered on 16 Nov 2009
3 answers
167 views
I am using a RadGrid with Edit Mode = Popup and a user control edit form.  The edit form contains a RadNumericTextBox.  On postback, the value of the RadNumericTextBox is empty.  Why??  If I replace it with a normal <asp:TextBox> then everything works fine, but the RadNumericTextBox doesn't seem to realize that I entered anything in it.  Text and Value properties are both empty.  Is this a known issue and if so, what's the workaround?
Aleks A
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
74 views

Hi,

I am implementing hierarchy Data binding using Rad grid?but,here the datasource is "Collections".So,for giving data source to child Gird table I am using "DetailTableDataBind" event of the parent grid.But for child Grid i need to bind the values in code page.In grid for child tables there is no "Item Data bound event". How can i bind the values to controls in code file ?
Can u check the attachments for design and Code files ?

Shinu
Top achievements
Rank 2
 answered on 16 Nov 2009
1 answer
103 views

hi,

I'm using Latest RadControls for ASP.NET AJAX Q2 2009 SP1
i have set z-Index (7001) in RadTooltip inside RadFileexplorer control  But RadFileexplorer  Browse image(radwindow) get display behind the RadTooltip ..radwindow want to display in front of RadFileexplorer..how to solve the issues..need your clarification.

Thanks & regards
Vivekanandan.R
Fiko
Telerik team
 answered on 16 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?