Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
146 views
I have two comboboxes, one dependent on the other. There's a checkbox beside each item in each combobox so users can make multiple selection on each. This is how both my comboboxes are coded.

            <input id="hdnProduct" runat="server" type="hidden" /> 
            <telerik:RadComboBox ID="rcbProduct" runat="server" EmptyMessage="All" HighlightTemplatedItems="true" AllowCustomText="true" 
                OnClientDropDownOpening="rcb_ClientDropDownOpening" OnClientDropDownClosing="rcb_ClientDropDownClosing"  
                OnClientSelectedIndexChanging="rcb_ClientSelectedIndexChanging" OnClientBlur="rcb_ClientBlur"> 
                <ItemTemplate> 
                    <asp:CheckBox ID="chk" runat="server" onclick="rcbProduct_CheckBoxClicked();" /> 
                </ItemTemplate> 
            </telerik:RadComboBox> 

Based on every checkbox clicked, it appends the selected text in the text area on the combobox and value in the hidden input field.

After I finish making my selection here, I need to populate another combobox (which is coded in the same style) to be populated dynamically. Right now the problem I am having is how can I do it? Do I use the ClientItemRequested and ItemsRequested methods in the second combobox to populate it? Will doing so have any problem with creating the checkboxes dynamically? If so then do I need to do a full postback after the selection is complete in the first combobox (I don't want to do a full postback if possible)? Is there a better solution to this?

Thanks.
Baal
Top achievements
Rank 1
 asked on 11 Feb 2010
1 answer
106 views

hi I have a radgrid with 1 detailtable. The master table is Members, the datakey is MemberId, the detailtable is Students, the datakey is StudentID. At runtime i can expand any mastertableview record to view the detailtable records. However once I click on export button i get this error: StudentID is neither a DataColumn nor a DataRelation for table Members. StudentID only exist in the StudentTable, not the Member table.... I could not understand why the Grid Exporting tries to find the StudentID in Members Table?
my export code is:

RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;     
RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true;     
RadGrid1.AllowPaging = false;     
RadGrid1.MasterTableView.Rebind();     
RadGrid1.ExportSettings.OpenInNewWindow = true;     
RadGrid1.MasterTableView.ExportToCSV();    
 

please help
Daniel
Telerik team
 answered on 11 Feb 2010
3 answers
99 views
Hello,

I have a radgrid with Paging turned on and set to display 10 items per page.

What I need to be able to do is to loop through all records in the grid, not just the 10 displayed on each page.  For example, if I have 25 records, I need to loop through all 25, not just the first 10.

Is there a way to do this through Javascript?

I have tried to use the dataItems property on the grid's master table, but that only returns the items on the currently displayed page of the grid.

Thanks!
Daniel
Telerik team
 answered on 11 Feb 2010
1 answer
130 views
Hello sir,
            I want to retrive data from database in to radeditor and i use below code retrive data but it will only display name of datatable not display content in it.



           string ContentBlog = adaBlogContent.GetData(Convert.ToInt16(drpBlogTitle.SelectedValue)).ToString();
            radEditor.Content = ContentBlog;
robertw102
Top achievements
Rank 1
 answered on 11 Feb 2010
4 answers
225 views
I'm getting the following error when clicking the "Options" button when trying to insert a new appointment:

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar"

This doesn't happen in a small test project I put together but happens when I put the calendar into our application.  Here's the parameter string I get during the postback just before the error occurs.  I believe the startDate and endDate is formatted improperly and something in our application is causing this problem.  I'm trying to insert and appointment on February 23rd.  Notice the start date is 2010 0023 0002.  It should be 2010 0223 0000.  I.e., the day/month should be the middle 4 digits, the time is the last 4 digits.

"command":"AdvancedInsert",
"appointment":
{
"Subject":"",
"Description":"",
"Resources":[],
"RecurrenceState":0},
"startDate":"201000230002",
"endDate":"201000240002"
}

Any idea's what's causing this or how to fix it?

Thanks.

Kevin

Kevin Flynn
Top achievements
Rank 1
 answered on 11 Feb 2010
1 answer
101 views
Hi,
I noticed that my spellchecker does not catch upper-lower case mixed letters (aFFect, pRocess). My WordIgnoreOptions is set to "none" so it should not ignore those words.  Is there any other property I need to modify for this work? Thank you for your help!

Kate




Rumen
Telerik team
 answered on 11 Feb 2010
1 answer
100 views
We are going through the demos of RadControls for ASP.NET AJAX -> Windows -> Window/Restriction Zone. (http://demos.telerik.com/aspnet-ajax/window/examples/restrictionzone/defaultcs.aspx)
Clicking on Menu options such as 'CSS3.Info' or 'organic{x}html' opens a window in the restricted zone.
If any of these windows is closed, one cannot get it opened again by clicking on the option.
After Refreshing and clicking on the option the window gets opened.

We are facing a similar kind of problem in our case.

Please do give a solution.
robertw102
Top achievements
Rank 1
 answered on 11 Feb 2010
3 answers
147 views
Hi.
Could someone show me how to sort a radgrid by column click using javascript (not radajaxmanager).
Tsvetoslav
Telerik team
 answered on 11 Feb 2010
8 answers
262 views
When I create, update or delete an appointment and my code fails for whatever reason (debgging, testing etc), the UI will still look like the appointment was added and currently exists or was changed successfully until i refresh the page which of course reloads what i actually have in the DB.

Is there a standard way of not updating the UI on a failure?
The issue seems to be that the appointment is added to the control immediately before the call to my code actually creates or updates or whatever.

I've currently been using this to refresh the UI as a temp way to refresh
//temp way to rebind scheduler on the client  
function refreshSchedulerClientSide() {  
    var scheduler = $find('RadScheduler1');  
    scheduler.set_selectedDate(scheduler.get_selectedDate());  
}  

I could just call this on failure?

any tips?

thanks
T. Tsonev
Telerik team
 answered on 11 Feb 2010
1 answer
128 views
Instead of having 30+ items in the drop down which is separated by different categories, is it possible to use RadMenu inside Combobox to display something like this.    When the user hovers over Section A (which is a separator), it automatically displays the child menu for section A to be selected.     I saw some references to TreeView but using menu is probably simpler?   They key is auto expand/collapse that the menu inherently supports.

Section A     ---- Item A1
                      ---- Item A2
Section B
Section C
Section D
Veronica
Telerik team
 answered on 11 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?