Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
141 views
I am creating multiple grids in my page's code-behind and was hoping to be able to export them all at once.  However, I cannot find any way to add these grids to a 'wrapper' grid's MasterTableView.Items collection as would be accomplished in the aspx like:


<telerik:RadGrid ID="wrapper" ... >
  <MasterTableView>
    <ItemTemplate>
      <telerik:RadGrid ID="grid1" ... />
      <telerik:RadGrid ID="grid2" ... />
    </ItemTemplate>
  </MasterTableView>
</telerik:RadGrid>


Is there any way to accomplish what I am after?

Thanks!
Daniel
Telerik team
 answered on 29 Jun 2011
1 answer
91 views
Hi,

I have user control with Div tag, I am adding all colors to that div tag. In another user control, I have Rad Tree View, in OnLoad event I am adding this user control dynamically to the Rad TreeView Context menu. Basically my intention is to change the Color of Rad Tree Node. In the usercontrol where div tag exists, I am writing the JQuery for item click. From this if i write click on Rad Tree Node, "Color" option will come and if i mouse hover to that particular option, i can view all colors so that i can change the color. So if i click on particular color, the div item click event is not firing. Suppose if put this in usercontrol, in .ascx page(not in context menu option), it's working fine. But if i add this dynamically to the Context menu, it's not firing.

Please help me on this.

Thanks in Advance,
Hari.
Plamen
Telerik team
 answered on 29 Jun 2011
1 answer
86 views
Followed is my code used to test recurrence exception functionality. I could never get it to work. The grid shows the appointment occurrences correctly. Hello World recurs exactly 4 time starting from today. However the first recurrence exception doesn't work. I wonder if you guys can provide us a simple code how to create an exception for occurrences.

List<Appointment> lstAppt = new List<Appointment>();
            Appointment objAppt;
            objAppt = new Appointment();
            objAppt.Start = DateTime.Now;
            objAppt.End = DateTime.Now.AddHours(1);
            objAppt.Description = "Hello World";
            objAppt.ID = 1;
            objAppt.RecurrenceParentID = 1;
             
            RecurrenceRange objRange = new RecurrenceRange();
            objRange.Start = DateTime.Now;
            objRange.RecursUntil = DateTime.Now.AddDays(4);//add 4 reccurence for today
 
 
            DailyRecurrenceRule objDailyRecurrenceRule = new DailyRecurrenceRule(RecurrenceDay.EveryDay, objRange);
            objDailyRecurrenceRule.Exceptions.Add(DateTime.Now);//add 1  exception for the first recurrence
 
 
 
 
            objAppt.RecurrenceRule = objDailyRecurrenceRule.ToString();
 
 
            lstAppt.Add(objAppt);
 
 
            objAppt = new Appointment();
            objAppt.Start = DateTime.Now.AddHours(3);
            objAppt.End = DateTime.Now.AddHours(4);
            objAppt.Description = "Good Bye";
            objAppt.ID = 2;
            objAppt.RecurrenceParentID = 2;
            lstAppt.Add(objAppt);
 
 
            RadScheduler1.DataSource = lstAppt;
            RadScheduler1.DataBind();
Plamen
Telerik team
 answered on 29 Jun 2011
2 answers
80 views
I am looking to use the scheduler with some drag and drop functionality.  I have seen the sample on this site where you can drag tasks onto the calendar and it will assign it to the time slot you were hovering over.  In my scenario, I am going to have an appointment in the calendar already.  And I want to be able to drag an item onto that calendar entry and be able to tie the two objects together in our database on the back end.

Here is the real life scenario.  I have jobs in the calendar.  I have a list of resources on the left hand side outside of the calendar object.  I want to be able to grab a resource from the list, drag it over to a job in the calendar and be able to assign that resource to the job.  Is there a trigger on an appointment like that where I would be able to recognize that something is being dropped on the appointment and not necessarily a timeslot in the calendar?
Plamen
Telerik team
 answered on 29 Jun 2011
2 answers
117 views
Hi,

I have several ComboBoxes on a form and I want to use a single onSelectedIndexChanged javascript function for all of them.

A. Can I do this?
B. How do I determine which control was changed in the function?
Joe
Top achievements
Rank 2
 answered on 29 Jun 2011
2 answers
72 views

I'm trying to add some extended properties to a RadPanelItem like so:

Public Class RadPanelItemExtended
Inherits Telerik.Web.UI.RadPanelItem
Private _HasChildren As Boolean
Public Property HasChildren() As Boolean
Get
Return _HasChildren
End Get
Set(ByVal value As Boolean)
_HasChildren = value
End Set
End Property
End Class

To access the extended properties on RadPanelBar.ItemClick i need to make the RadPanelBarEventArgs handle RadPanelItemExtended class rather than RadPanelItem class. I thought this was possible through creating an extended eventargs class like so:

 

Public Class RadPanelBarEventArgsExtended
Inherits Telerik.Web.UI.RadPanelBarEventArgs
Private _RadPanelItemExtended As RadPanelItemExtended
Public Property RadPanelItemExtended() As RadPanelItemExtended
Get
Return _RadPanelItemExtended
End Get
Set(ByVal value As RadPanelItemExtended)
_RadPanelItemExtended = value
End Set
End Property
Sub New(ByVal item As RadPanelItemExtended)
MyBase.New(item)
Me._RadPanelItemExtended = item
End Sub

When using these extended classes like this:

Protected Sub RadPanelBar_ItemClick(ByVal sender As Object, ByVal e As RadPanelBarEventArgsExtended) Handles RadPanelBar.ItemClick
End Sub

I get the following error:
Unable to cast object of type 'Telerik.Web.UI.RadPanelBarEventArgs' to type 'RadPanelBarEventArgsExtended'.

Why is this?

Regards
Richard

Peter
Telerik team
 answered on 29 Jun 2011
2 answers
54 views
When you disable a regular toolbar button it's greyed out.

This isn't true for SplitButtons (and, I assume, DropDownButtons).

My user base find this confusing as the button looks like it can be clicked when it can't. Is there a way of changing this behaviour so that it acts more like regular buttons?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 29 Jun 2011
1 answer
97 views
Hello everybody,

Please help me :(
I build a page with TabStrip, TabStrip has MultiPages, each page is added user control(The control is add inside code in file .cs of page with function RadMultiPage1_PageViewCreated).
In one TabPage, I import a Radupload RadUpload1 to upload files to server, and a Button btnUpload for submitting Upload File. After selecting File, clicking Button, the first thing which is done is function RadMultiPage1_PageViewCreated called again to reload all usercontrol, and then the function btnUpload_Click is called. But now, the RadUpload1 is reset, so, RadUpload1.UploadedFiles is null, all Files which I selected before are not catched in my code, not to uploaded to server.

Please give me some solutions for this problem, men.

Thanks very much for your help.
Peter Filipov
Telerik team
 answered on 29 Jun 2011
2 answers
169 views
Hi,

I have a RadUpload in a RadGrid. I would like set the AllowedFileExtensions property at the code-behind rather through the aspx page itself. In which event should I set this? I've tried it in the '... Insert' event, but it seems that the code does not detect it and allowed the invalid files to go through.

Thanks,
Bernard
Peter Filipov
Telerik team
 answered on 29 Jun 2011
2 answers
387 views
Hi,

I am trying to get my records in Multi-Column, Multi-Row format using RadGrid. This is easily done using DataList as below.

Please see Step 3 in: http://www.asp.net/data-access/tutorials/showing-multiple-records-per-row-with-the-datalist-control-vb

How can we do the same using RadGrid.

Thanks,
Raj
Raj
Top achievements
Rank 1
 answered on 29 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?