Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
92 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
158 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
88 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
93 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
119 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
202 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
412 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
1 answer
73 views
Hello! I'm having this problem) I use the grid and to display more  information about record using a hierarchical structure! I want to place the button there and by clicking on it to delete the current record) How do I determine what records to show more info?) To remove an entry on it!? And one more problem! I want when displaying more information, select the required line!!!Help Please))))
Pavlina
Telerik team
 answered on 29 Jun 2011
2 answers
190 views
I'm trying to get the selected value from a dropdownlist in a radgrid from GridTemplate when being called from a command button.
I don't know how to get the value to pass to an update procedure. ddlassessPeriod.SelectedValue doesn't work when its in ItemTemplate.
Here's some sample code:

<telerik:RadGrid ID="RadGrid1" runat="server"  >
 <MasterTableView>
   <Columns>
    <telerik:GridTemplateColumn UniqueName="TemplateColumn>
      <ItemTemplate>
        <asp:DropDownList  ID="ddlassessPeriod" runat="server"
              SelectedValue='<%# Eval("assessPeriod") %>'>
                    <asp:ListItem Value="0" Text="N/A" />
                    <asp:ListItem Value="1" Text="1" />
                     <asp:ListItem Value="2" Text="2" />
         </asp:DropDownList>
        </ItemTemplate>
       </telerik:GridTemplateColumn>
       <telerik:GridTemplateColumn UniqueName="TemplateColumn" AllowFiltering="False">
         <ItemTemplate>
             <asp:Button ID="update" runat="server" Text="Update"
                       OnCommand="update_Command" CommandName='<%#Eval("seid")%>' />
           </ItemTemplate>
         </telerik:GridTemplateColumn>
     </Columns>
  </MasterTableView>
</telerik:RadGrid>

protected void update_Command(object sender, CommandEventArgs e)
     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["curriculum"] + "");
     conn.Open();
 
     class.update(conn, ddlassessPeriod.SelctedValue, Convert.ToInt32(e.CommandName));
 
}
Michael
Top achievements
Rank 1
 answered on 29 Jun 2011
2 answers
136 views


i want to process two things in hyperline ,

Tooltipmanage,
another one's move to another page that moves how i get that value in query string

 <telerik:GridTemplateColumn SortExpression="Articleid">
                                <ItemTemplate>
                                    <asp:HyperLink ID="Articleid" runat="server" NavigateUrl="KBaseDetail.aspx" Text='<%# Eval("Articleid") %>'></asp:HyperLink>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 29 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?