Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views

I currently have this.

<

asp:DropDownList ID="ddlSupportedLangs" runat="server" Style="z-index: 108; left: 300px;

position: absolute; top: 158px"

Width="150px" DataSourceID="sdsLanguages" DataTextField="LanguageName" DataValueField="LanguageID" OnSelectedIndexChanged="ddlSupportedLangs_SelectedIndexChanged" AutoPostBack="True" CausesValidation="True" ValidationGroup="langChange" AppendDataBoundItems="True" TabIndex="2">

<asp:ListItem Text="Choose Language" />

</asp:DropDownList>

I would like to have something similar excepting using the new Q1 2008 asp.net AJAX radcombo box... I tried this...

<

telerik:RadComboBox ID="ddlSupportedLangs" runat="server" Style="z-index: 108; left: 300px;

position: absolute; top: 158px"

Width="150px" DataSourceID="sdsLanguages" DataTextField="LanguageName" DataValueField="LanguageID" OnSelectedIndexChanged="ddlSupportedLangs_SelectedIndexChanged" AutoPostBack="True" ValidationGroup="langChange" AppendDataBoundItems="True" TabIndex="2">

<CollapseAnimation Duration="200" Type="OutQuint" />

<asp:ListItem Text="Choose Language" />

</telerik:RadComboBox>

and it failed. because <asp:ListItem > is not the right tag to use for a telerik:RadComboBox. Does anyone know how to fix this?

thanks,
Josh

Rosi
Telerik team
 answered on 05 May 2008
1 answer
121 views
hiya,
I've downloaded the latest version and I get 30 errors when building  among others:

  Could not load file or assembly 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Error    107    Type 'RadComboBox' is not defined.  

What's happening?How can I get it to build?

Thanks,

yogi
Nikolay
Telerik team
 answered on 05 May 2008
5 answers
97 views
Every time i touch the design time part of my grid it re-adds the columns but formats them incorrectly, so my control doesn't appear correctly.  Once i delete these columns, it works fine.

The columns that are incorrectly put in there have Telerik.Web.UI.... instead of Telerik:.... Here is an example of what is being put in my columns:

<

Telerik.Web.UI.GridClientSelectColumn UniqueName="Select"></Telerik.Web.UI.GridClientSelectColumn>

<

Telerik.Web.UI.GridBoundColumn DataField="UserFirstName" HeaderText="First Name"

UniqueName="column2"></Telerik.Web.UI.GridBoundColumn>

<

Telerik.Web.UI.GridBoundColumn DataField="UserLastName" HeaderText="Last Name"

UniqueName="column3"></Telerik.Web.UI.GridBoundColumn>

Can someone help me fix this problem, it is irratating to keep deleting this text.

thanks

don
Konstantin Petkov
Telerik team
 answered on 05 May 2008
6 answers
187 views

Hi ,
I have a situation  like , getting the  content of the r.a.dGrid  into the dataset . But am not able to get this. can any one help me in this regard ?

Thanks in advance,

Manjunath

Shinu
Top achievements
Rank 2
 answered on 05 May 2008
1 answer
122 views
Hey everyone,

I'm trying to databind some elements to data to the Panel Bar in the following format:

  • Top Category 1
    • sub cat 1
    • sub cat 2
    • sub cat 1
    • sub cat 2
  • Top Category 2
But I haven't been able to find any resources in the help docs.  Could anyone point me in the right direction?  This is what I have so far:

                    <telerik:RadPanelBar ID="rpbMainNav" runat="server" DataTextField="Name" DataValueField="Id" OnItemDataBound="rpbMainNav_ItemDataBound" Skin="Web20" ExpandMode="SingleExpandedItem" PersistStateInCookie="True">
                        <CollapseAnimation Duration="100" Type="None" />
                        <ExpandAnimation Duration="100" Type="Linear" />                                               
                        <ItemTemplate>
                             <%# BuildStoreList(DataBinder.Eval(Container.DataItem, "Id")) %>
                        </ItemTemplate>
                    </telerik:RadPanelBar>

Thanks in advance!
Rosi
Telerik team
 answered on 05 May 2008
6 answers
268 views
I have placed a RadGrid in my pageview and I created a datable in my codebehind file and binded it with RadGrid. It displays the data. But problem is that I have to allow sorting for my first column only. How do I do that in my codebehind file.
Princy
Top achievements
Rank 2
 answered on 05 May 2008
2 answers
390 views
I am working on a web application.  My data comes in a complicated format thats why I save it to an array first and then I am creating a datatable so that I can bind it with my grid. Can you tell me how to make a datatable column a hyperlink. Following is not the actual code but logic is same
:
Code:
Dim id(2) As String Dim desc(2) As String 'declaring an array id(0) = "1" id(1) = "2" desc(0) = "Soccer" desc(1) = "Cricket" Dim dt As New Data.DataTable Dim dr As Data.DataRow Dim i As Integer dt.Columns.Add(New Data.DataColumn("ID", GetType(String))) dt.Columns.Add(New Data.DataColumn("Desc", GetType(String))) For i = 0 To (id.Length - 1) dr = dt.NewRow dr("ID") = id(i) dr("Desc") = desc(i) dt.Rows.Add(dr) Next RadGrid1.DataSource = dt RadGrid1.DataBind()


column "ID" has values in it, e.g. 1, 2, 3, etc., and I want the grid column to show hyperlinks, e.g. "order.aspx?id=1", "order.aspx?id=2", "order.aspx?id=3", etc. How do I do that. I have to use arrays.
Shinu
Top achievements
Rank 2
 answered on 05 May 2008
5 answers
190 views
I'm trying to override the grid header background color as well as the row selected color. I added this code:

<style type="text/css">

td.GridHeader_Web20 input

{

background:#133926;

}

.SelectedRow_Web20

{

background:#b7e2c6;

}

</style>

I must be missng something. Can you help me out?

Thanks,
Susan

Shinu
Top achievements
Rank 2
 answered on 05 May 2008
3 answers
150 views
i have this code that refresh the whole page:

Protected Sub btnRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnRefresh.Click

Response.Redirect(Page.Request.Url.ToString())

End Sub

I have a dropdownlist that display category and that if I select Toys category from the Dropdownlist it display the products in Toys category in the RADGrid. I would then update the product info thru a RADWindow and then close the RADwindow. At this point, i would click the refresh button to verify the updated info. But whenever I clicked the refresh button it refeshes the page and would bring me to Fruits category.  Fruits category is the default vaue in the SQLDataSource.

How do i refresh only the grid and that the Toys category remain?

L
Top achievements
Rank 1
 answered on 05 May 2008
3 answers
330 views
Hi:

I have an ajaxified RadGrid in which have AllowPaging=true and have added an ASP:CheckBox control within a GridTemplateColumn like so:

<telerik:GridTemplateColumn UniqueName="tagItem" AllowFiltering="false"             HeaderText="Tag">
        <ItemTemplate>
            <asp:CheckBox ID="CheckBox1"
            runat="server"
            AutoPostBack="true"
            OnCheckedChanged="Check_Changed" />
    </ItemTemplate>
</telerik:GridTemplateColumn>

When I use the pager to traverse to data, the state of the CheckBox(s).Checked property in a previous page is not maintained.

For example, if I am on Page 1 and I check a checkbox , go to Page 2 and then return to Page 1, the checkbox that I checked on Page 1 will no longer be checked.

It is really important that I be able to set as many checks in as many pages as I like and maintain check state throughout the grid.

Any help will be greatly appreciated.

Thanks in advance,
Bob Reselman
Nikita Gourme
Top achievements
Rank 1
 answered on 04 May 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?