Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
190 views

Hi,

In RadGrid, is it possible to set multi-column filtering, what I mean by multi-column filtering is for the same column can I set a filter expression using logical operators, ie., like FilterExpression = "ID equals OR greater Than 10".(ID being the column)

How can I set the filter expression at code-behind?

Could u plz reply me with the code snippet....

-Liji Gilesh

Princy
Top achievements
Rank 2
 answered on 17 Feb 2010
1 answer
139 views
I want to add an item to the RadComboBox on the client side.  I have copied the suggested code, but it does not work.  The error comes at the line combo.get_items().add(comboItem);. The error message is 'undefined' is null or not an objet
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="pnl_iChoose_Hrchy.ascx.vb" 
    Inherits="WebUserControls_pnl_iChoose_Hrchy"%> 
<asp:Panel ID="pnlAjax" runat="server" >      
    <table class="tblPanel" > 
        <col class="leftCell" /> 
        <col class="rightCell" /> 
        <tr> 
            <td> 
                Dept:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlDepartment" AutoPostBack="true" EnableLoadOnDemand="True" 
                    ShowDropDownOnTextboxClick="false" OnClientSelectedIndexChanged="ddlDept_SelIChng">  
                    <WebServiceSettings Method="loadDepartment" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                Class:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlClass" AutoPostBack="true" EnableLoadOnDemand="True" 
                    OnClientItemsRequesting="hrchy_itmReq_Dpt">  
                    <WebServiceSettings Method="loadClass" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                Subclass:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlSubClass" AutoPostBack="true" EnableLoadOnDemand="True">  
                    <WebServiceSettings Method="loadSubClass" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                Vendor:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlSupplier" AutoPostBack="true" EnableLoadOnDemand="True">  
                    <WebServiceSettings Method="loadVendor" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
        <tr> 
            <td> 
                Vendor Style:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlStyle" AutoPostBack="true" EnableLoadOnDemand="True">  
                    <WebServiceSettings Method="loadStyle" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox>                 
            </td> 
        </tr> 
        <tr> 
            <td> 
                SEA CDE:  
            </td> 
            <td> 
                <telerik:RadComboBox runat="server" ID="ddlSeason" EnableLoadOnDemand="True">  
                    <WebServiceSettings Method="loadSeaCde" Path="../WebServices/srvc_ComboBox.asmx" /> 
                </telerik:RadComboBox> 
            </td> 
        </tr> 
         <tr> 
            <td> 
                Vendor PID:  
            </td> 
            <td> 
                <telerik:RadTextBox ID="txtPID" runat="server">  
                    <ClientEvents OnFocus="ShowResultTab" OnKeyPress="RetrieveOnEnter" /> 
                </telerik:RadTextBox></td>  
        </tr> 
        <tr> 
            <td> 
                Created Since:  
            </td> 
            <td> 
                <telerik:RadDatePicker runat="server" Skin="WebBlue" ID="dpSince" SharedCalendarID="sharedCal" 
                    Width="80px" > 
                    <DateInput ID="diSince" runat="server" onclick="dp_PUpdating(this.id);">  
                    </DateInput> 
                    <DatePopupButton ImageUrl="~/App_Themes/BlueBT2009/Calendar/Cal.gif" onclick="dp_PUpdating(this.id);" /> 
                </telerik:RadDatePicker> 
            </td> 
        </tr>    
          
    </table> 
    <telerik:RadCalendar runat="server" ID="sharedCal">  
    </telerik:RadCalendar>   
       
</asp:Panel> 
 This RadComboBox is on a user control that is contained in a RadPanelItem.  The RadPanelItem is contained in a RadPane.  The RadPane is contained in a RadSplitter.
 function pnlHierarchyBackFeed(sql) {  
            try {  
                var sqlt = trim(sql);  
                var arry = sqlt.split(' '); ;  
                var combo;  
                var str;  
                var x;  
                for (x in arry) {  
                    str = arry[x + 2];  
                    switch (arry[x]) {  
                        case 'DEPT_ID':  
                            combo = $find("<%= Me.ddlDepartment.ClientID %>");  
                            var comboItem = new Telerik.Web.UI.RadComboBoxItem();  
                            comboItem.set_text(str);  
                            combo.trackChanges();  
                            combo.get_items().add(comboItem);  
                            comboItem.select();  
                            combo.commitChanges();  
                            break;  
                        case 'CLASS_ID':  
                            combo = $find("<%= Me.ddlClass.ClientID %>");  
                            var comboItem = new Telerik.Web.UI.RadComboBoxItem();  
                            comboItem.set_text(str);  
                            combo.trackChanges();  
                            combo.get_items().add(comboItem);  
                            comboItem.select();  
                            combo.commitChanges();  
                            break;  
                        
                        default:  
                             
                    }  
                    x = x + 2;  
                }  
            }  
            catch (err) {  
                alert(err.message);  
            }  
        } 
Jeanne Kornkven
Top achievements
Rank 1
 answered on 17 Feb 2010
1 answer
218 views

Hello,

Highlighting of Items is not working for me in IE8 when I hover over them.

From what I can tell, a RadComboBoxItem's css class is supposed to change from ComboBoxItem_Vista to ComboBoxItemHover_Vista when the user mouses over it. If I add a doctype declaration to my page, this behavior stops working in IE8. Only the first item that I mouse over gets the hover class. When I hover over other items, the highlight does not move. If I move the mouse away from the dropdown completely and return, the first item I hover over gets the hover class, but then when I move to other items, again, the highlight does not move.

Manually adding onmouseover and onmouseout attributes to each item when it is databound works, but slows the page down considerably because I have many items in each dropdown.

Here is a live sample: https://hertzequipus.rousesales.com/equipmentlisting.aspx

Here is the doctype declaration I am using:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

And I am using RadComboBox version 2.8.4.0.

Thank you for your help.

Adeel Syed
Top achievements
Rank 1
 answered on 16 Feb 2010
1 answer
188 views
Hi ,

I tried to export data from radgrid to excel with command item and footer. I am able to export the data successfully. But I am not able to format the grid data . for example I am not able to set color for item and alternateitemtemplate.

wehen i am using xliml format then i am able to formate the color for item and alternateitemtemplate but I am not able to send command item and footer. xliml will work only if you set setonlydata = true.

Daniel
Telerik team
 answered on 16 Feb 2010
1 answer
72 views
Hi ,


I tried to export data in pdf from paginated radgrid.But is exporting current page paging iofo on each and every page of pdf.

I want to export data from radgrid to pdf with page number and the record related to page . for example page 1 of 20
and 1 to 10 of 200 on each page of pdf.
Daniel
Telerik team
 answered on 16 Feb 2010
1 answer
133 views
I have a hierarchial TreeView inside a combo box. The basic functionality is fine except for the following scenario:
When the edit page is loaded we already know the value of a treeNode. When I click on the drop down button on the combobox,
as it is now, the treeview is displayed with all nodes closed.
I would like the tree view to expand to the proper level with the selected node highlighted. I tried doing this:
       _onClientDropDownOpening: function(sender, e)
        {            
            var selectedNode = this._ObjectiveTypeTreeView.get_selectedNode();
            if (selectedNode != null)
            {
                selectedNode.scrollIntoView();
            }
        },
but it doesn't work. I would appreciate any pointers.
Thanks!


Veronica
Telerik team
 answered on 16 Feb 2010
6 answers
241 views
Hi All,

In RadGrid i am using exporting to excel, word etc, i dont want to show Add new record command in the CommandItemSettings.

Please help me regarding this.
Laurie
Top achievements
Rank 2
 answered on 16 Feb 2010
3 answers
160 views
 Guys,
If I select 2 items in a list (using ctrl+ ) and then click (without CTRL) on one of those selected items visually it shows me that only one item is selected. Then I click on the asp:Button  and in code-behind check SelectedItems.Count() it gives me 2 instead of 1.
Is there some work-around that will give me correct count, before this is fixed?

Thanks!
Kamen Bundev
Telerik team
 answered on 16 Feb 2010
2 answers
285 views
Please see attached files as I took screenshots of the code blocks. As i mentioned in the title, when I call ajaxRequest function radgrid losing its selected states.

thanks

Cem
Cem Sisman
Top achievements
Rank 1
 answered on 16 Feb 2010
2 answers
133 views
Want results of single column of values, say topics, the results would yield 50 records  how do I show those results in multiple columns spanning accross the page.  Show maximum of 10 results in first column and then 10 in 2nd and so on, spaced evenly accross the page with maximum of say 5 columns per page (5 columns 10 items each column) then in grid (set to 50 records) would have a next page to display records 51-100  ect...  
Example

data1        data11       data21        data31       data41
data2        data12       data22        data32       data42
data3        data13       data23        data33       data43
...              ....              .....              ....              .....
TippCityTom
Top achievements
Rank 1
 answered on 16 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?