Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
204 views
aspx:

<
Columns> 
               <telerik:GridBoundColumn UniqueName="EmployeeNo" DataField="EmployeeNo" HeaderText="EmployeeNo" HeaderStyle-Width="200px">  
                        <FilterTemplate> 
                            <telerik:RadComboBox ID="RadComboBox1" DataTextField="EmployeeNo" 
                                DataValueField="EmployeeNo" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("EmployeeNo").CurrentFilterValue %>' 
                                runat="server" OnClientSelectedIndexChanged="EmployeeNoIndexChanged">  
                                <Items> 
                                    <telerik:RadComboBoxItem Text="All" /> 
                                    <telerik:RadComboBoxItem Text="000000" Value="000000"/>  //add item in aspx
                                </Items> 
                            </telerik:RadComboBox> 
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">  
                                <script type="text/javascript">  
                                    function EmployeeNoIndexChanged(sender,args) {  
                                        var tableView=$find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                        tableView.filter("EmployeeNo",args.get_item().get_value(),"EqualTo");  
                                    }  
                                </script> 
                            </telerik:RadScriptBlock> 
                        </FilterTemplate> 
                </telerik:GridBoundColumn> 
</Columns> 

cs:

protected
 void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
 
                RadComboBox RadComboBox1 = this.FindControl("RadComboBox1") as RadComboBox;  
                RadComboBox1 = new RadComboBox();  
                RadComboBoxItem item = new RadComboBoxItem();  
 
                item.Text = "000001";  
                item.Value = "000001";  
 
                RadComboBox1.Items.Add(item);  
 
                RadComboBox1.DataBind();  
        } 

I want to filter the grid by a RadComboBox.
I tried as demo (http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx) but RadComboBox in this demo binding data by DataSourceID and <asp:SqlDataSource>.

I want to bind data from aspx.cs in this way when first page load:

RadComboBox1.Items.Add(item);  
RadComboBox1.DataBind();  

But I find that I can't  bind data like this  o_O !

<telerik:RadComboBoxItem Text="000000" Value="000000"/>  // only can add item like this in aspx
how to do this  '-' ?

thanks!
Airad
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
96 views
Hello!

Is it possible to have the editor to output html 4.01 instead of xhtml?

Thank You!
Stanimir
Telerik team
 answered on 10 Jul 2009
1 answer
156 views
I'm trying to use the rotator to display pdf files and found the way to show pdf files is to embed them in an iframe. Then take the iframe and embed it in the rotator ItemTemplate.  Unfortunately when I do this, the rotator control doesn't show it property. It always shows all the pdf files (iframes) together side by side on the right and causes the iframes to bleed off the the page or area. It appears as though maybe the Rotator can't hide the other ones?

Some assistance with this would be greatly appreciated!


Thanks,
Stephen
Martin
Telerik team
 answered on 10 Jul 2009
2 answers
65 views
Hi All,

Normal formdecorator rendered buttons are showing with black text in IE6 and white text in IE7.  To get them to be consistant I want to use "color:white ! important" in the css.  What style is behind the scenes for the buttons (hovered and normal states)?

Regards,

Jon

Jon
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
67 views

Hello,

The orientation of our tabstrip is HorizontalTop. It displays horizontally but when the page refreshes or performs a postback, the tabstrip displays vertically. We’re using IE7.

 

.aspx

<div class="tabstrip tabstop"> 
    <telerik:RadTabStrip ID="tabstrip1" runat="server" MultiPageID="tabstripPages"
        
Align="Center" SelectedIndex="0" Orientation="HorizontalTop">

 

 

 

            <Tabs>

 

 

                <telerik:RadTab Text="Tab 1" Value="1" Selected="true"></telerik:RadTab>

 

 

                <telerik:RadTab Text=" Tab 2 " Value="2" ></telerik:RadTab>

 

 

                <telerik:RadTab Text=" Tab 3 " Value="3" ></telerik:RadTab>

 

 

            </Tabs>

 

 

 

    </telerik:RadTabStrip>

 

 

</div>

 

 

 

.css

.tabstop

 

 

{

 

 

 

 

    margin-top: 5px;

 

}

 

 

Atanas Korchev
Telerik team
 answered on 10 Jul 2009
7 answers
327 views
Hi,

I've got an issue with the fieldset's that are rendered.  On IE7 I end up with a white background and on IE6 it's a light blue background (using the web20 skin).  Is there a way to force the css to render properly on one or the other browser so that they can be consistant?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
133 views
Hi guys
I've noticed that when I resize my window, the dock goes over the horizontal scrollbar as per the image
http://i839.photobucket.com/albums/zz316/dev2009_2009/dockgoesoverscrollbar.jpg

how would we resolve this? Thanks
Pero
Telerik team
 answered on 10 Jul 2009
1 answer
188 views
I have following requirements

i am using  ASP.NET AJAX Q1 2009 trial version

1.    I would like to add a date picker to filter date in grid
       currently the date picker popup is not displayed

2.    I would like to have a dropdown list in the filter area

3.    I would like to change the header style in css .
       so which class i need to update
       I am using "Outlook" skin for the Grid
      Do i need to include the "Grid"  classes in my Web application  and modify the classes ?

Can some one help me on abouve  with a proper working code
or a url with proper info

thanks

Princy
Top achievements
Rank 2
 answered on 10 Jul 2009
2 answers
131 views

Hello,

I've got RadGridControl keyboard support problem. After pasting following part of code:

<ClientSettings AllowDragToGroup="false" EnableRowHoverStyle="true" AllowKeyboardNavigation="true">  
<KeyboardNavigationSettings AllowActiveRowCycle="true" FocusKey="Y" />  
<Scrolling AllowScroll="false" UseStaticHeaders="true" />  
<Selecting AllowRowSelect="true" />  
<Resizing AllowColumnResize="true" />  
</ClientSettings> 

i've got warning: Generation of designer file failed: Type 'Telerik.Web.UI.GridClientSettings' does not have a public property named 'keyboardnavigationsettings'. When I run application it collapses because of this.

Any help?

All the best,

Zbyszek

Zbigniew Barbasiński
Top achievements
Rank 1
 answered on 10 Jul 2009
1 answer
294 views
I have following columns in my datasource which is a Generic list

Element ID
ParentElementID
Element Name
Sequence
Layer

I need to create and bind  custom attributes like Layer,Sequence,etc from the datasource so that I can manipulate them at Nodedatabound event .
Also for several childs of parent node
I need to order the sequence of nodes on the basis of Sequence .


Shinu
Top achievements
Rank 2
 answered on 10 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?