Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
123 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
77 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
56 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
99 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
175 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
391 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
65 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
161 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
121 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
1 answer
223 views
I have a question about how itemdatabound works.  I have a sql query that pulls about on average 200 records, not a lot, query runs in seconds.  My problem is i have validation on every column, about 15 columns in each row, that needs to happen but i think that itemdatabound runs against all the data pulled from the SQL query instead of the first 20 records in the radgrid.  i have the radgrid paging set to 20 records per page.  is there a way to have itemdatabound events to run only on the page being viewed instead of all records returned???  
Marin
Telerik team
 answered on 29 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?