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

How add GridDropDownColumn

15 Answers 382 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ang
Top achievements
Rank 1
ang asked on 15 Jan 2008, 02:37 PM

Somebody may explain me how add a

GridDropDownColumn in the designer?

In the property builder I don't see any column type diffrente from:

boundColumn, buttonColumn, hyperLinkColumn and templateColumn.

Thanks, angdrak

15 Answers, 1 is accepted

Sort by
0
ang
Top achievements
Rank 1
answered on 15 Jan 2008, 03:11 PM
In the columns editor of the masterTableview, the down arrow in the Add button, is not visible and clicking it, allways get the error
not possible to create an instance of Telerik.Web.UI.gridcolumn because is an abstract class.

Angdrak
0
Vlad
Telerik team
answered on 15 Jan 2008, 03:16 PM
Hello Angdrak,

This problem is already fixed and the service pack will be available for download today.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
maz
Top achievements
Rank 1
answered on 15 Jan 2008, 05:02 PM
Ok thank you, I have seen that the sp1 is already avaiable for radcontrols, bur I am using prometheus. I hope that sp1 will be avaiable soon.

Hi, Angdrak
0
Jeff
Top achievements
Rank 1
answered on 15 Jan 2008, 06:21 PM
Angdrak,
    The download became available about an hour ago.

Jeff
0
ang
Top achievements
Rank 1
answered on 16 Jan 2008, 11:54 AM
Hi, I downloaded and reinstalled the new rad prometheus, but now in visual studio 2005 designer in components places get a box with the "error during control creation tag server telerik.radmenu unknown".
I already tried to delete and recreate the reference to the dll, but without any effect.

Wath to do?

Thanks, Angdrak
0
Peter
Telerik team
answered on 16 Jan 2008, 05:12 PM
Hello Ang,

Could you please make sure that the Telerik.Web.Design.dll file (in the bin or GAC) is of the same version as the Telerik.Web.UI.dll file?


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ang
Top achievements
Rank 1
answered on 17 Jan 2008, 10:08 AM
Hi, I have found wath the problem was, for some obscure reason VS2005 does not ever update correcty the web.config file when you add a reference. So putting that manually solve the problrm.

Now where may I find some sample on the griddropdown column settings.

Thanks,  Andrak
0
Sebastian
Telerik team
answered on 17 Jan 2008, 11:17 AM
Hi ang,

Review the screenshot from this forum post which can put you on the right path:

http://www.telerik.com/community/forums/thread/b311D-baaddc.aspx

Additional information about how to configure/customize GridDropDownColumn you can find here:

http://www.telerik.com/help/radcontrols/prometheus/?grdCustomizeConfigureGridDropDownColumn.html

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ang
Top achievements
Rank 1
answered on 18 Jan 2008, 10:44 AM
Ok, thanks now the column works and update the DB column too, but allways show the first item of the list. How get the selected item be syncronized with value of DB?

AngDrak
0
Prangadj
Top achievements
Rank 1
answered on 18 Jan 2008, 11:25 AM
ang, if you set up the column as told in the help article it should display the correct selection from the DB. You will get only the first item in the list if you did not do that or the relations between the key fields for the grid and the dropdown column are not valid.

Prangadj
0
ang
Top achievements
Rank 1
answered on 18 Jan 2008, 12:39 PM
Maybe I am wronging something, but cannot figure wath.
I send you a part of my aspx, may you kindly help me?

is a simple lookup from the CUST table using CUST_COUNTRY on the COUNTRY table, that has COUNTRY_ID as Primary key and COUNTRY_DESCR as description.

                <telerik:GridDropDownColumn CurrentFilterFunction="NoFilter" DataField="CUST_COUNTRY"
                    DataSourceID="SDSCOUNTRY" FilterListOptions="VaryByDataType" ForceExtractValue="None"
                    ListTextField="COUNTRY_DESCR" ListValueField="COUNTRY_ID" UniqueName="column1">
                </telerik:GridDropDownColumn>

.............>

   <asp:SqlDataSource ID="SDSCust" runat="server" ConnectionString="<%$ ConnectionStrings:benConnectionString %>"
        SelectCommand='SELECT * FROM "TR_CUST"'
   </asp:SqlDataSource>

   <asp:SqlDataSource ID="SDSCountry" runat="server" ConnectionString="<%$ ConnectionStrings:benConnectionString %>"
    ProviderName="<%$ ConnectionStrings:benConnectionString.ProviderName %>"
    SelectCommand='SELECT "COUNTRY_ID", "COUNTRY_DESCR" FROM "SHARED_COUNTRY" ORDER BY "COUNTRY_DESCR"'></asp:SqlDataSource>

Thank you for help,  Angdrak
0
Prangadj
Top achievements
Rank 1
answered on 21 Jan 2008, 03:12 PM
AngDrak, do you have primary -> foreign key relation between a field in the grid's source table and the COUNTRY_ID field from the SHARED_COUNTRY table? Read once again the topic from the docs named Customize/Configure GridDropDownColumn and have in mind these relation when setting up the column.

Prangadj
0
ang
Top achievements
Rank 1
answered on 21 Jan 2008, 05:44 PM
Yes, it is so. And I setted the dropDownColumn properties in the  following way:
DataSourceID="SDSCOUNTRY" (SQLDataSource of SharedCountry Table)
DataField="CUST_COUNTRY" (Foreign key from Cust Table to     Shared_Country)
ListValueField="COUNTRY_ID"  (Primary key column in shared_country table)
ListTextField="COUNTRY_DESCR" (Country description in shared_country table, that I want list in dropDownColumn)?

There is somthing wrong in the above settings?

Thanks, Angdrak

0
Prangadj
Top achievements
Rank 1
answered on 22 Jan 2008, 09:09 AM
Check that CUST_COUNTRY and COUNTRY_ID are of the same data type and they are equal (no empty spaces for values in them). The other part looks fine to me.

Prangadj
0
ang
Top achievements
Rank 1
answered on 22 Jan 2008, 10:18 AM
You Have seen  rigth, was a different lenght in the column definitions.

Thanks again, Angdrak
Tags
Grid
Asked by
ang
Top achievements
Rank 1
Answers by
ang
Top achievements
Rank 1
Vlad
Telerik team
maz
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
Peter
Telerik team
Sebastian
Telerik team
Prangadj
Top achievements
Rank 1
Share this question
or