Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
Hi guys/gals,

1st time poster, thanks for any help.

Been looking for several days @ the forums & couldnt find a specific solution.

I have a RadGrid configured @ design time as:
    1) Enable Paging (AllowPaging)=false
    2) Enable Sorting (AllowSorting)=false
    3) Enable Client-Side Column Re-order (ClientSettings.AllowColumnsReorder)=false

On a button click, I display a RadDock w/ three check boxes:
    1) Enable paging
    2) Enable sorting
    3) Enable column reorder

For the life of me, I cannot change the RadGrid properties dynamically.

Any ideas?

Thanks, Kevin



    
Kevin
Top achievements
Rank 1
 answered on 05 Jan 2010
2 answers
183 views
Hi all!
I have a problem. I explain my situation: I have a C# class that generates a user control (without the .aspx file). In the page I have a RadComboBox control and I need to fire an event after the text or the selected item have been changed. The javascript is external.
In the Page_Load the code that defines the event is (the code is the same also for OnClientTextChanged) :
this._cmbFilter.OnClientSelectedIndexChanged = "ComboTextChanged";

The javascript code is at the moment really simple, but still doesn't work.

function ComboTextChanged(sender){
    alert("Sender = " + sender + " Id = " + sender.id);
  }

What I see when I execute the page is Sender = object, Id = null.
Is there any way to solve this problem? I have also tried passing arguments to the javascript, or with the $find("") function.

Thanks in advance for any help!

Dario Zanelli
Dario Zanelli
Top achievements
Rank 1
 answered on 05 Jan 2010
2 answers
113 views
I need to way to show where the Frozen column ends. For example is there a feature that will show a vertical bar or set the width of the right border of all the cells in the Frozen column.
cds_user
Top achievements
Rank 1
 answered on 05 Jan 2010
1 answer
119 views
Greetings,

I was curious.  I'm currently in the process of building a set of RadTreeViews, however, there is a bit of a problem with this.  Both are the same tree, but with different datasources, and each in a seperate control.  I'm curious if I will be able to move nodes between the two or not since they are seperated.  After all, each are their own control and not linked together.  Thank you.

~Chad Johnson
Schlurk
Top achievements
Rank 2
 answered on 05 Jan 2010
3 answers
435 views

I have a RadMenu created in a code-behind, with these properties (among others):

NavMenu.EnableAutoScroll = true;
NavMenu.EnableScreenBoundaryDetection = true;
NavMenu.Width = Unit.Percentage(99);

I set the Width to 99% to enable the menu scroll arrows when the browser window is resized.  Menu items are added through code, instead of markup.

The issue I want to fix is that the menu covers the width of the client area, regardless of the number of menu items.  I'd like for the menu to be sized to just the width of the items, but still have the menu scroll arrows.  My application's menu is configured based on licensing and security, and so the number of menu items varies widely.

Thanks! 

Yana
Telerik team
 answered on 05 Jan 2010
1 answer
61 views
Hi,
I have this code in my grid:
<telerik:GridTemplateColumn UniqueName="Unit" HeaderText="<%$ Resources:resources, Label_HomeDirectory %>"
     <ItemTemplate> 
           <asp:Label ID="labelUnit" runat="server" Text=""></asp:Label> 
     </ItemTemplate> 
</telerik:GridTemplateColumn> 

protected void radGridUsers_ItemDataBound(object sender, GridItemEventArgs e) 
     GridDataItem gridItem; 
     User user; 
 
     if (e.Item is GridDataItem) 
     { 
          gridItem = (GridDataItem)e.Item; 
          user = (User)gridItem.DataItem;  
          Label labelUnit = (Label)gridItem.FindControl("labelUnit"); 
          labelUnit.Text = UnitService.GetParentUnits(user.Unit.ID) + user.Unit.Name;  
     } 
 

The text in the label could look like: My first unit/ My second unit/ My third unit

Is it possible to sort the grid by this text in for example prerender event?

Regards,
Mattias

Pavlina
Telerik team
 answered on 05 Jan 2010
5 answers
256 views
Hello Guys,

How can I change the column width for one column in the Details View of a MasterView

Thanks
Wendy Hunt
Top achievements
Rank 2
 answered on 05 Jan 2010
2 answers
129 views
Hi
In my skin file i have the following. 

<

 

telerik:RadComboBox runat="server" AppendDataBoundItems="true"
 <
Items
<te
lerik:RadComboBoxItem Text="Select" Value="" /> 
</
Items
</t
elerik:RadComboBox

 

This works fine when I am using databound items to append to the drop down. I have come to scenario where I need to just use some static items in my control page. ie
  <telerik:RadComboBox ID="Arrangement" runat="server">  
<Items>  
<telerik:RadComboBoxItem Text="Service Contract" Value="Service Contract" />  
 <telerik:RadComboBoxItem Text="Contract" Value="Contract" />  
</Items>  
</telerik:RadComboBox>

I would like to return a result as
>Select
>Service Contract
>Contract

problem is that when I use the <items> tag in my skin file, I can't use it again in my code page.
Is there some other default value I can so as to avoid an empty drop down box on all my pages. I like seeing select as the default vs blank or the first items in lists.
mac

 

 

 

 

 

 

 

 

 

mac
Top achievements
Rank 1
 answered on 05 Jan 2010
1 answer
173 views
                <telerik:RadComboBox ID="cmbCategoria"   
                                     runat="server" 
                                     DataSourceID="odsCategoria"   
                                     DataValueField="Id" 
                                     DataTextField="Descrizione" 
                                     AppendDataBoundItems="true" 
                                     SelectedValue='<%# Bind("IdCategoria") %>'>  
                    <Items> 
                        <telerik:RadComboBoxItem Value="XXX" /> 
                    </Items> 
                </telerik:RadComboBox> 

Can I set null in Value of RadioComboBoxItem?
Simon
Telerik team
 answered on 05 Jan 2010
1 answer
334 views
Hi,

I am using raddate picker and raddateinput for getting a input date. I need to validate the input date format as mm/dd/yy. I am using OnError function to validate. but it not working properly. is there any alternate way to validate the formate of the datepicker. i am trying to get the text in that dateinput. but i couldnot get if the format is wrong

 <telerik:RadDatePicker ID="textBoxDOB" Skin="Web20" Culture="en-US" Width="100px"
                                    MinDate="01/01/1900" runat="server">
                                    <Calendar ID="CalendarDOB" runat="server" ShowOtherMonthsDays="false" ShowRowHeaders="false"
                                        Skin="WebBlue" BorderWidth="1">
                                    </Calendar>
                                    <DateInput ClientEvents-OnError="OnError" runat="server" ID="raddateDOB" Culture="en-US"
                                          MaxLength="10" ReadOnly="false" MinDate="01/01/1900"  >
                                    </DateInput>
                                    <DatePopupButton HoverImageUrl="../Images/calendar.png" ImageUrl="../Images/calendar.png" />
                                </telerik:RadDatePicker>




function OnError(sender, args) {
                 alert('Invalid date');
                
            }
Thanks,
Jeevitha
Pavlina
Telerik team
 answered on 05 Jan 2010
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?