Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
152 views
I need to display grid with pending changes to a set of records. The way I envisioned it, each master row would be a record itself. When you expand the row, the pending changes would be presented in a detail row. However, since each row will have different pending changes, the layout of this detail row would be different. I wanted to hide/display columns of each individual detail grid depending on pending changes to their master row record. So, if there's no pending change to a property, the corresponding column on this row will be hidden.  I've attached the picture illustrating my attempt.
I can't find a way to hide columns of the detail view for an individual row and I don't know if it's even possible. Does layout for each detail view have to be the same? Is detail view even a right way to accomplish this? Should I use nested view instead? 
I'd appreciate help pointing me to the right approach with some tips on what event handlers I should use to accomplish this.
Thanks,
Alex
Daniel
Telerik team
 answered on 13 Nov 2012
1 answer
144 views
Hi,

I am using Telerik Rad Controls for ASP.net Q3 2012 and I am using RadChart with the Stacked bar,Stacked Area series.When i am bind the one the Bar with negative value then all the Bar in the series coming to the Negative Area in the chart.For example in my chart is having Passed Planned,Failed and descoped all of them in stacked format. If i am binding with Planned with Negative value then all other Passed,Failed,Decoped also coming to negative part in the chart.
I have attached the screenshot also for your reference. Please suggest me to resolve the issue.

Regards,
Kannan S
Petar Kirov
Telerik team
 answered on 13 Nov 2012
6 answers
151 views
I am using a RequiredFieldValidator and a ValidationSummary within a usercontrol within RadGrid EditForm.

The validation works fine, but I have set the RequiredFieldValidator to show an * beside the control being validated (Text="*") and the ErrorMessage to something more discriptive: ErrorMessage="Name is required."

The problem however is that when the cotrol errors out, ErrorMessage shows in both the ValidationSummary and next to the erroring control where the * is expected per the property  (Text="*"). I need the * to show because it is better for my layout and consistent with validation outside the radgrid elsewhere on the page. The longer more verbose Message="Name is required."
messes up the layout.

Has anyone had this problem before. I have never seen the RequiredFieldOperator behave like this before so I can only see the RadGrid as being the problem.

Someone please help.
JJ
Top achievements
Rank 1
 answered on 13 Nov 2012
1 answer
173 views
For a bar chart, as the rotation angle for the x axis item label increases, the label continues to be centered on the series item. When the x axis becomes crowded, it is impossible to determine what label is associated with a series item. Other vendors products have the ability to align the upper end of the x axis item label with the series item that it is associated with. Is there a way to accomplish this either the RadChart or RadHtmlChart?
Petar Kirov
Telerik team
 answered on 13 Nov 2012
1 answer
98 views
I have followed the example on the site for implementing the RadFilter with a grid.  The control displays, but I get the following error:

 Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Parameter cannot be null or empty.
Parameter name: fieldName 

This occurs whenever I click the add expression button.

Any help would be appreciated.

Thanks...Brian
Martin
Telerik team
 answered on 13 Nov 2012
1 answer
83 views
Just had something odd happen. 

I have a fairly conventional RadGrid with a FormTemplate popup editor. This has been working normally.

On the FormTemplate is a RadComboBox and I've been trying to attach a function call to the OnClientLoad event with the eventual intent of doing some intialization to the popup.

This function is defined as follows:

function cbLoad(sender) {
    var curVal = sender.get_value();

    if (curVal == 3) {
       var editForm = $find("<%=RadGrid1.ClientID%>").get_masterTableView().get_editItems()[0].get_editFormItem();                                
     }
  }


It appears that the $find call is what's disabling the popup.  If I comment that out, the popup displays normally.

Martin
Telerik team
 answered on 13 Nov 2012
1 answer
275 views
I have grid which works fine on firefox, IE8,9 but in chrome some grid column header overlaps to other columns header. all the columns have width in px, width for grid is set to 100% as I want horizontal scrollbars. also I have used itemStyle-wrap="false". plz check attached image. any suggestion to tackle this would be helpful.
Pavlina
Telerik team
 answered on 13 Nov 2012
1 answer
110 views
Hi everyone,

I have a problem to catch values in ScatterLineSeries with the Event .get_value()
I need to get the X value and de Y value.
Any ideas?

thanks in advance

Jaime
Software Engineer
Filupa
Top achievements
Rank 1
 answered on 13 Nov 2012
3 answers
113 views
Heey Guys 


got a strange error when I'm trying to open the page where the grid is 

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).   on line 18

function PrintRadGrid(radGridId) {
        var radGrid = $find(radGridId);
        var previewWnd = window.open('about:blank', '', '', false);
        var sh = '<%= ClientScript.GetWebResourceUrl(UserGrid.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",UserGrid.Skin)) %>';
        var styleStr = "<html><head><link href = '" + sh + "' rel='stylesheet' type='text/css'></link></head>";
        var htmlcontent = styleStr + "<body>" + radGrid.get_element().outerHTML + "</body></html>";
        previewWnd.document.open();
        previewWnd.document.write(htmlcontent);
        previewWnd.document.close();
        previewWnd.print();
        previewWnd.close();
 
        radGrid.get_masterTableView().fireCommand("EnablePaging", "");
    }

thanks for help and fast answer ! 

Pavlina
Telerik team
 answered on 13 Nov 2012
2 answers
155 views
I recently posted a problem about disabling controls client-side within a RadGrid FormTemplate: http://www.telerik.com/community/forums/aspnet-ajax/input/unable-to-find-a-usable-method-for-enabling-disabling-a-textbox-in-a-formtemplate.aspx

That screen works.  I can now control the enabling/disabling of RadTextBoxes using a function call from a checkbox.
Now I have a similar problem.  I have a similar screen in which the FormTemplate has several RadComboBoxes and RadButtons. 
What I want to do is enable/disable a RadComboBox and a RadButton depending on the value of another RadComboBox.

I've attached a function to a RadComboBox's OnClientSelectedIndexChanged event.  I know the function is being called.  I know I'm getting the correct value of the dropdown.  I know I'm getting back handles from the $telerik.findElement calls.   As far as I can tell from your documentation I'm using the correct enable/disable calls for a RadButton and RadComboBox. 

But this time nothing works.  The status of the controls is not changing.  Here's the code.

function test(sender, args) {
    var editForm = $find("<%=RadGrid1.ClientID%>").get_masterTableView().get_editItems()[0].get_editFormItem();
    var btn = $telerik.findElement(editForm, "btnSave");
    var combo = $telerik.findElement(editForm, "ComboBox1");                           

    var curVal = sender.get_value();

    // if the calling combo box has this value,
    // disable the other controls.                          
    if (curVal == 3) {
       btn.set_enabled(false);
       combo.disable();                             
    }
    // Otherwise, enable
    else {
       btn.set_enabled(true);        
       combo.enable();
    }
 }

Boris
Top achievements
Rank 1
 answered on 13 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?