Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
274 views
I am trying to use EditItemTemplate in RadGrid but I am unable to do it as the page comes back with just the 'RadTextBox' instead of full grid. Attached is the image of the result I get while using EditItemTemplate. If I remove <EditItemTemplate> bit everything works fine. I just want to use my own custom controls in RadGrid while editing / inserting items. Following is the code I am using. Please help me with this issue. Can't work out this issue as this should be simple enough.

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"

AllowAutomaticInserts="True" PageSize="10" Skin="Default" AllowAutomaticUpdates="True" AllowPaging="True"

AutoGenerateColumns="False" Width="750px" DataSourceID="SqlDataSource_nonCot">

<MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="ItemID"

DataSourceID="SqlDataSource_nonCot" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">

<BatchEditingSettings EditType="Cell" />

<SortExpressions>

<telerik:GridSortExpression FieldName="ItemID" SortOrder="Descending" />

</SortExpressions>

<Columns>

<telerik:GridBoundColumn DataField="ItemID" HeaderStyle-Width="210px" HeaderText="ItemID" SortExpression="ItemID"

UniqueName="ItemID">

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="ItemTypeID" HeaderStyle-Width="180px" UniqueName="ItemTypeID" DataField="ItemTypeID">

<ItemTemplate>

<%# Eval("ItemTypeID") %>

</ItemTemplate>

<EditItemTemplate>

<telerik:RadTextBox ID="txt_itemID" runat="server" />

</EditItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>




Princy
Top achievements
Rank 2
 answered on 20 Dec 2013
3 answers
237 views
Hi All,

Can anyone please tell me how to auto-size the drop-down of a combobox in code-behind?  I have found the following link:
http://www.telerik.com/help/aspnet-ajax/combobox-auto-width.html

Ideally, both height and width would auto-adjust with the height maxing out at the bottom of the screen.  Is this at all possible?

Thanks,
Mark
Shinu
Top achievements
Rank 2
 answered on 20 Dec 2013
2 answers
107 views
I think I'm being stupid on this one but I need to ask.

I have a UserControl with a RadDateTimePicker and the SelectedDateChanged event set to get handled in server codebehind. When the date or time are changed by the user, the event is fired, but neither the 'sender' nor the arguments object have all of the data.

The sender is the control but the SelectedDate on the sender is null. Sometimes the sender FocusedDate has the new value. In the SelectedDateChangedEventArgs value, the OldDate and NewDate are null.

The events being fired are in this order on PostBack:
Page_Load in the parent container, where I invoke setup methods in all user controls to set their initial values.
Page_Load for all user controls.
SelectedDateChanged
Page_LoadComplete for parent
Page_LoadComplete for each UC.
Then in Page_PreRender I get the control data and save it to SessionState so that I can refresh it the next time in.

I felt a need to go through that because controls initially weren't refreshing after postback.

I'm wondering if the sender or arguments are getting trashed prior to the SelectedDateChanged event because I load from state before that event fires. But that doesn't make sense to me.

Any ideas?
Thank you VERY much.
TonyG
Top achievements
Rank 1
 answered on 19 Dec 2013
14 answers
616 views
Using the suggestions on this forum, I've created a radwindow which refreshes the parent page via AJAX postback.

On the parent page, from code behind, I rebind a control that was updated in the radwindow like this:

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
    {   
        FormView1.DataBind();
    }

FormView1 is an an update panel and it works perfectly the first time.  However, after I reopen the radwindow before a full postback, it does not call the AJAX function again.  I tried setting the radwindow with DestroyOnClose using both true and false and it still doesn't work.

Any suggestions?




Sam
Top achievements
Rank 1
 answered on 19 Dec 2013
2 answers
91 views
How do I install the Telerik Reporting Controls? I downloaded the Telerik Reporting Control Panel and installed the Report components but I don't see them In the toolbox.
Raymond
Top achievements
Rank 1
 answered on 19 Dec 2013
5 answers
128 views
Hi All,

I have an entirely code-behind C# Radgrid solution, living in SharePoint.  I have implemented a detail table within my mastertable and the hierarchy (parent-child) functionality of the grid works well.  However, this is only when I use RadGrid.DataSource = SQLDataSource.  Doing this breaks column sorting though. 

Changing my code to RadGrid.DataSourceID = SQLDataSource.ID allows me to sort the columns but breaks the hierarchy.  Does anyone have any suggestions on how to fix this?

Thanks,
Mark
Wendy Prince
Top achievements
Rank 1
 answered on 19 Dec 2013
1 answer
176 views
Hello,
Could I use any class in Telerik to export Html to Pdf?

I get Html content and I'd like to convert to Pdf.
Is it possible do it with any Telerik class "no UI control"?

 I've used ASP.NET AJAX on my project.

Thanks for answer.
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 19 Dec 2013
1 answer
86 views
Hi
How to get the export to excel having xlsx extension?
Shinu
Top achievements
Rank 2
 answered on 19 Dec 2013
7 answers
229 views
I have a radgrid on an aspx page and have set up an edit form template to edit one of the columns.  The problem is when I click on the button to edit the column, instead of getting only the tables in the edit form I get those tables plus the remaining radgrid data under it.  I have tried it as a modal popup, inline and all other possibilities with the same results each time.  I've attached a couple of jpegs to show what I mean.  Any help is appreciated.
John
Top achievements
Rank 1
 answered on 19 Dec 2013
1 answer
133 views
hi 
i hav a gridboundcolumn with price as datafield. Dataformatstring is currency. This is all ok.but when in edit mode the currency symbol is not maintained.how to have the same format in edit mode?
Princy
Top achievements
Rank 2
 answered on 19 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?