Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
291 views
Hi,
    I have a Rad Grid with enableviewstate=false. It calls all the methods, so it does get data at the backend. I debugged and check all the methods. As there is no view state so i have to generate the Grid and then fill it with new data on pageindexchnaged. It does call all the methods in proper way.
   Issue is that it does not show anything, not even header or page, does even say that it does not have data like it usually do first time. I am working inside MS CRM 4 IFrame. SO, no viewstate on the whole app. It may be issue due to ajax ?
  So, what could go wrong ?

Regards,

Osman
Osman Saeed
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
145 views
I'm using RAD sheduler in Time line view. My Appointment subjects are little bit long and I need to expand the subject when it gets overflow within cell.
Following image shows the existing 1 and what I needed.

http://img690.imageshack.us/img690/1329/imageim.png


How can I auto-expand these cells.
Peter
Telerik team
 answered on 16 Nov 2009
1 answer
113 views
I am using a radgrid to display some data, and I am trying to figure out which method would be better to use.
Here are my preferences:
I would like to use a webservice to retrieve the data.
I would like to be able to use the server side OnItemDataBound event to process the data, changing date formats, enabling an image column, etc.
I would like to use some form of an AJAX request for the paging and sorting without the postback flashing.

Can I accomplish this with the radgrid?
Sebastian
Telerik team
 answered on 16 Nov 2009
1 answer
91 views
Hi,

I am using a 2- level hierarchical

 

grid.

 

Requirement is "to open different radwindows with different unq_id on doubleclick of a row in Master table and detail table of a hierarchical grid."
I am using  Javascript for this purpose.
I am able to get master grid rowindex and its unq-id (unique cloumn value) but I am not able to do this for DetailsView.
I need this unq-id because using this unq_d I have to show recorsd in the radwindow to view.

Can you please help me......I am using old  " Telerik.Webcontrols namesapce."

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

function RowDblClick(rowIndex)

 

{

 

var grid = window["<%= RadGrid1.ClientID %>"];

 

 

 

var row = grid.MasterTableView.Rows[rowIndex];   // Clicked row

 

 

 

var value = row.KeyValues['UNQ_ID'];

 

window.radopen(

 

"Segment1.aspx?UNQ_ID=" + value , "UserListDialog");

 

 

}

 

 

 

 

 

 

<radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Blue">

 

 

 

<Windows>

 

 

 

<radW:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="400px"

 

 

 

Width="300px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" />

 

 

 

</Windows>

 

 

 

</radW:RadWindowManager>

 

 

 

 

Thanks.
Priyanka

 

 

 

 

 

 

Tsvetoslav
Telerik team
 answered on 16 Nov 2009
2 answers
186 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
108 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
254 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 Object, ByVal 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
127 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
115 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
148 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?