Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
i ve two columns in radgrid
column a-radgriddropdowncolumn
column b-radgriddropdowncolumn

for scenario-- while selecting the value from column A i want to add items on Column B on Client selectedindexchanges event

 design  
 
<telerik:GridDropDownColumn    DataField="Year"       HeaderText="Year"      UniqueName="Year"    />   
                <telerik:GridDropDownColumn    DataField="Month"      HeaderText="Month"     UniqueName="Month"  />   
 
 
 
server side inside the item created  
 
 GridDropDownListColumnEditor drp = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor(strArray[k]);  
                        drp.ComboBoxControl.ID = "Yr";  
                        drp.ComboBoxControl.OnClientSelectedIndexChanged += "OnClientYearSelectedIndexChanged";  
                        RadComboBox txt = (item.EditManager.GetColumnEditor("Month") as GridDropDownListColumnEditor).ComboBoxControl;  
                        txt.ID = "Month";      
 
 
java script  
function OnClientYearSelectedIndexChanged(sender, eventArgs)  
{  
 var combo=$get(sender.get_id().replace("Yr", "Month"));            
        var comboItem = new Telerik.Web.UI.RadComboBoxItem();         
        comboItem.set_text("vanthudichi");          
        combo.get_items().add(comboItem);  
 
 
 
 
 

combo.get_item().add(comboItem)-->getting arror in this line like no property is available


i ve done the same for fetching the value on textbox from  dropdownvalue client selectedindexchanged event ,its working fine

javascript  
var txt = $get(sender.get_id().replace("pgm", "StartTime"));  
var txt2 = $get(sender.get_id().replace("pgm", "Endtime"));  
var txt3 = $get(sender.get_id().replace("pgm", "PrimeTime"));  
var txt4 = $get(sender.get_id().replace("pgm", "Contract_New_Rate"));  
 
if(res != null)  
{  
txt.value=res[0];  
txt2.value=res[1];  
txt3.value=res[2];  

sever side item created  
 
 
GridDropDownListColumnEditor drp = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor(strArray[k]);  
                        drp.ComboBoxControl.ID = "pgm";                                                                                                  
                        drp.ComboBoxControl.OnClientSelectedIndexChanged += "OnClientSelectedIndexChanged";  
 
 
                        TextBox txt = (item.EditManager.GetColumnEditor("StartTime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt.ID = "StartTime";  
                        TextBox txt2 = (item.EditManager.GetColumnEditor("Endtime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt2.ID = "Endtime";  
                        TextBox txt3 = (item.EditManager.GetColumnEditor("PrimeTime") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt3.ID = "PrimeTime";  
                        TextBox txt4 = (item.EditManager.GetColumnEditor("Contract_New_Rate") as GridTextBoxColumnEditor).TextBoxControl;  
                        txt4.ID = "Contract_New_Rate";  
                        drp.ComboBoxControl.Filter = RadComboBoxFilter.StartsWith;  
                        drp.ComboBoxControl.EmptyMessage = "--Select--";      
 


but the same is not working for dropdown to dropdown binding
shankar mohan
Top achievements
Rank 1
 answered on 30 Apr 2010
2 answers
106 views

Hi all.

Webservice renders a control and returns it in string. Using js when I paste it on the page, the javascript functions are not evaluated. How can I do that?

In Telerik XmlHttpPanel there is a EnableClientScriptEvaluation. How to do it without using this control?
Pero
Telerik team
 answered on 30 Apr 2010
1 answer
70 views
Hi

I need ajaxified  an asp control inside the tooltip, but the the event OnAjaxUpdate of the updatepanel of the tooltip fired, and all the controls inside the tooltip are refresh again, 

Is posible update conditional content inside the tooltip using Radajaxmanager or updatepanel?


Thanks for the response




Svetlina Anati
Telerik team
 answered on 30 Apr 2010
4 answers
274 views
Is it possible to have a label with each pie chart to indicate which series it represents? I have to display two pie charts in one graph, and it will not be obvious to the user which pie chart represents what data. So I need to add a label (above or beneath) each pie chart with (for example) the series name, or preferably a custom title.
Trying to add items to the X or Y axis does not seem to work, since the axes are not displayed as soon as I set the type of each series to pie. And I could not find a label on the series either.
Is there a way to do this? Thanks...
Vladimir Milev
Telerik team
 answered on 30 Apr 2010
1 answer
160 views
Hi All,

I'm facing a problem with Radtooltip. I have a gridview in my page that contains more than 200 rows and I've got a Radtooltip assigned for elements of each column. I'm unable to set the position of tooltip. Sometimes it appears at the extreme bottom of the page, sometimes at the top and at times it doesn't even appear.

Any help will be appreciated.

Thanks
Shahbaz
Svetlina Anati
Telerik team
 answered on 30 Apr 2010
2 answers
134 views
Hello Telerik Team,

I have a radgrid which is programatically created, columns added during page init, exactly as shown in the demo.

Everything in this grid works perfectly but the show/hide columns-function in the headercontextmenu.

What could be a reason for this? When I click the checkbox in the menu, the menu simply closes again, and the display state of the column is not changed

best regards

Ulrik
Pavlina
Telerik team
 answered on 30 Apr 2010
3 answers
74 views
Is it possible to change the behaviour of  CursorUp and CursorDown? CursorUp should work like Shift-Tab and CursorDown should work like Tab inside of a RadGrid. Is this possible and if yes how?
Mira
Telerik team
 answered on 30 Apr 2010
3 answers
365 views
I'm having a problem using the CountDisinct aggregate in a group by expression in the RadGrid. I'm using the aggregate function to get a unique count total in my Group header. I can reproduce this issue in the online demo as follows:

If i take the default grouping expression  'Country [My Country], count(Country) Items [My Items], Sum(TotalAmount) GroupTotal [Group Total ] Group By Country'
and i change 'count(Country)' to 'CountDistinct(Country)' suddenly the total for My Items becomes blank. The final grouping expression looks like this Country [My Country], CountDistinct(Country) Items [My Items], Sum(TotalAmount) GroupTotal [Group Total ] Group By Country.
What am i doing wrong? Is there another way to get a count of unique items in the group header?

Thanks
Marcel



Wallace
Top achievements
Rank 1
 answered on 30 Apr 2010
1 answer
89 views
I have the following RadUpload control as shown below. This quite happily displays normal images, however when I select a very large high resolution image (5.2mb) the page just crashes with an unhandled error, any ideas what may be going wrong here.

Regards

Robert

     <telerik:RadUpload ID="RadUpload1" runat="server" Culture="English (United Kingdom)"
                            MaxFileInputsCount="3" OnFileExists="RadUpload1_FileExists1" OverwriteExistingFiles="True"
                                TargetFolder="~/TempUploadImages" Width="325px" ControlObjectsVisibility="None" Height="36px">
                                </telerik:RadUpload>
                             <asp:Button ID="btn_Upload" runat="server" OnClick="btn_Upload_Click" Text="Upload" />
    
        </td>

code behind

   try
        {
            if (RadUpload1.UploadedFiles.Count > 0)
            {
                repeaterResults.DataSource = RadUpload1.UploadedFiles;
                repeaterResults.DataBind();
                labelNoResults.Visible = false;
                repeaterResults.Visible = true;
                LoadImageUrl();

            }
            else
            {
                labelNoResults.Visible = true;
                repeaterResults.Visible = false;
            }
        }
        catch (Exception ex)
        {
            //throw new Exception(ex.InnerException);

        }



Yana
Telerik team
 answered on 30 Apr 2010
1 answer
76 views

We need to expand the items for one level as default  by page load .

We have the following code snippet in order to expand the first item when page loads in C#:
protected void RadPanelBar1_DataBound(object sender, EventArgs e)
{
    RadPanelBar1.Items[0].Expanded = true;
}

Please can you give equivalent javascript code for this source.

Thanks

Shinu
Top achievements
Rank 2
 answered on 30 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?