Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
127 views
I''m anot able to get the second RadCombobox values on server side when it is loaded through on item request of first Radcombobox.

i can able to see data in second RadCombobox,but on button click,i can able to get the selected item from first RadCombobox and second RadCombobox  is coming as null.

Can you let me know,what i am missing in the functionality
Rosi
Telerik team
 answered on 27 Oct 2008
1 answer
89 views
Hi,

I am very new to Telerik controls,
i am facing a problem where i have two RadDropDowns,while selecting the first dropdown,second dropdownlist is populated.

While in button click event i am not able to get second drop down selected value,eventhough dropdown is having values before the click event.

<rad:RadComboBox ID="RadComboBox1" runat="server" Width="200px" Height="115px" TabIndex="1"OnClientSelectedIndexChanging="LoadOrganizations" OnItemsRequested="RadComboBox1_ItemsRequested"EnableLoadOnDemand="True" AllowCustomText="False" ItemRequestTimeout="500" MarkFirstMatch="True">
<Items> </Items>
</rad:RadComboBox>
<rad:RadComboBox ID="RadComboBox2" runat="server" Width="200px" Height="115px" TabIndex="2"OnClientItemsRequested="ItemsLoaded"OnItemsRequested="RadComboBox2_ItemsRequested">
<Items></Items>
</rad:RadComboBox>

 

function LoadOrganizations(combo, eventarqs) {
var countriesCombo = $find("RadComboBox2");
var item = eventarqs.get_item();
countriesCombo.set_text(
"Loading...");
if (item.get_index() > 0) {countriesCombo.requestItems(item.get_value(), false); }
else {countriesCombo.set_text(" No Records Exist ");
countriesCombo.clearItems();}
}

 

 

function ItemsLoaded(combo, eventarqs) {
var countriesCombo = $find("RadComboBox2");
if (combo.get_items().get_count() > 0) {
combo.set_text(combo.get_items().getItem(0).get_text());
combo.get_items().getItem(0).highlight();
}
else {
countriesCombo.set_text(
" No Records Exist ");
countriesCombo.clearItems();
}
countriesCombo.commitChanges();
//combo.showDropDown(); }
C#

 

protected

 

void Page_Load(object sender, EventArgs e){
if (!IsPostBack){
LoadJurisdictions(); // ;db call for jurisdictions
RadComboBox1.Items.Insert(0,
new RadComboBoxItem("- Select Jurisdiction -"));
}} 

 

 

protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e){
LoadJurisdictions(); //dbcall for juris
}

 

 

protected void RadComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e){
LoadOrg(e.Text);// db call for org
}

 

protected

 

void btnsubmit_Click(object sender, EventArgs e){
RadComboBoxItem r1 = RadComboBox1.SelectedItem;

RadComboBoxItem r2 = RadComboBox2.SelectedItem;

 

// getting null for  r2
}

 


 

Rosi
Telerik team
 answered on 27 Oct 2008
4 answers
124 views
Hello,

I have put 3 Radupload controls into a DetailsView,then the  problem appears:when I click the clear button of one,the other's file inputs and select buttons disappears.But Firefox work as expected.

Besides,the page will work as expected if there is not the DetailsView.

I'm using C#,VS2008

Please help
ehome
Top achievements
Rank 1
 answered on 27 Oct 2008
5 answers
158 views
Our site has black background and the H1 paragraph format is white.  However in both design and preview mode, the RAD Editor always uses white backgound and after I applied white H1, the text is still in black. 
I saw a workaround in previous post, any updates on that?
Martin
Telerik team
 answered on 27 Oct 2008
1 answer
100 views
Hi all,

I would like to have vertical scrollbar if the list of items is longer than 150px.  If I set the ComboBox height to 150px it opens it with this height even if there is only 1 item in the list.  How can I tell it to open if AT MOST 150px but if there are only few items open it smaller.

Thanks,
Avi
Rosi
Telerik team
 answered on 27 Oct 2008
2 answers
60 views
Hi,

SCENARIO: We have set AllowFilteringByColumn = true in RadGrid for filteration and also we have restricted the filteraion options as only "CONTAINS"
PROBLEM: In above scenario when we filtered the Grid rows and then click on 3rd filtered row to update its contents then it will consider the before filteration 3rd row
Example: Initially RadGrid contains 6 rows and after filteration suppose it filter out 1st, 3rd, 5th row and now filtered Grid contains 2nd, 4th, 6th row as the 3 elements and when we click on 3rd filtered row (6th) then it considered 3rd instead of 6th.

Please help

Thanks in Advance
Prashant
9810494465
Yavor
Telerik team
 answered on 27 Oct 2008
3 answers
99 views
I don't have time to whip up a sample project right this second but I have been beating my head with my desk for the last 30 minutes regards this situation.

RadFormDecorator (current build)
ModalPopup
Buttons

All I am trying to do is set the width of the buttons to a static value. However, the only way I can seem to get this to occur is to alter CSS and apply that width to all buttons in the entire project. No amount of javascript fixup or setting the width of the button itself has let me achieve the desired results. Does anyone know the solution to this other than creating a child CSS with a set dimension and applying it to that subset of buttons? This screams defect, but I have to believe that something like this would be causing a few voices to speak up if it was actually a bug.

Thanks,

Jim
Martin
Telerik team
 answered on 27 Oct 2008
1 answer
126 views
I have a grid where grouping is enabled.  I have it enabled to get section headers, but I do not want the collapse/expand functionality.  Is there a way to disable it?
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2008
1 answer
119 views
Hi all,
i need to access form edit for Radgrid before making edit
or befor edit form appears.
also i need to understand why js doesn't work with radgrid.
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2008
0 answers
171 views
Hi, I 'm using TabStrip and I 'm adding Tabs in runtime. Each time I 'm adding a new tab, I also add a new pageview which contain an iframe with specified src.
The problem is that I want to keep the current state of my tabs when I try to add a new tab.

How can I accomplish this?
Regards,
Masoud Tabatabaei
http://csharptuning.blogspot.com
Masoud_TB
Top achievements
Rank 1
 asked on 26 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?