Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
114 views
Hello Telerik,

I am currently working on integration of the Editor in our CMS.
Imagine the following configuration:

7 AJAX tabpanels (languages) with 4 Editor instances each. For speed sake I want to load the Editors OnClientClick.
What is the way to go to load the Editors on demand?

Are there any code snippets / examples for this?

Thanks in advance for your answer,

Marc
Rumen
Telerik team
 answered on 18 Jun 2009
0 answers
81 views
Hi

Actualy,  we need export option without radgrid,
we want to get export data without using radgrid.
is it possible..?

if any one know about , please reply me.
ravi
Top achievements
Rank 1
 asked on 18 Jun 2009
4 answers
259 views

Hi

We're creating a grid dynamically and are running into some issues.  Both the columns and datatypes are defined in the database. 
The grid consists of 1 GridBoundColumn and multiple GridTemplateColumns hence the radgrid is defined entirely in the code behind (in the Page_Init event).  Additionally, the rows of the datasource (based on a DataTable) we're using is built up dynamically in the .NET code as rows can have any number of columns.  This is populated in the RadGrid_NeedDataSource event.

We are using ASP.NET_AJAX_2009_1_402 and are creating the templates with classes implementing the IBindableTemplate interface.

On viewing the page the first time, the data displays in the grid in the correct number of columns (with correct column headings).  So far so good.

However, the problems we're facing are:

1. Even though AllowSorting is set to True, the GridTemplateColumn headers are not clickable  (the GridBoundColumn sorts fine).  How do we get the GridTemplateColumns to be sortable as well?

2. One of the static controls on the page is a check box control that controls the visibility of certain columns in the grid.  The user can choose to see those columns at run time.  The only way I could get this to work is to set the column.Visible property (to true or false depending on the state of the checkbox) in the Page_Load() event and call grid.Rebind().  This results in a rebind for every post back.  Is this the correct way to do this?

3. Clicking the 'Insert a new entry' link brings up the Insert form fine (with default values as programmed) but on clicking 'Insert', it crashes with an 'unable to cast to null' error.  The specific control we're using for our testing is the RadDatePicker .. the crash is caused when attempting a cast a Null to a RadDatePicker in the DataBind event of the DateTemplate (see code below). The

 

insertionObject.GetPropertyValue(columnName) I'm attempting to use is null - which is confirmed by the Utils.Log debugging that I'm doing.

 

    public void BindData(object sender, EventArgs e)  
    {  
        RadDatePicker radDatePicker = (RadDatePicker)sender;  
        if (radDatePicker.NamingContainer is GridEditFormInsertItem)  
        {  
            // Insert mode  
            GridEditFormInsertItem container = (GridEditFormInsertItem)radDatePicker.NamingContainer;  
 
            GridInsertionObject insertionObject = (GridInsertionObject)container.DataItem;  
            Utils.Log("Date BindData=" + columnName + "Propval=" + insertionObject.GetPropertyValue(columnName).ToString());  
            radDatePicker.SelectedDate = ((RadDatePicker)insertionObject.GetPropertyValue(columnName)).SelectedDate;              
        }  
        else  
        {  
            // Edit mode  
            GridEditFormItem container = (GridEditFormItem)radDatePicker.NamingContainer;  
            radDatePicker.SelectedDate =  Utils.StringToDateTime(((DataRowView)container.DataItem)[columnName].ToString());  
        }  
    } 

4. Clicking the Edit link merely does a page refresh and does not display the Edit form.

5. When exporting the data to Excel or PDF, all the column headings appear fine.  However, only the data in the GridBoundColumn appears (i.e. data for the GridTemplateColumns is blank).

6. In your example on http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html, your templates implement ITemplate (and not IBindableTemplate).  I could not find a way to use the ITemplate as in your example.  I take it I need IBindableTemplate for this?

 

Do you have a working example of a grid that is dynamically created using templates like the problem we're facing?  That would be a great reference.

Thanks

Sebastian
Telerik team
 answered on 18 Jun 2009
1 answer
272 views
I can't seem to get these two client-side events to fire when the event comes from the proxy within a user control.  I've defined the javascript handlers on the RadAjaxManager to take care of the events.  The button within the user control gets ajaxified by its container, a RadMultiPage, which has a RadAjaxManagerProxy within it.  However, I'm trying to disable Ajax on this button so that a full postback can occur and a file can be output for consumption.  I'm currently using RadControls for ASP.NET AJAX Q1 2009 (build 527).

function OnRequestStart(sender, args) { alert("Request start"); }
function OnResponseEnd(sender, args) { alert("Response complete."); }

Right now I'm just using simple alert messages, but they never seem to happen.  My work-around solution was to use, but is this something that Telerik plans on addressing?:
RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(this.MyButton1);


Iana Tsolova
Telerik team
 answered on 18 Jun 2009
1 answer
93 views
Is there a property, similar to the RadTextbox property of FocusedStyle?

I'm looking to have the same behavior as my textboxes when they have the focus: FocusedStyle-BorderColor="#deb360"
Princy
Top achievements
Rank 2
 answered on 18 Jun 2009
3 answers
289 views
 


Hi, I need to have different "EditFormHeaderTextFormat" during grid form Insert and Edit popup.
Can i know how to do that ?

-ks

    <telerik:GridTemplateColumn DataField="ID" HeaderText="ID" UniqueName="ID" Visible="false" Display="false" EditFormHeaderTextFormat="">  
    <ItemTemplate> 
        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>' /> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <asp:HiddenField runat="server" ID="ID_Hidden" Value='<%# Eval("ID") %>' /> 
        <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>' /> 
    </EditItemTemplate> 
    </telerik:GridTemplateColumn> 
ks
Top achievements
Rank 1
 answered on 18 Jun 2009
1 answer
117 views

I'd like mod, say, the first toolbar to display as block (to solely appear on top line) and/or float the toolbar to the right.
via css, toolsfile, declarative, or codebehind?

Not finding the simple means to do this. 

Thanks!
Rumen
Telerik team
 answered on 18 Jun 2009
1 answer
136 views
Hi

How do you control how long a tooltip is displayed. Mine seem to vanish almost immediately

thanks
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2009
12 answers
264 views
Hi,

I have got an 'Invalid argument' javascript error when resizing the grid columns. Getting into javascript debugging, the error is pointed to the following line:

    this.ColGroup.Cols[i].width=this.HeaderRow.cells[i].scrollWidth+"px";

I believe the error is caused by making a previously hidden column visible by a command like:

    RadGrid.Columns.FindByUniqueName("Name").Display = true;

Could you please find out how to fix or get around this problem? Otherwise I will have to turn off the resizing in this mode.

Thanks.

Nikolay Rusev
Telerik team
 answered on 18 Jun 2009
3 answers
208 views

Hi,

I want to open a Rad confirmation popup window resulting "Yes" or "No" from the server side. .
From the server side, on the button click i would like to open the rad confirmation popup window. Depending on the result (Yes/No) certain operations i have to implement. But this have to done from the server side. so i need to open the popup from the server sdie

Can any one help me to solve this problem.

Thanks & Regards,
Sushanth Mathew  
Fiko
Telerik team
 answered on 18 Jun 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?