Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
3.4K+ views
This one had me going for 3 days.
"Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."  This message would show up in the Visual Studio IDE in design windows with any Telerik control.

Hopefully, my experiences will save others some time.

The root-cause of this messagewas that the system was looking for .net 2 dlls when the project is .net35.

Telerik's support kept on advising me to make sure my project was actually .net 3.5.  It was. My project is three tier, and all modules at each of the three levels was set for a 3.5 build.

The problem persisted.  The Telerik.web.ui.dll in the bin folder was removed and the references added again, ensuring that they were from the Telerik bin35 folder.
The tools were removed and re-added, again ensuring that they were from the Telerik bin35 folder.  All would work correctly for a while (say an hour) and then the Telerik.web.ui.dll in the bin folder would mysteriously become the .net 2 version.  The refresh file and tools would remain pointing at the bin 35 version.

All very confusing.

The issue causing this problem was that in my middle tier (business logic) I had included a helper class to support the Telerik TreeView control, and had a reference in there to the Telerik.web.ui.dll.  That reference was to the wrong folder (bin as opposed to bin 35).

Every time I built the web-site the complier would find this reference at the lower level and silently replace the Telerik.Web.ui.dll at the higher level.  No warnings, no questions, just replaced the dll. Sneeky, huh!


 
Hari
Top achievements
Rank 1
 answered on 12 May 2009
4 answers
166 views
Hi

At my project, I'm showing my data as like hierarchical structure. My grid has summary and detail. When I click "+" on one of the row of the summary I can see the detail rows of that summary and then all the "+" are gone and cannot see the detail for other summery rows. Another scenario also happen like that when I click on next page.


Regards,
Phyoe


Phyoe Khaing
Top achievements
Rank 1
 answered on 12 May 2009
0 answers
130 views
Hi
I am using Rad tool bar in my code and the javascript is in aspx page.  I want to move that code to either Code behind or to other Javascript file.  But when i tried copying code to code behind its giving error.  The event is not firing..

This is how i am using the Code and I want to move the javascript to Code behind.  

<rad:radtoolbar AutoPostBack="true" runat="server" id="tbStudentRequirement" skin="office2007" UseFadeEffect="True">
<items>
<rad:radtoolbarbutton Width="75px" ID="tbbtnEdit" AccessKey="i" Tooltip="Edit(Alt+I)"  CommandName="Edit" ButtonImage="Edit.gif" ButtonText="Edit" Hidden="False" runat="server" DisplayType="textImage" />
</items>
</rad:radtoolbar>

Javascript in aspx page

<script language="javascript" type="text/javascript"> 

<%= tbDebtRequirement.ClientID %>.attachEvent("OnClientClick","ToolBarEvents");

function ToolBarEvents(sender, e)
{
if (sender.CommandName == "Edit")
{
  if (!CheckComplexItemforEdit("Student"))
     {
return false;
     }
EditPopUp("ManageStudent.aspx?ID=" + document.getElementById("selectedID").value,"wndManageStudent");
return false;
}
}


thanks
Siva Kumar KB
siva
Top achievements
Rank 1
 asked on 12 May 2009
0 answers
132 views
Hi
I am using Rad tool bar in my code and the javascript is in aspx page.  I want to move that code to either Code behind or to other Javascript file.  But when i tried copying code to code behind its giving error.  The event is not firing..

This is how i am using the Code and I want to move the javascript to Code behind.  

<rad:radtoolbar AutoPostBack="true" runat="server" id="tbStudentRequirement" skin="office2007" UseFadeEffect="True">
<items>
<rad:radtoolbarbutton Width="75px" ID="tbbtnEdit" AccessKey="i" Tooltip="Edit(Alt+I)" CommandName="Edit" ButtonImage="Edit.gif" ButtonText="Edit" Hidden="False" runat="server" DisplayType="textImage" />
</items>
</rad:radtoolbar>

Javascript in aspx page

<script language="javascript" type="text/javascript"> 

<%= tbDebtRequirement.ClientID %>.attachEvent("OnClientClick","ToolBarEvents");

function ToolBarEvents(sender, e)
{
if (sender.CommandName == "Edit")
{
 if (!CheckComplexItemforEdit("Student"))
    {
return false;
    }
EditPopUp("ManageStudent.aspx?ID=" + document.getElementById("selectedID").value,"wndManageStudent");
return false;
}
}
siva
Top achievements
Rank 1
 asked on 12 May 2009
1 answer
95 views
Hi,

I have a column named "Price" on the grid and i want to change the color of the cell of this column depending upon the condition.

if row(n)column("Price")<=60 then
row(n)column("Price").Backcolor="REd"
elseif row(n)column("Price")>60 and <=90 then
row(n)column("Price").Backcolor="blue"
elseif row(n)column("Price")>90 a then
row(n)column("Price").Backcolor="green"

Thanks.
Princy
Top achievements
Rank 2
 answered on 12 May 2009
4 answers
205 views
I have an application in which we are using the treeview to add nodes to existing nodes that already have children.  When dropping or adding a node, the node that is added is appended to the end of the nodes collection.  I need to be able to sort the collection after add or drop alphabetically by the node text property.

Any ideas on how to do this?

I see that the ASP.NET treeview has a sort property that prometheus does not have.

Please advise...

Thanks,

Terry Webster
Chief Technology Architect
Highmark Technology

Ramachandra Ekbote
Top achievements
Rank 1
 answered on 12 May 2009
0 answers
90 views

Thread deleted.

G S S
Top achievements
Rank 1
 asked on 11 May 2009
1 answer
107 views
Hi, I have upgraded my radcontrols to asp .net AJAX Q3 2008 package. This morning, I decided to upgrade my old custom menu navigation control based on asp .net Q2 radmenu to asp .net AJAX control using this new AJAX package.
The problem raised when I tried to extend this radmenu ajax control. 

I created new AJAX server control under VS2008, then I changed this signature as follows

public

 

class ServerControl1 : RadMenu,IScriptControl
{}

After I compiled this, it throws me an exception that a xml reference is needed. After I added the reference of System.Xml, the error was gone. Unfortunately when I tried to drag this control on a page, another formatetc error came up.

I wonder how I can extend AJAX radcontrols under VS2008 so that I can use this customize control throughout web applications. Can you provides me some ideas or some other specific examples?

Han
Top achievements
Rank 1
 answered on 11 May 2009
2 answers
125 views

Hello,

I have added custom dropdown box's to RAD Edito, it works fine, but scroll bar is not visible.
I am able to see Scroll bar in Trial verstion, but not purchased verstion.

My Code:

 

EditorToolGroup

 

dynamicToolbar = new EditorToolGroup();

 

dynamicToolbar.Tag =

"ABC";

 

 

bool isFound = false;

 

 

EditorToolGroupCollection rdGrp = rdDesignEdit.Tools;

 

 

for (int iIndex = 0; iIndex < rdGrp.Count; iIndex++)

 

{

 

if (rdGrp[iIndex].Tag.Equals("ABC"))

 

{

dynamicToolbar = rdGrp[iIndex];

isFound =

true;

 

 

break;

 

}

}

 

for (int i = 0; i < dynamicToolbar.Tools.Count; i++)

 

{

dynamicToolbar.Tools[i].Visible =

false;

 

dynamicToolbar.Tools.RemoveAt(i);

}

 

EditorDropDown EditorDropDownPlaceHolder = GetPlaceHoldesDropDownForRADEditor();

 

dynamicToolbar.Tools.Add(EditorDropDownPlaceHolder);

 

if (!(isFound))

 

{

rdDesignEdit.Tools.Add(dynamicToolbar);

}

 

When I look at CSS properties for dropdown box Class "Telerik rade_dropDownBody" has Overflow = Hidden. If a dropdown box has more then 50 items i cant see scroll bars, I am not able to change this property as well, bcz I cant find any CSS Files.

Please suggest me on this.

Thank you,
Sree



Thank you,
Sreedhar

sree
Top achievements
Rank 1
 answered on 11 May 2009
1 answer
134 views
hello to all expert
 
                 Good Day ! i try to follow the again the document on setting a radcombobox inside the grid and also in the source by making a custom template for combobox..

here my source codes in intire grid

<%@ Page Language="C#" MasterPageFile="~/IBOSMaster.Master" AutoEventWireup="true" CodeBehind="CARDTL.aspx.cs" Inherits="IBOS.CAR.CARDTL" Title="CAR DTL" %> 
<%@ MasterType VirtualPath="~/IBOSMaster.master" %> 
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<%@ Register Namespace="RadGrid" TagPrefix="custom" %>    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">  
 
     <table style="width: 846px">  
        <tr> 
        </tr> 
        <tr> 
            <td style="width: 805px">  
                <table width="100%">  
                    <tr> 
                        <td style="width: 49px">  
                            <asp:Label ID="Label2" runat="server" CssClass="captionField" Text="DATE :" Width="52px"></asp:Label></td>  
                        <td style="width: 154px">  
                            <telerik:RadDatePicker ID="rdDate" runat="server" MinDate="1900/1/1" Width="150px" Skin="Default2006" AutoPostBack="True" OnSelectedDateChanged="rdDate_SelectedDateChanged">  
                                <DateInput runat="server"   LabelCssClass="radLabelCss_Default2006" Skin="Default2006" AutoPostBack="True">  
                                </DateInput> 
                                <Calendar runat="server"   Skin="Default2006" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                    ViewSelectorText="x">  
                                </Calendar> 
                                <DatePopupButton CssClass="radPopupImage_Default2006" /> 
                            </telerik:RadDatePicker> 
                            &nbsp;  
                              
                           </td> 
                        <td style="width: 41px">  
                                        <asp:LinkButton ID="LinkButton1" runat="server" CssClass="captionField" Width="57px">SEARCH :</asp:LinkButton></td>  
                        <td style="width: 34px">  
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Search-002.png" /> 
                        </td> 
                        <td style="width: 23px">  
                                        <asp:LinkButton ID="lnkViewSetting" runat="server" CssClass="captionField" OnClick="lnkViewSetting_Click1" Width="98px">VIEW SETTINGS :</asp:LinkButton></td>  
                        <td style="width: 33px">  
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Control2-002.png" /> 
                        </td> 
                        <td style="width: 37px">  
                                        <asp:Label ID="Label1" runat="server" 
                                            Text="LINE :" CssClass="captionField" Width="33px"></asp:Label></td>  
                        <td style="width: 41px">  
                            <telerik:RadComboBox ID="rcbLine" runat="server" AutoPostBack="False" CssClass="textContent" 
                                            Skin="Office2007" Width="87px" OnSelectedIndexChanged="rcbLine_SelectedIndexChanged">  
                                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                        </telerik:RadComboBox> 
                        </td> 
                        <td style="width: 2px">  
                        </td> 
                        <td> 
                        </td> 
                    </tr> 
                </table> 
            </td> 
        </tr> 
        <tr style="font-size: 12pt" align = "left">  
            <td style="width: 805px">  
                <asp:Panel ID="pnlGrid" runat="server" Height="520px" ScrollBars="Auto" Width="837px">  
                  
                      
                     
 
                      
                    <telerik:RadGrid runat="server"  AutoGenerateColumns="False" ID="dgDTL" OnNeedDataSource = "dgDTL_NeedDataSource" 
                    Skin="WebBlue" AllowFilteringByColumn="True" AllowSorting="True" PageSize="15"   
                    ShowStatusBar="True" ShowFooter="True" AllowMultiRowSelection = "True" AllowPaging ="True" 
                    GridLines="None" OnItemDataBound="dgDTL_ItemDataBound" Font-Names = "Tahoma" OnItemCreated="dgDTL_ItemCreated" OnColumnCreating="dgDTL_ColumnCreating" OnItemCommand="dgDTL_ItemCommand" En> 
                        <PagerStyle Mode="NextPrevAndNumeric" /> 
                        <MasterTableView DataKeyNames ="fxISTResponseKey">  
                            <HeaderStyle Width="150px" /> 
                            <RowIndicatorColumn Visible="True">  
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                              
                            <Columns>    
                              
                            <telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">  
                            </telerik:GridClientSelectColumn>                        
                            <telerik:GridBoundColumn Visible = "False" DataField="fxMemberKeyISS" HeaderText="ISSUER" SortExpression="fxMemberKeyISS" UniqueName="fxMemberKeyISS" Aggregate="Count">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn  DataField="IssBank" HeaderText="ISSUER" SortExpression="IssBank" UniqueName="IssBank">  
                                
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn Visible = "False" DataField="fxMemberKeyACR" HeaderText="ACQUIRER" SortExpression="fxMemberKeyACR" UniqueName="fxMemberKeyACR" Aggregate="Count">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="AcqBank" HeaderText="ACQUIRER" SortExpression="AcqBank" UniqueName="AcqBank">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="TRF" HeaderText="TRF" SortExpression="TRF" UniqueName="TRF">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fnTerminalNumber" HeaderText="TERM NO" SortExpression="fnTerminalNumber" 
                                UniqueName="fnTerminalNumber">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fnTraceNumber" HeaderText="TRACE NO. ISSUER/ACQUIRER/TRF" SortExpression="fnTraceNumber" 
                                UniqueName="fnTraceNumber">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fnCardNumber" HeaderText="CARD NO." SortExpression="fnCardNumber" 
                                UniqueName="fnCardNumber">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fcPCode" HeaderText="TRANS TYPE" SortExpression="fcPCode" 
                                UniqueName="fcPCode" Visible = "False">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fcTransTypeName" HeaderText="TRANS TYPE" SortExpression="fcTransTypeName" 
                                UniqueName="fcTransTypeName">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridDateTimeColumn DataField="fdTransDate" HeaderText="DATE" SortExpression="fdTransDate"    
                                DataFormatString="{0:d}" UniqueName="fdTransDate" > 
                            </telerik:GridDateTimeColumn > 
                  
                      
                            <telerik:GridBoundColumn DataField="fdTransTime" HeaderText="TIME" SortExpression="fdTransTime" 
                                DataFormatString="{0:T}" UniqueName="fdTransTime">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fxISTResponseKey_Res" HeaderText="TRAN CLASSF" SortExpression="fxISTResponseKey_Res" 
                                UniqueName="fxISTResponseKey_Res" Visible="False">  
                            </telerik:GridBoundColumn> 
                              
//i'm having error here object not set to instance of an object                           
<custom:MyCustomFilteringColumn DataField="fcISTResponseMsg" HeaderText="TRAN CLASSF" UniqueName="fcISTResponseMsg"/>  
                              
                              
                              
                            <telerik:GridBoundColumn DataField="fcISTResponseMsg" HeaderText="TRAN CLASSF" SortExpression="fcISTResponseMsg" 
                                UniqueName="fcISTResponseMsg">  
                            </telerik:GridBoundColumn> 
                                 
                          
 
                            <telerik:GridBoundColumn DataField="fnAccountNumFrom" HeaderText="ACCOUNT FROM" SortExpression="fnAccountNumFrom" 
                                UniqueName="fnAccountNumFrom">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="fnAccountNumTo" HeaderText="ACCOUNT TO" SortExpression="fnAccountNumTo" 
                                UniqueName="fnAccountNumTo">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridNumericColumn  DataField="fnTransAmount" DataType="System.Decimal" HeaderText="AMOUNT" SortExpression="fnTransAmount" 
                                UniqueName="fnTransAmount" Aggregate ="Sum" NumericType="Number">  
                                <FooterStyle Font-Bold="True" /> 
                            </telerik:GridNumericColumn> 
                            <telerik:GridNumericColumn  DataField="fnTransFee" DataType="System.Decimal" HeaderText="FEES" SortExpression="fnTransFee" 
                                UniqueName="fnTransFee" NumericType="Number">  
                                <FooterStyle Font-Bold="True" /> 
                            </telerik:GridNumericColumn> 
                            <telerik:GridNumericColumn  DataField="fnAmountReverse" DataType="System.Decimal" HeaderText="AMOUNT REVERSE" SortExpression="fnAmountReverse" 
                                UniqueName="fnAmountReverse" Aggregate ="Sum" NumericType="Number">  
                                <FooterStyle Font-Bold="True" /> 
                            </telerik:GridNumericColumn> 
                            <telerik:GridNumericColumn  DataField="fnAmountDispense" DataType="System.Decimal" HeaderText="AMOUNT DISPENSE" 
                                SortExpression="fnAmountDispense" UniqueName="fnAmountDispense" Aggregate ="Sum" NumericType="Number">  
                                <FooterStyle Font-Bold="True" /> 
                            </telerik:GridNumericColumn> 
                            <telerik:GridNumericColumn  DataField="fnAmountRecon" DataType="System.Decimal" HeaderText="RECON AMOUNT" SortExpression="fnAmountRecon" 
                                UniqueName="fnAmountRecon" Aggregate ="Sum" NumericType="Number">  
                                <FooterStyle Font-Bold="True" /> 
                            </telerik:GridNumericColumn> 
                 
                            <telerik:GridBoundColumn DataField="fxTransStatusKey" HeaderText="STATUS" SortExpression="fxTransStatusKey" 
                                UniqueName="fxTransStatusKey">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn DataField="fxDTLRemarksKey" HeaderText="REMARKS" SortExpression="fxDTLRemarksKey" 
                                UniqueName="fxDTLRemarksKey">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn DataField="fxChannelKey" HeaderText="CHANNEL" SortExpression="fxChannelKey" 
                                UniqueName="fxChannelKey">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn DataField="fcMsgNumber" HeaderText="fcMsgNumber" SortExpression="fcMsgNumber" 
                                UniqueName="fcMsgNumber" Visible ="False">  
                            </telerik:GridBoundColumn> 
                              
                            <telerik:GridBoundColumn DataField="fxISTResponseKey_Rev" HeaderText="fxISTResponseKey_Rev" SortExpression="fxISTResponseKey_Rev" 
                                UniqueName="fxISTResponseKey_Rev" Visible ="False">  
                            </telerik:GridBoundColumn> 
                                    
                                   
                                      
 
                        </Columns> 
                          
                        </MasterTableView> 
                        <ClientSettings AllowColumnsReorder="True" AllowKeyboardNavigation="True" ReorderColumnsOnClient="True">  
                            <Selecting AllowRowSelect="True" /> 
                            <Resizing AllowColumnResize="True" AllowRowResize="True" /> 
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="1">  
                            </Scrolling> 
                        </ClientSettings> 
                        <FilterMenu EnableTheming="True" Skin="Vista">  
                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                        </FilterMenu> 
                    </telerik:RadGrid></asp:Panel> 
            </td> 
        </tr> 
        <tr style="font-size: 12pt">  
            <td style="width: 805px">  
                <div align = "right">  
                    &nbsp;  
                    <asp:Button ID="btnUndo" runat="server" CssClass="captionField" Text="UNDO" OnClick="btnUndo_Click" Width="135px" /> 
                    <asp:Button ID="btnCommitChanges" runat="server" CssClass="captionField" Text="COMMIT CHANGES" OnClick="btnCommitChanges_Click" /></div></td> 
        </tr> 
        <tr style="font-size: 12pt">  
            <td style="width: 805px">  
                <table width="100%">  
                    <tr> 
                        <td> 
                            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
                                <AjaxSettings> 
                                   <telerik:AjaxSetting AjaxControlID="dgDTL">  
                                            <UpdatedControls> 
                                                <telerik:AjaxUpdatedControl ControlID="dgDTL" /> 
                                            </UpdatedControls> 
                                        </telerik:AjaxSetting> 
                                        <telerik:AjaxSetting AjaxControlID="clrFilters">  
                                            <UpdatedControls> 
                                                <telerik:AjaxUpdatedControl ControlID="dgDTL" /> 
                                                <telerik:AjaxUpdatedControl ControlID="clrFilters" /> 
                                            </UpdatedControls> 
                                        </telerik:AjaxSetting> 
                                </AjaxSettings>   
                            </telerik:RadAjaxManager> 
                            <telerik:RadMenu ID="mnuDTL" runat="server" OnItemClick="mnuDTL_ItemClick" Skin="WebBlue">  
                                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                            </telerik:RadMenu> 
                            &nbsp;</td> 
                    </tr> 
                </table> 
 
            </td> 
        </tr> 
    </table> 
 
 
</asp:Content> 
 
and here's my class

using System.Data.SqlClient;    
using System.Data;  
using Telerik.Web.UI ;  
using System.Web.UI.WebControls;  
using System.Web.UI;  
using System;  
using System.Collections;  
 
namespace RadGrid  
{  
    public class MyCustomFilteringColumn: GridBoundColumn   
    {  
        //Properties for boolean/checkbox dropdown    
        //public string TrueText { get;set;}  
        //public string FalseText { get; set; }  
 
        private object listDataSource = null;  
 
        //RadGrid will call this method when it initializes the controls inside the filtering item cells    
        protected override void SetupFilterControls(TableCell cell)  
        {  
            base.SetupFilterControls(cell);  
            cell.Controls.RemoveAt(0);  
 
            System.Web.UI.WebControls.DropDownList list = new System.Web.UI.WebControls.DropDownList();  
            list.ID = "list" + this.DataField;  
 
            list.Height = Unit.Pixel(300);  
            list.AutoPostBack = true;  
 
            list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);  
 
            cell.Controls.AddAt(0, list);  
            cell.Controls.RemoveAt(1);  
 
            //If boolean, assume CHECKBOX    
            if (this.DataType.ToString() == "System.Boolean")  
            {  
                DataTable dtBool = new DataTable();  
                dtBool.Columns.Add(this.DataField, Type.GetType("System.Boolean"));  
                dtBool.Columns.Add("description", Type.GetType("System.String"));  
 
                //Blank row    
                DataRow drBlank = dtBool.NewRow();  
                drBlank["description"] = "";  
                dtBool.Rows.Add(drBlank);  
 
                ////Checked row    
                //DataRow drTrue = dtBool.NewRow();  
                //drTrue["description"] = TrueText;  
                //drTrue[this.DataField] = 1;  
                //dtBool.Rows.Add(drTrue);  
 
                ////Unchecked row    
                //DataRow drFalse = dtBool.NewRow();  
                //drFalse["description"] = FalseText;  
                //drFalse[this.DataField] = 0;  
                //dtBool.Rows.Add(drFalse);  
 
                list.DataSource = dtBool;  
                list.DataTextField = "description";  
                list.DataValueField = this.DataField;  
                list.DataBind();  
 
            }  
            else  
            {  
                list.DataTextField = this.DataField;  
                list.DataValueField = this.DataField;  
 
                list.DataSource = this.ListDataSource;  
                list.DataBind();  
            }  
 
        }  
 
        void list_SelectedIndexChanged(object sender, EventArgs e)  
        {  
            GridFilteringItem filterItem = (sender as DropDownList).NamingContainer as GridFilteringItem;  
 
            this.SelectedValue = (sender as DropDownList).SelectedValue;  
            thisthis.FilteredColumnName = this.UniqueName;  
 
            if (this.UniqueName == "Index" || this.DataType.ToString() == "System.Boolean")  
            {  
                //this is example for filtering for integer column type    
                filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));  
            }  
            //filtering for string column type    
            filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));  
 
        }  
        public object ListDataSource  
        {  
            get  
            {  
                return this.listDataSource;  
            }  
            set  
            {  
                listDataSource = value;  
            }  
        }  
        public string SelectedValue  
        {  
            get  
            {  
                object res = this.Owner.OwnerGrid.Page.Session["SelectedValue"];  
                if (res != null)  
                {  
                    return (string)res;  
                }  
                return "";  
            }  
            set  
            {  
                this.Owner.OwnerGrid.Page.Session["SelectedValue"] = value;  
            }  
        }  
        public string FilteredColumnName  
        {  
            get  
            {  
                object res = this.Owner.OwnerGrid.Page.Session["FilteredColumnName"];  
                if (res != null)  
                {  
                    return (string)res;  
                }  
                return "";  
            }  
            set  
            {  
                this.Owner.OwnerGrid.Page.Session["FilteredColumnName"] = value;  
            }  
        }  
        //RadGrid will call this method when the value should be set to the filtering input control(s)    
        protected override void SetCurrentFilterValueToControl(TableCell cell)  
        {  
            base.SetCurrentFilterValueToControl(cell);  
 
            System.Web.UI.WebControls.DropDownList list = (System.Web.UI.WebControls.DropDownList)cell.Controls[0];  
            if (this.CurrentFilterValue != string.Empty)  
            {  
                list.SelectedValue = this.CurrentFilterValue;  
            }  
        }  
 
        //RadGrid will call this method when the filtering value should be extracted from the filtering input control(s)    
        protected override string GetCurrentFilterValueFromControl(TableCell cell)  
        {  
            System.Web.UI.WebControls.DropDownList list = (System.Web.UI.WebControls.DropDownList)cell.Controls[0];  
 
            return list.SelectedValue;  
        }  
        public override GridColumn Clone()  
        {  
            return base.Clone();  
        }  
        protected override string GetFilterDataField()  
        {  
            return this.DataField;  
        }  
 
    }    
 
   }  
   
 
 
please help i cant configure what happen..

sample codes is highly appreciated
Sebastian
Telerik team
 answered on 11 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?