Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
Hi,

I have a simple panel bar with itemtemplates, within the itemtemplate i have a table containing server controls. how would i access the server controls from the server side code? Findcontrol does not seems to work.

<asp:Panel ID="pnlStudentDetails" runat="server" Height="100%" Width="100%">
   
       <telerik:RadPanelBar ID="radPnl" runat="server" Width ="70%" Skin="Sunset" 
       ExpandMode="MultipleExpandedItems">
          
       <Items>
       <telerik:RadPanelItem Text="Name" Expanded ="true" Font-Bold="True" runat="server">
           <Items>
            <telerik:RadPanelItem  runat ="server">
            <ItemTemplate>
               <asp:Table ID="tblName" runat="server">
                   <asp:TableRow id="trRow1" runat ="server" Width ="10%">
                         <asp:TableCell rowspan="3" id="tcImage" runat ="server" CssClass="TableCell" ><asp:Image ID="imgStu" runat ="server"  ImageUrl ="~/Images/logo.gif"  BorderWidth ="1px"/></asp:TableCell>
                         <asp:TableCell id="tcFullName" ColumnSpan ="3" runat ="server" CssClass="TableCell"><asp:Label ID="lblFullName" runat ="server" Text ="FullName" CssClass="labelValueSrc"></asp:Label><asp:ImageButton ID="ImgAudio" runat ="server" ImageAlign="Right"/></asp:TableCell>
                       
                   </asp:TableRow>
                   <asp:TableRow id ="trRow2" runat ="server" CssClass="TableCell">
                        <asp:TableCell id ="tcPrfName" runat ="server" CssClass="TableCell"><asp:Label ID="lblPrfName" runat ="server" Text="Preferred Name" CssClass="labelSrc"></asp:Label></asp:TableCell>
                        <asp:TableCell id="tcPrfNameValue" runat ="server" CssClass="TableCell"><asp:Label ID="lblPrfNameValue" runat="server" CssClass="labelValueSrc"></asp:Label></asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow id="trRow3" runat="server" CssClass="TableCell">
                        <asp:TableCell id="tcNotes" runat ="server" CssClass="TableCell"><asp:Label ID="lblNotes" runat="server" Text ="Notes/Messages" CssClass="labelSrc"></asp:Label></asp:TableCell>
                        <asp:TableCell id="tcNotesValue" runat="server" CssClass="TableCell"><asp:Label ID ="lblNotesValue" runat ="server"  CssClass="labelValueSrc"></asp:Label></asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </ItemTemplate>
            </telerik:RadPanelItem>
            </Items>
       </telerik:RadPanelItem>
</telerik:RadPanelItem>
</asp:Panel>

Peter
Telerik team
 answered on 06 Aug 2009
2 answers
219 views

Hello,

I want to disable the RadGrid's ability to highlight and select rows when hovering over a row with the pointer. However, setting the appropriate attribute  EnableRowHoverStyle has no effect, one can still highlight rows and select them.

<ClientSettings EnableRowHoverStyle="False" Selecting-AllowRowSelect="False">  
    <Selecting AllowRowSelect="false" EnableDragToSelectRows="False" /> 
</ClientSettings> 

Did I miss something or a property I need to set prior to EnableRowHoverStyle?




Thanks
Boris
Boris Iltsch
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
259 views
I was trying to get the data item in SelectedIndexChanged.  Here is what I have:

    protected void Grid1_SelectedIndexChanged(object sender, System.EventArgs e)  
    {  
          
        GridItem item = Grid1.SelectedItems[0] as GridItem;  
        Customer cust = item.DataItem as Customer;  
    }  

where Customer is my data type for data binding.  The item object in the above codes is null.  Please help.  Thanks,

Peichung
Peichung
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
154 views
Hi Team,

I use radgrid in that the properties i set true is AllowFiltering,AllowSorting and Allow Paging. For Editing i use the Imagebutton in the GridTemplateColoumn.when i click the edit Imagebutton the grid shows the inline editing even though i did not use the edit mode in the mastertableview 

Please help me
Thanks In Advance
srilatha
Top achievements
Rank 1
 answered on 06 Aug 2009
1 answer
122 views
Hi all,

Following the demo at http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

Everything is great except that if the grid is empty and I try to insert a new record, the GridDropDownColumn in edit mode does not bind to the declared datasource. It seems the grid needs at least one record before it will bind the dropdown.

 <telerik:GridDropDownColumn DataField="answertype" DataSourceID="SqlDataSource3" 
                        HeaderText="Answer Type" ListTextField="answertype" ListValueField="atID" 
                        UniqueName="answertype" ColumnEditorID="GridDropDownColumnEditor1">  
</telerik:GridDropDownColumn> 

How can I force it to bind on edit please?

Cheers,

Jon

Veli
Telerik team
 answered on 06 Aug 2009
1 answer
89 views
I have an existing project that was using the Q1 2009 ASP.NET AJAX controls. I upgraded to the Q2 2009 ASP.NET AJAX control set and am now receiving a validation error on my date picker. I have set the MaxDate property to 12/31/2999, but the control will not accept a date beyond 12/31/2099 (the default).
Dimo
Telerik team
 answered on 06 Aug 2009
5 answers
444 views
Hi,

Let's assume there is a grid displaying application users. There are various columns and among them: name, surname and login. I would like this grid to behave this way:
- when I click the "name" column header it sorts by: name, surname
- when I click the "surname" column header it sorts by: surname, name
- when I click the "login" column header it sorts by: login

In the MS DataGrid it can be easily achieved setting SortExpression values. accordingly:
- "name, surname"
- "surname, name"
- "login"

Is it possible to do the same using RadGrid? The SortExpression property must contain a single field name. If AllowMultiColumnSorting = true, clicking columns' headers just adds or subtracts columns from the current set of sorting expressions. The above is possible but requires too much clicking and unneccessary intermediate sortings (e.g.: the current sorting is "name, surname"; I want to sort by "login"; I must click "name", then "surname" and "login" at last; three click and sortings instead of one).

Can you help me?

Regards
Tomasz

PS. Multi value SortExpression properties ("name, surname") worked in the "classic" RadGrid...
tmlipinski
Top achievements
Rank 1
 answered on 06 Aug 2009
8 answers
115 views
I get this information -
Error Creating Control - RADChart1
Failed to create designer'Telerik.Web.UI, version=2009.1.3111.35, culture=neutral, PublicKeyToken=...

And I had put in VB files this code

Imports

 

System

 

Imports

 

System.Configuration

 

Imports

 

System.Collections

 

Imports

 

System.Web

 

Imports

 

System.Web.Security

 

Imports

 

System.Web.UI

 

Imports

 

System.Web.UI.WebControls

 

Imports

 

System.Web.UI.WebControls.WebParts

 

Imports

 

System.Web.UI.HtmlControls

 

Imports

 

Telerik.Charting

 


So maybe is there something i don't undertand how this work?
I wounder about the platform Win Server 2008 x64 is also a part of the problem?
Brian
Top achievements
Rank 1
 answered on 06 Aug 2009
3 answers
102 views
Hi,

I was using RAD Controls Q3  2007 release version. I was using almost most of the controls such as DatePicker, Textbox, drop down, litsbox, radgrid etc. 

Since the "export to excel" feature of the Q3 2007 release doesn't support "ExcelML" format, i am going to upgrade Q2 2009 release of RAD Grid. Considering the migration time of all the controls to the latest version, i planned to upgrade only the RAD Grid control of the particular page. 

Does that cause any issue now (using mixed versions of RAD Controls in a page/project)?

Please let me know.

Thanks
Viswa
Dimo
Telerik team
 answered on 06 Aug 2009
1 answer
61 views
Hi,

  I'm using MOSSRadEditor in my custom webpart for sharepoint.I need to validate this control as required field.

Please help me!
Stanimir
Telerik team
 answered on 06 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?