Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
201 views
Hi,

I have a few questions:
Environment: RadControls for ASP.net 2009 Q2.

1. On the commanditems strip, I would like to show some custom commands, like an edit button when clicked, would put certain cells in certain rows in edit mode based on some business rules.  I would also like to put an "Update" button on this strip which will fire a custom method on the server to update the edited rows in the grid. These buttons will also be hidden under certain conditions. How would I do that?

2. I don't see any property either at desgin time or in code to add the button "Export to Excel" to this commanditem strip.  The online examples on your site have some "ShowExportToExcelButton" property set.  But I don't see it at either design time or at runtime.  How do I do this?

3. I would also like to set some of the cells in certain rows, only in certain columns, non-editable and some others editable (when Edit button clicked).  What is the appropriate event handler to put this code in?

Thanks

Babu.
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2009
1 answer
167 views
Hello,

I tried to adopt what was done in your MVC forum sample project for the RadPanelBar.  What I want to do is add a series of RadPanelItem's that contain a RadListBox control as its interface.  The RadListBox will be data bound.  But I'm getting an error about adding controls after prerender.  Is there something I can do to remedy that, or do the RadPanelItem/RadListBox have to be hard coded in?

My approach was:

<%
if (Model.Groups != null)
{
    foreach (var group in Model.Groups)
    {
        RadListBox box = new RadListBox();
        box.DataSource = group.Items;
        box.DataTextField = "Name";
        box.DataValueField = "Key";

        box.DataBind();

        RadPanelItem item = new RadPanelItem(group.Name);
        item.Controls.Add(box);

        rpbContacts.Items.Add(item);
    }
}
%>

<tel:RadPanelBar ID="rpbContacts" runat="server" />

Thanks.
Georgi Krustev
Telerik team
 answered on 04 Nov 2009
17 answers
1.3K+ views
Hi,

Couple of issues with 3.5 dll :
1. If we use the Telerik.Web.Ui.dll for framework 2.0 i.e. Bin/Telerik.Web.UI.dll, we are able to cast the e.Item.DataItem as DataRowView
(in ItemDataBound event handler) and access the values from the corresponding row in the datasource. But when we use the dll for 3.5 framework i.e. bin35/Telerik.Web.UI.dll , it doesn't allow the GridDataItem's  DataItem property to be cast as DataRowView. It shows it as a Dynamic Class. The interesting thing is it allows the GroupHeaderItems to be cast as DataRowView.
Can you please let me know , how to access the corresponding row Data values from the DataSource using dll for 3.5 framework.


2. Also, I have a GridCalculatedColumn which has a 'ISNULL' function in its expression and works fine with 2.0 dll. This same code gives error when it references the 3.5 dll.
e.g. 

 

<telerik:GridCalculatedColumn HeaderText="Name" UniqueName="df_nme" SortExpression="df_frst_nme"

 

 

DataType="System.String" DataFields="df_frst_nme, df_mid_nme, df_last_nme"

 

 

Expression='{2} + ",&nbsp;" + ISNULL({0},"") + "&nbsp;" + ISNULL({1},"")'>

 

 

</telerik:GridCalculatedColumn>

 



Thanks,

Georgi Krustev
Telerik team
 answered on 04 Nov 2009
1 answer
89 views
Hi,
Please could you tell me what RadGrids are inherited from (i.e. are they inherited from the .net gridview control) or something else. The reason for the question is because we want to be able to extend the grid to allow multi-row (spreadsheet-like) editing. Is this type of editing already available and I just haven't seen it yet?

Regards

Robert
Princy
Top achievements
Rank 2
 answered on 04 Nov 2009
7 answers
160 views
Hello,

When insert "10/11/2009" in raddateinput control, this switch to 
"10/10/2009"
  English Culture. (version 2.1.4.0)

Any idea how to solve? 

Thanks in advance.

rene
Daniel
Telerik team
 answered on 04 Nov 2009
1 answer
118 views
Hi All,

I am using RadControl Q22009,

I am using rad editor.

When i export the radeditor  content its formatting get lost.
I have align some content to right side of radeditor.
But while exporting to pdf it show the data in left side.
How can i fix the formatting issue.
How can the exported pdf should show the same format as type in radeditor?

I have attached the screen shot for reference.

Thanks,


Rumen
Telerik team
 answered on 04 Nov 2009
1 answer
104 views
I have set the radgrid to use custom skin how I am unable to set the style so it looks similar to the attached image. Could some please show me how to do this. I have copy the default template and rename it to mycustomskin template.
Dimo
Telerik team
 answered on 04 Nov 2009
4 answers
188 views
Hi,

How to display the Date in the header of Scheduler in theTime Line view? (Date to be displayed as in the Day view of the scheduler)Right now I am getting only the time period and not the date.

Thanks

Sabarish

sabarishbabu
Top achievements
Rank 1
 answered on 04 Nov 2009
2 answers
388 views
Good day,

Is it possible to put RadComboBox inside Command Item Template of RadGrid. If possible, can you show me how I can bind it to datasource kind of string array

Thank you for your effort answer men
Z.Rusev

Zlatko Rusev
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
169 views
I am using a Rad Menu inside of a user control.  When I set the NavigateURL property on the RadMenuITeam to "../../Desktop/ClaimHistory/CHSearch.aspx" the control will change the path to "../../Common/Desktop/ClaimHistory/CHSearch.aspx" during render.  I am setting the  menu's items on the server.

The user control that the Menu sits in is Common folder but all of the target pages on all of the menu items are not.  What can do to prevent the Menu from inserting the common folder into the Navigate URL?
Atanas Korchev
Telerik team
 answered on 04 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?