This is a migrated thread and some comments may be shown as answers.

[Solved] Want Droping List In Rad Grid Filter (default)

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 03 Aug 2009, 08:24 AM
Hello Sir ,

 Is it possible to load the list in Radgrid Item by column If my grid contains 3 column
one Emp Name EmpNo Marks

i want
EmpName        EmpNo         Marks
Rahul               1                       45  
xyz                     7                     34  
pqr                   3                       232
skks               4                          34

and i bind this data to radgrid using databind through codebehined. And i want to show the drop down list to every column but in column 3rd Marks columns that time marks is 34 repteted two times that time it will added automatically added once time. 

 I dont want to add the Filter template option ,, Is any thing is happen with defalut filter textbox, when it focus out it will drop the list automatically  load the list of current column

Kindley please help how to achive this functionality ?


2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Aug 2009, 06:25 AM
Hi rahul,

There are two options for this functionality.
The first is to use a template column. The other option is to use a standard gridDropDown column, and keep the items in edit mode, so that the dropdown(s) are visible.
I hope one of these options is suitable for you.

Regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
M
Top achievements
Rank 1
answered on 02 Sep 2009, 08:59 PM
errr...keep the items in Edit Mode?  That sounds perfect!  I didn't even know that was possible.

How would one go about doing this (eg. so that ALL rows are in edit mode, each showing their respective dropdownbox - so that they are changeable WITHOUT having to go into edit mode)?

I would imagine we'd have to loop through each row, set edit mode to true, and make sure that the rows use "inLine" edit mode.  A little code from Telerik would be great!


EDIT: oh I found something at: http://www.telerik.com/help/aspnet-ajax/grddefaulteditmodeforgriditemsoninitialload.html

The idea is to set AllowMultiRowEdit = "True"

then, on rg_prerender...

 

 

 Private Sub myRadGrid_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles myRadGrid.PreRender  
        If Not IsPostBack Then  
            For Each item As GridItem In myRadGrid.MasterTableView.Items  
                If TypeOf item Is GridEditableItem Then  
                    Dim editableItem As GridEditableItem = CType(item, GridDataItem)  
                    editableItem.Edit = True 
                End If  
            Next  
        End If  
    End Sub 

Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Yavor
Telerik team
M
Top achievements
Rank 1
Share this question
or