How add GridDropDownColumn

16 posts, 0 answers
  1. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 15 Jan 2008 Link to this post

    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

  2. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 15 Jan 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jan 2008 Link to this post

    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
  5. maz
    maz avatar
    1 posts
    Member since:
    Apr 2007

    Posted 15 Jan 2008 Link to this post

    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
  6. Jeff
    Jeff avatar
    33 posts
    Member since:
    Sep 2006

    Posted 15 Jan 2008 Link to this post

    Angdrak,
        The download became available about an hour ago.

    Jeff
  7. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 16 Jan 2008 Link to this post

    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
  8. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Jan 2008 Link to this post

    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
  9. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 17 Jan 2008 Link to this post

    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
  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 17 Jan 2008 Link to this post

    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
  11. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 18 Jan 2008 Link to this post

    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
  12. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 18 Jan 2008 Link to this post

    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
  13. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 18 Jan 2008 Link to this post

    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
  14. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 21 Jan 2008 Link to this post

    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
  15. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 21 Jan 2008 Link to this post

    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

  16. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 22 Jan 2008 Link to this post

    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
  17. ang
    ang avatar
    13 posts
    Member since:
    Jan 2008

    Posted 22 Jan 2008 Link to this post

    You Have seen  rigth, was a different lenght in the column definitions.

    Thanks again, Angdrak
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017