Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
370 views
Hi all,

I have a Radgrid where I use a GridButtonColumn to show the Edit Form Template but with the controls diabled. How could I acomplish this on the RadGrid1_SelectedIndexChanged event please?
Rawl
Top achievements
Rank 1
 answered on 07 May 2013
4 answers
244 views
Hi Telerik,
I have received your answer, but, I just can Closed it, because, there's no Reply button there. So, I create new thread to thank for your supportation and submit new bug, I think this is a bug.
The scenario likes this:

Update panel named UpdatePanel1 contains a RadScheduler named RadScheduler1.
Button1 is outside UpdatePanel1 and be trigged as AsyncPostBack from UpdatePanel1, when click, make RadScheduler1 change to AdvanceInsert mode
Button2 is outside all, and inside UpdatePanel2.

Run project as debug, set break point within RadScheduler1_FormCreated.
Click Button1, after AdvanceInsert form apprear, click Button2. You will be brought to FormCreated event of RadScheduler1.

This will make your application reload many times if there some load data event attach to FormCreated event, and make application run VERY SLOWLY.

I can't attach example to this thread, but everyone can download it from here: http://www.mediafire.com/download.php?zxrt2tijgul

Best regard,


Plamen
Telerik team
 answered on 07 May 2013
2 answers
124 views
Problem: Need to access values of controls for an insert item outside of RadGrid events. I will not have access to event arguments.

Scenario: User enters values into insert item row client-side, and then selects a grid-external button which will post back to perform complicated business logic. The business logic will access the values entered by the user, and will populate a cell based on entered user values.

Additional Notes: I have no problem performing similar functionality with edit items. I can simply grab RadGrid.EditItems to access the items (rows) I need.

Questions: Is the functionality described above possible? Can I access the values entered into an insert item in the code behind outside of the InsertCommand event?
Zachary
Top achievements
Rank 1
 answered on 07 May 2013
2 answers
56 views
Hi everyone, I'm kind of stuck. I built a web app in 2006 in asp.net 1.1 using the radcontrols available then. The app is still up and running wonderfully, thanks in great part to radcontrols.

I've just become aware that with IE 10, radedit doesn't work (doesn't let you edit). I can't afford to rewrite my app using the current radcontrols. The entire code is in Asp.net 1.1.

Any ideas?

Thanks!
Alain Rostain
Top achievements
Rank 1
 answered on 07 May 2013
1 answer
142 views
I have an Error Tooltip when start my application:
Image bellow.
Can you help me.
(tinhdamsugia@yahoo.com)
Misho
Telerik team
 answered on 07 May 2013
3 answers
1.1K+ views
Is there a way to change the label color of an Input control in code-behind, w/o using LabelCssClass? Attribute?

I have custom theming and it changes in the ItemCreated event. Could be all kinds of colors, reading from a internal Class. So i need it to change in the server-side code. RadTextBox.ForeColor - works great, what about the Label?

Thanks!
Brian
Venelin
Telerik team
 answered on 07 May 2013
3 answers
104 views
I have a RadGrid with header and details. I have the ParentTableRelation set up.  What I want to do is set up a CommandItemTemplate that contains a link that calls a JavaScript function that in turn does a window.radopen.  So far the Add New Detail link works fine.  

However what I want is something like this:  <a href="#" onclick="return AddDetail(DetailId);">Add New Detail</a>

What is the simplest way to add the DetailId to that call?

<MasterTableView EditMode="PopUp" DataKeyNames="HeaderId" ClientDataKeyNames="HeaderId" Name="Header" CommandItemDisplay="Top" AllowPaging="True">
                    <DetailTables>
                        <telerik:GridTableView runat="server" DataKeyNames="HeaderId,DetailId" ClientDataKeyNames="HeaderId, DetailId" DataMember="Details"  Name="Details" CommandItemDisplay="Top" NoDetailRecordsText="No Detail records to display." HeaderStyle-BackColor="LightCyan"
                            AlternatingItemStyle-BackColor="LightCyan">
                            <CommandItemTemplate>
                               <table style="width: 100%">
                                    <tr>
                                        <td style="width: 160px">
                                            <a href="#" onclick="return AddDetail();">Add New Detail</a>
                                        </td>                                    
                                    </tr>
                                </table>
                            </CommandItemTemplate>

Sorry.  Too fast again.  The solution was to change that to an Asp:Hyperlink and do a call in the ItemCreated event.
if (e.Item is GridCommandItem)
{
      GridCommandItem commandItem = e.Item as GridCommandItem;
      HyperLink editLink = (HyperLink)commandItem.FindControl("AddDetail");
      editLink.Attributes["href"] = "#";
     editLink.Attributes["onclick"] = String.Format("return AddDetail('{0}');", e.Item.OwnerTableView.ParentItem.GetDataKeyValue("DetailId"));
}

Andrey
Telerik team
 answered on 07 May 2013
1 answer
78 views
Hello Sir/Madam,


Currently i am using Rad Grid in my project and am facing problem with grid lining. i have attached screen shot so that you can clearly understand my actual requirements. As you can see in my screen shot header lining and data lining is not matching with their header section itself and i am not able to get it right so please tell me asap...

Thanx in advance
Venelin
Telerik team
 answered on 07 May 2013
7 answers
170 views
Hi,

I have created drop down lists within the <AdvancedInsertTemplate>...</AdvancedInsertTemplate> tag of a Rad scheduler. I set the Selected Value of the drop down list using the Bind method like SelectedValue='<%# Bind("TaskStatus") %>' (the TaskStatus is a custom attribute). When I insert a new appointment using the AdvancedInsertTemplate, it will give me the following error:

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

I have done the same to the AdvancedEditTemplate without any error, anyone knows how to solve this problem please?

Cheers
Chi
Kate
Telerik team
 answered on 07 May 2013
5 answers
282 views
Hi -

I have a button, that when clicked... I want it to disable the menu until an action is taken, then have the menu operational (enabled) again by clicking a different button.  The purpose of my actions is to not let the user navigate off the page until they have finished editing and then have saved their work. 

I have been going through the postings and haven't found anything that works (I've tried many examples...Visible...EnableSelection...Enabled...etc). 

My menu is located on the Master page, and my calling code is located on the SOI page.

Here is the code I have so far...
      private void EnableNavigation(bool enabled)  
      {  
        RadMenu menu = (RadMenu)(Master.FindControl("RadMenu1"));  
        menu.Enabled = enabled;  
      } 

This is how I call it from my Edit button click method... 
EnableNavigation(false);

Any other suggestions?  Should I be going about this in a different way?

wen
Kate
Telerik team
 answered on 07 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?