Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
65 views
Is there a way to minimize the parent hierarchy when a child is selected? Our users want only the header of the parent record(s) to be displayed without showing the rest of the rows for that hierarchy level.

For example:
We want to not show the rows for Category 2 and Category 3 when Category 1's children are displayed.

 

  1. Category 1
    1. Category 1a
    2. Category 1b
  2. Category 2
  3. Category 3
Casey
Top achievements
Rank 1
 answered on 01 Aug 2011
0 answers
112 views
1. I have a Rad Progress Area in one of the pages of my application. When I try to set the Localization.UploadFiles, it is not being set. I always get the value that I have set at first.

2. If I try to end the current rad progress context using RadProgressContext.Current.OperationComplete command, I don't think the Rad Progress area is being stopped. I can still see that. Also the ScriptManager.RegisterStartUp script does not fire if the use of rad progress area is not stopped.
Haritha
Top achievements
Rank 1
 asked on 01 Aug 2011
4 answers
299 views
RadToolTipManager response error:
 Exception=Sys.WebForms.PageRequestManagerServerErrorException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Andrei
Top achievements
Rank 2
 answered on 01 Aug 2011
7 answers
115 views
I have a number of templates applied to provide property labels on certain nodes like below.  So that even when Property 2 for instance has no value, it's still labeled as such by the template.

Item1
   Property 1: Property1Value
   Property 2:
Item 2

This works fine when editing one of the property nodes that already has a value like Property 1.  But when editing an empty node like Property 2, instead of just showing a blank edit box, you would see the label in there like "Property 2:  ".  Then it passes the whole thing as the text in the event args to the NodeEdit handler rather than just the entered value.  So you get "Property 2: Prop2value" rather than just "Prop2Value".

I've tried it like below and also breaking out the wrapping tag for the value into a second label and setting the DataBinding handler on that.  I get the same result either way.  Am I missing something or is this a bug?


public class Property2Template : ITemplate
{
    public void InstantiateIn(Control container)
    {
        Label label1 = new Label();
        RadTreeNode node = (RadTreeNode)container;
        label1.Text = "Property 2: <span class=\"PropertyValue\">" + node.Text + "</span>";
        label1.CssClass = "PropertyLabel";
        container.Controls.Add(label1);
    }
}

also

public class Property2Template : ITemplate
{
    public void InstantiateIn(Control container)
    {
        Label label1 = new Label();
        Label label2 = new Label();
        RadTreeNode node = (RadTreeNode)container;
        label1.Text = "Property 2: ";
        label1.CssClass = "PropertyLabel";
        label2.Text = node.Text;
        label2.CssClass = "PropertyValue";
        label2.DataBinding += new EventHandler(label2_DataBinding);
        container.Controls.Add(label1);
        container.Controls.Add(label2);
    }
    public void label2_DataBinding(object sender, EventArgs e)
    {
        Label target = (Label)sender;
        RadTreeNode node = (RadTreeNode)target.BindingContainer;
        string nodeText = (string)DataBinder.Eval(node, "Text");
        target.Text = nodeText;
    }
}
Plamen
Telerik team
 answered on 01 Aug 2011
1 answer
108 views
Hi, i´m having a problem with RadTreeView.

When try to add a new node in the tree and cancel de operation by pressing ESC (escape) the operation is realy canceled but a "GHOST NODE" continues in the tree.

The same problem happens in RadTreeView live demo. http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/contextmenu/defaultcs.aspx

When I reload the page, the ghost node disappears correctly

I want the node does not appear in the tree when an inclusion is canceled.

See the atached image.

Plamen
Telerik team
 answered on 01 Aug 2011
4 answers
116 views
Sorry, I'm lost, I think I've tried all options and read pdf and so on but I'm still not getting it right:
I've set my RadGrid to inline edit mode, Tablelayout = fixed. Now I have a GridDateTimeColumn. I've set the width to 100px using CSS. This works fine for both display and edit, but when I go to edit mode the DateItem does not fit to the column. It's larger and so the calendar pickup does not display. How do I set the size of the editable item so that it fits to its column?
Thanks
Kai
Top achievements
Rank 2
 answered on 01 Aug 2011
1 answer
281 views
Telerik,

I would like to export all data from my radgrid using CSV but its not working as expected.


I have added a CommandItemSettings tag for using the CSV export button on the Grid. When I click the button to export my current grid, the ItemCommand event is raised and I test for the following condition and my code is as follows:

protected void myGrid_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.ExportToCsvCommandName)
    {
        IsExport = true;
        myGrid.ExportSettings.IgnorePaging = false;
        myGrid.MasterTableView.GetColumn("Activities").Visible = false;
        myGrid.MasterTableView.GetColumn("License").Visible = false;
        myGrid.MasterTableView.GetColumn("Delete").Visible = false;
        myGrid.MasterTableView.AllowPaging = false;           
    }  
}

Setting the following property, allows me to export just the one page, but by changing this value to true, I only export the Header Row!?
myGrid.ExportSettings.IgnorePaging = false;

 I also have an ItemDataBound event that is called where I format a TableCell's text property to be equal to that of a HiddenField inside of a TemplateColumn.

bool IsExport = false;
protected void myGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
    //Fix TemplateColumn on Exporting
    if (IsExport && e.Item is GridEditableItem)
    {
        //Fix Template Column Text           
        GridEditableItem item = e.Item as GridEditableItem;
        foreach (TableCell cell in item.Cells)
        {
            HiddenField field= (HiddenField)e.Item.FindControl("hdnField");
            if (field != null)
            {
                cell.Text = field.Value;
            }
        }
    }        
}

How can I export all the data in my grid to CSV?? So far I have only been able to export it for the first page. I need the option to export it for all pages.

Daniel
Telerik team
 answered on 01 Aug 2011
1 answer
158 views
hi, is there 3D chart in telerik for asp.net. can someone send link about that.
Giuseppe
Telerik team
 answered on 01 Aug 2011
1 answer
196 views
Hello, i'm trying to export radgrid to html with the same aspect as we see it in the web browser. to be able to send it by email.

But each email client have is own way of handling css styles. as long as i know the best way to do it is setting all the styles inline, an that's exactly what i want to do.

But i'm facing several problems... can someone point me a solution?

i'm trying to use the folowing script http://www.tikku.com/css-inline-transformer#css_inline_tabs_1

first i have a error appending the css style sheet to the header tag... but i think this is unnecessary since i already have the css style in the telerik axd. 

the steps are get the html from grid, get the css style sheet, and finaly merge the htlm of grid whith the css classes of the style sheet.

i need to have this done asap :\

best regards, Marco






  
Daniel
Telerik team
 answered on 01 Aug 2011
3 answers
123 views
Hi Ple see the Image

thanks
vinoth
Nikolay Tsenkov
Telerik team
 answered on 01 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?