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

[Solved] Radcombobox couldnot select & focus on selected item in VS 2010

10 Answers 122 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
chandu mahi
Top achievements
Rank 1
chandu mahi asked on 25 Aug 2010, 10:11 PM
hI,
I am uisng Telerik RadCombobox Q1 2009 latest version 2.8.8.0.

It works fine in vs 2005. When i migrate my project to vs 2010 i got an issue with Rad Combobox.

In vs 2010 loading with data when i am selecting listitem i can't see focus on items and When i click on any combobox item last index value is selecting. i can select combobox list item with keyboard arrows only from last index value  to first index value only.

I couldn't understand. what's wrong with the control in vs 2010.

Can you help me with above issue. i created test appllication with sample data in radcombobox.
 If you want to test application on your end i will attach the file.

10 Answers, 1 is accepted

Sort by
0
chandu mahi
Top achievements
Rank 1
answered on 07 Sep 2010, 05:28 PM
Hi Telerik team,
I need response from you as soon as possible..plz respond to my post.
0
Kalina
Telerik team
answered on 10 Sep 2010, 02:16 PM
Hi chandu mahi,


I am afraid that the Telerik RadComboBox Q1 2009 version 2.8.8.0 does not support .NET Framework 4.0.

Let me suggest you upgrade to our latest Telerik.Web.UI  version 2010.2.826.

All the best,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
chandu mahi
Top achievements
Rank 1
answered on 10 Sep 2010, 03:27 PM
Hi Kalina ,
 What you said is true.
Telerik RadComboBox Q1 2009 version 2.8.8.0 does not support . I came to know that when i am brwsoing on the forums.i couldn't understand how its showing the  Q1 2009 version 2.8.8 combobox in vs 2010.
When i tried latest Telerik  Q1 2009 Combobox in 2010  its not even adding the combobox to the page.
Long back i copied Telerik  Q1 2009 Combobox dll's . I added those dlls to my vs 2010 solution & tried. Its giving the output & not doing focus combo items.
In Vs 2010 i am using Q1 2009 Tabstrip, Date Picker , Telerik charts.
As you said I downloaded latest Telerik.Web.UI  version 2010.2.826.When i add this version of combobox to my project i am getting similar dll's exisisting like below. I am getting lots of charting 192  charting errors .
I Upgraded my project from 2005 to 2010. After that i am facing issue with teletik controls.
In one soultion its not allow to add Q1 2009 version dlls & Ajax dlls [i.e Telerik.web.UI]???

Error 193 Assembly 'Telerik.Web.UI, Version=2010.2.826.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'  

Error 7 The type 'Telerik.Charting.TextBlock' exists in both 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\e9c5b22d\006c81d0_7b44cb01\Telerik.Web.UI.DLL' and
 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\278bd80b\9c2e73bc_5944cb01\RadChart.Net2.DLL' c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\App_Web_01glqjau.0.cs 208 

How can i resolve my issue. I can use only Q1 vesion dlls or Ajax dlls? in one solution??
0
chandu mahi
Top achievements
Rank 1
answered on 10 Sep 2010, 03:28 PM
Please respond to my post as soon ass possible.
Based on your suggetion i need to change my project.
0
Kalina
Telerik team
answered on 15 Sep 2010, 05:16 PM
Hi chandu mahi,

Please add reference to Telerik.Web.UI 2010.2.826.20 instead of Telerik.Web.UI  2010.2.826.40.
Feel free to contact us again if the issue persists.

Regards,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
chandu mahi
Top achievements
Rank 1
answered on 15 Sep 2010, 09:29 PM
Hi ,
 As you suggested i added  Telerik.Web.UI 2010.2.826.20 in bin folder.  Now am getting below error message.
I am getting 192 error messages with RadChart.' The type 'Telerik.Charting.Styles.StyleTextBlock' exists in both Telerik.Web.UI.DLL'  RadChart.Net2.DLL''.

I tried by closing solution & Deleting Temporary Internet files & open the solution it automatically adding those files.
Why i am getting conflicts?? Can you Resolve my Issue.

Error 1 c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\App_Web_wqxpetpz.15.cs(189): error CS0433: The type 'Telerik.Charting.Styles.StyleTextBlock' exists in both 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\e9c5b22d\00ad51b0_7b44cb01\Telerik.Web.UI.DLL' and 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\278bd80b\9c2e73bc_5944cb01\RadChart.Net2.DLL'  

Error 2 The type 'Telerik.Charting.Styles.StyleTextBlock' exists in both 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\e9c5b22d\00ad51b0_7b44cb01\Telerik.Web.UI.DLL' and 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\278bd80b\9c2e73bc_5944cb01\RadChart.Net2.DLL' c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\App_Web_wqxpetpz.15.cs 189 

Error 3 The type 'Telerik.Charting.Styles.StyleExtendedLabel' exists in both 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\e9c5b22d\00ad51b0_7b44cb01\Telerik.Web.UI.DLL' and 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\278bd80b\9c2e73bc_5944cb01\RadChart.Net2.DLL' c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\App_Web_wqxpetpz.15.cs 199 

Error 4 The type 'Telerik.Charting.Styles.StyleTextBlock' exists in both 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\e9c5b22d\00ad51b0_7b44cb01\Telerik.Web.UI.DLL' and 'c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\assembly\dl3\278bd80b\9c2e73bc_5944cb01\RadChart.Net2.DLL' c:\Documents and Settings\ikx7\Local Settings\Temp\Temporary ASP.NET Files\ndiweb\016fe1d1\9a795f6f\App_Web_wqxpetpz.15.cs 215 
0
chandu mahi
Top achievements
Rank 1
answered on 15 Sep 2010, 10:08 PM
I Just  Excluded Radchart.net.dll & Build the solution it s not showing conflict errors i.e Exisists in both.
But My current chart doesn't work.

If  i use q1 2009 version chart  & Ajax controls  in one solution chart doesn't work ..? it conflicts both..?

0
Kalina
Telerik team
answered on 16 Sep 2010, 08:21 AM
Hello chandu mahi,

Please check this help article which explains how to deal with the described issue.
 
Greetings,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
chandu mahi
Top achievements
Rank 1
answered on 16 Sep 2010, 05:02 PM
Thanks for your respopnse.
Now i replaced q1 2009 combobox with Ajax combobox.
i got an silly issue with comboboxes. Initial value not getting selected. if i set it in  page load its getting selected.
i am using 4 comboboxes in current page.
For onc Combobbox initial value not getting seleted & Another one getting selected.
For other two comboboxes i am loading with same datasource. here one combobox Initial value getting selected , other one not getting selected.
 I couldn't understand the weired issues. Can you look at my code & suggest me ..i copied my code below.

<

 

 

telerik:RadComboBox runat="server" ID="radddlAppNo" Skin="Vista" Width="190px" Height="300px"

 

 

 

DataValueField="ApplicationNo"

 

 

 

DataTextField="ApplicationNo" AutoPostBack = "true"

 

 

 

ToolTip="Select Application No" TabIndex="1"

 

 

 

OnItemsRequested="radddlAppNo_ItemsRequested"

 

 

 

OnSelectedIndexChanged="radddlAppNo_OnSelectedIndexChanged"

 

 

 

AllowCustomText="true" MarkFirstMatch="true" ShowMoreResultsBox="true" >

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Selected="true" Text="-Type/Select Application No-" Value=""/>

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 


 

 

<telerik:RadComboBox runat="server" ID="radddlsearchNo" Skin="Vista" Width="160px"

 

 

 

SkinsPath="~/RadControls/ComboBox/Skins" DataValueField="SearchNo" Height="300px"

 

 

 

DataTextField="SearchNo" AutoPostBack = "true"

 

 

 

ToolTip="Select Search No" Text="- Select Search No -"

 

 

 

OnItemsRequested="radddlsearchNo_ItemsRequested"

 

 

 

TabIndex="3"

 

 

 

OnSelectedIndexChanged="radddlsearchNo_OnSelectedIndexChanged"

 

 

 

AllowCustomText="true" MarkFirstMatch="true" >

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Text="- select Search No -" Value=""/>

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 


 

 

<telerik:RadComboBox runat="server" ID="ddlbeginyod" ToolTip="Select Date Of Death Begin Year"

 

 

 

DataValueField="Years" DataTextField="Years"

 

 

 

Height="220px" Width="120px" Skin="Vista" TabIndex="26"

 

 

 

SkinsPath="~/RadControls/ComboBox/Skins"

 

 

 

AllowCustomText="false" MarkFirstMatch="true" />

 

 

 


<
telerik:RadComboBox runat="server" ID="ddlendyod" ToolTip="Select Date Of Death End Year"

 

 

 

Height="220px" Width="120px" Skin="Vista" TabIndex="27"

 

 

 

DataValueField="Years" DataTextField="Years" AutoPostBack="true"

 

 

 

SkinsPath="~/RadControls/ComboBox/Skins"

 

 

 

AllowCustomText="true" MarkFirstMatch="true" />

 

 

 

 

 


 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

 

if (!Page.IsPostBack)

 

{

LoadAppNumbers();
//Initial value not getting selected

radddlAppNo.SelectedIndex = 0;
//Initial value not getting selected one combo & selecting for other combo

LoadYears();

 

}

 

 

protected void radddlsearchNo_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

 

{

GetSearchNoByAppNo();

}

 

 

protected void radddlAppNo_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

 

{

LoadAppNumbers();

}


 

 

protected void LoadAppNumbers()

 

{

 

 

DataTable dtApp = null;

 

 

 

//DataView dvApp = null;

 

 

 

RadComboBoxItem riApp = null;

 

 

 

try

 

{

 

//calling the stored proc to insert Jurisdictions.

 

dtApp =

 

Methods.SelectAllApplications();

 

radddlAppNo.ClearSelection();

 

 

if (dtApp.Rows.Count > 0)

 

{

 

radddlAppNo.DataValueField =

 

"ApplicationNo";

 

radddlAppNo.DataTextField =

 

"ApplicationNo";

 

 

 

 

DataView view = new DataView(dtApp);

 

dtApp = view.ToTable(

 

true, "ApplicationNo");

 

radddlAppNo.DataSource = dtApp;

radddlAppNo.DataBind();

riApp =

 

new RadComboBoxItem("-Type/Select Application No-", "");

 

radddlAppNo.Items.Insert(0, riApp);

}

}

 

 

catch (Exception ex)

 

{

 

 

throw ex;

 

}

 

 

finally

 

{

 

 

// clean up

 

riApp =

 

null;

 

dtApp =

 

null;

 

}

}

 

 

 

protected

 

 

void LoadYears()

 

{

 

 

 

 

 

 

DataTable dt1 = null;

 

 

 

DataTable dt2 = null;

 

 

 

RadComboBoxItem li;

 

dt1 =

 

Methods.Getyodyears();

 

 

 

if (dt1.Rows.Count > 0)

 

{

ddlbeginyod.DataTextField =

 

"Years";

 

ddlbeginyod.DataValueField =

 

"Years";

 

ddlbeginyod.DataSource = dt1;

ddlbeginyod.DataBind();

li =

 

new RadComboBoxItem ("- Select -", "");

 

ddlbeginyod.Items.Insert(0, li);

}

dt2 =

 

Methods.Getyodyears();

 

 

 

RadComboBoxItem li1;

 

 

 

if (dt2.Rows.Count > 0)

 

{

ddlendyod.DataTextField =

 

"Years";

 

ddlendyod.DataValueField =

 

"Years";

 

ddlendyod.DataSource = dt1;

ddlendyod.DataBind();

li1 =

 

new RadComboBoxItem("- Select -", "");

 

ddlendyod.Items.Insert(0, li1);

}

 

}

 

 

protected

 

 

void GetSearchNoByAppNo()

 

{

 

 

DataTable dtsearch = null;

 

 

 

DataView dvsearch = null;

 

 

 

RadComboBoxItem risearch = null;

 

 

 

try

 

{

 

//calling the stored proc to insert Jurisdictions.

 

sAppNo = radddlAppNo.SelectedValue.ToString();

dtsearch =

 

Methods.SelectAllSearchesByApplicationNo(sAppNo);

 

Session[

 

"SearchNo"] = dtsearch;

 

 

 

 

if (dtsearch.Rows.Count > 0)

 

{

radddlsearchNo.DataValueField =

 

"SearchNo";

 

radddlsearchNo.DataTextField =

 

"SearchNo";

 

radddlsearchNo.DataSource = dtsearch;

dvsearch = dtsearch.DefaultView;

dvsearch.Sort =

 

"SearchNo ASC";

 

dtsearch = dvsearch.ToTable();

radddlsearchNo.DataBind();

risearch =

 

new RadComboBoxItem("- Type/Select Search No -", "");

 

radddlsearchNo.Items.Insert(0, risearch);

 

}

 

 

else

 

{

 

radddlsearchNo.DataSource = dtsearch;

radddlsearchNo.DataBind();

risearch =

 

new RadComboBoxItem("- Search No -", "");

 

radddlsearchNo.Items.Insert(0, risearch);

 

}

 

}

 

 

catch (Exception ex)

 

{

 

 

throw ex;

 

}

 

 

finally

 

{

 

 

// clean up

 

risearch =

 

null;

 

dtsearch =

 

null;

 

}

}

0
Kalina
Telerik team
answered on 22 Sep 2010, 05:01 AM
Hi chandu mahi,

The first two RadComboBox controls: “radddlAppNo” and “radddlsearchNo” use the Load On Demand feature.

When a RadComboBox with Load On Demand enabled loads - it has no items and gets populated with data when user types in the input area it or clicks on the arrow image.  Further details about Load On Demand you can find at this help article.
That is why you are not able to set a selected item at PageLoad event. ItemsRequested event populates the control with data and there is no option to add items to RadComboBox items collection within its event handler.

Please use the EmptyMessage property to set a default text at the first two RadComboBox controls.
<telerik:RadComboBox runat="server" ID="radddlAppNo" Skin="Vista"
    Width="190px" Height="300px"
    EmptyMessage="-- Select --"
    DataValueField="ApplicationNo"
    DataTextField="ApplicationNo"
    AutoPostBack="true"
    ToolTip="Select Application No"
    TabIndex="1"
    OnItemsRequested="radddlAppNo_ItemsRequested"
    OnSelectedIndexChanged="radddlAppNo_OnSelectedIndexChanged"
    AllowCustomText="true"
    MarkFirstMatch="true" ShowMoreResultsBox="true">


Greetings,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
chandu mahi
Top achievements
Rank 1
Answers by
chandu mahi
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or