Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
IE cannot resolve the URL for a server side callback when collapsing a node if the URL contains a hash symbol (#).

Since the page ScriptManager tracks history points by appending a hash code to the page URL, the treeview will fail to load when using ajax history (back button support). I have the same issue as well with RadScriptManager.

Works correctly in Firefox. Using release 2009.3.1314.35.

Sample project
Nikolay Tsenkov
Telerik team
 answered on 08 Jun 2010
4 answers
144 views
Hello,
I am working with a usercontrol to add/edit items in a RadGrid row
 
                <EditFormSettings UserControlName="EmployeeDetails.ascx" EditFormType="WebUserControl">  
                    <EditColumn UniqueName="EditCommandColumn1">  
                    </EditColumn> 
                </EditFormSettings> 
But each item/row can have associated another table in which I would like to be able to insert/edit so what i should see at the usercontrol is like another radgrid control. I have read in the live examples that this can be done with hierarchy and DetailTable, but I don´t know how to 'draw' this table in the usercontrol so the items are binded to the employee detail showed in the usercontrol.

This is my UserControl
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmployeeDetails.ascx.cs" Inherits="telerik_webGrid.EmployeeDetails" %> 
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="1" rules="none" 
    style="BORDER-COLLAPSE: collapse">  
        <tr class="EditFormHeader">  
        <td colspan="2"><b>Employee Details</b></td>  
    </tr> 
    <tr> 
        <td colspan="2"><b>Personal Info:</b></td>  
    </tr> 
    <tr> 
        <td> 
            <table id="Table3" cellspacing="1" cellpadding="1" width="100%" border="0">  
                <tr> 
                    <td></td>  
                    <td></td>  
                </tr> 
                <tr> 
                    <td>Country:</td> 
                    <td> 
                        <asp:TextBox id="TextBox7" runat="server" 
                        Text='<%# DataBinder.Eval( Container, "DataItem.Country"  ) %>'>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>City:</td> 
                    <td> 
                        <asp:TextBox id="TextBox8" runat="server"   
                        Text='<%# DataBinder.Eval( Container, "DataItem.City") %>' 
                         tabIndex=1>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Region:</td> 
                    <td> 
                        <asp:TextBox id="TextBox9" runat="server" 
                        Text='<%# DataBinder.Eval( Container, "DataItem.Region") %>' 
                         tabIndex=2>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Home Phone:</td> 
                    <td> 
                        <asp:TextBox id="TextBox10" runat="server"   
                        Text='<%# DataBinder.Eval( Container, "DataItem.HomePhone") %>' 
                         tabIndex=3>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Birth Date:</td> 
                    <td> 
                        <asp:TextBox id="TextBox11" runat="server"   
                        Text='<%# DataBinder.Eval( Container, "DataItem.BirthDate") %>' 
                         tabIndex=4>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Title Of Courtesy</td> 
                    <td> 
                        <asp:dropdownlist id="ddlTOC" runat="server" tabindex="7"></asp:dropdownlist></td>  
                </tr> 
            </table> 
        </td> 
        <td> 
            <table id="Table1" cellspacing="1" cellpadding="1" width="300" border="0">  
                <tr> 
                    <td>Notes:  
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:TextBox id=TextBox1 Text='<%# DataBinder.Eval( Container, "DataItem.Notes") %>' runat="server" TextMode="MultiLine" Rows="5" Columns="40" tabIndex=5>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Address:</td> 
                </tr> 
                <tr> 
                    <td> 
                        <asp:TextBox id=TextBox6 Text='<%# DataBinder.Eval( Container, "DataItem.Address") %>' runat="server" TextMode="MultiLine" Rows="2" Columns="40" tabIndex=6>  
                        </asp:textbox></td>  
                </tr> 
            </table> 
        </td> 
    </tr> 
    <tr> 
        <td colspan="2"><b>Company Info:</b></td>  
    </tr> 
    <tr> 
        <td> 
            <table id="Table4" cellspacing="1" cellpadding="1" width="300" border="0">  
                <tr> 
                    <td>FirstName:</td> 
                    <td> 
                        <asp:TextBox id=TextBox2 Text='<%# DataBinder.Eval( Container, "DataItem.FirstName") %>' runat="server" tabIndex=8>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Last Name:</td> 
                    <td> 
                        <asp:TextBox id=TextBox3 Text='<%# DataBinder.Eval( Container, "DataItem.LastName") %>' runat="server" tabIndex=9>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Hire Date:</td> 
                    <td> 
                        <asp:TextBox id=Textbox5 Text='<%# DataBinder.Eval(Container, "DataItem.HireDate") %>' runat="server" tabIndex=10>  
                        </asp:textbox></td>  
                </tr> 
                <tr> 
                    <td>Title:</td> 
                    <td> 
                        <asp:TextBox id=TextBox4 Text='<%# DataBinder.Eval( Container, "DataItem.Title") %>' runat="server" tabIndex=11>  
                        </asp:textbox></td>  
                </tr> 
            </table> 
        </td> 
        <td></td>  
    </tr> 
    <tr> 
        <td colspan="2"><b>Tests</b></td>  
    </tr> 
    <tr> 
        <td> 
            <table id="Table5" cellspacing="1" cellpadding="1" width="300" border="0">  
                <tr> 
                    <td> 
                        <!--HERE SHOULD BE THE TABLE --> 
                    </td> 
                </tr> 
            </table> 
        </td> 
        <td></td>  
    </tr> 
    <tr> 
        <td align="right" colspan="2">  
            <asp:button id="btnUpdate" text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>'></asp:button> 
            <asp:button id="btnInsert" text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>'></asp:button> 
            &nbsp;  
            <asp:button id="btnCancel" text="Cancel" runat="server" causesvalidation="False" commandname="Cancel"></asp:button></td>  
    </tr> 
 

Thank you very much.
Borja
Top achievements
Rank 1
 answered on 08 Jun 2010
2 answers
81 views
Hi,

I want to be able to show the footer of a RadGrid's detailstableview dynamically and populate a RadComboBox on a button click event.

protected void Button_Click(object sender, EventArgs e) 
{ 
    GridTableView tblView = (GridTableView)(sender as LinkButton).Parent.Parent.Parent.Parent.Parent; 
    tblView.ShowFooter = true;

    GridItem item = tblView.GetItems[GridItemType.Footer)[0];
    RadComboBox radCombo = (RadComboBox)item.FindControl("RadCombo1");
 
    DataTable dt = GetDataSource();
    radCombo.DataSource = dt;
    radCombo.DataBind();
  
     tblView.Rebind(); <-solution

} 
 
So my problem is the footer of a RadGrid's detailstableview will not display until I collapse and then re expand the parent node. How can this all be done smoothly, to just show the footer on a button click event.

Thanks,
Bill
Bill
Top achievements
Rank 1
 answered on 08 Jun 2010
5 answers
256 views
Hey everyone, I have a self referencing hierarchy and I am unable to configure it properly to allow editing or adding records to child nodes. If it is a top level parent both functions work perfecting. However, clicking on either the add or edit command links causes the entire child node to close and disappear. Clicking refresh on another node (but not the master table) cause the rows to reappear, including the edit/add row, but the content of those rows are empty.

I came across this post and followed it's instructions to no avail. It does not seem correct for self referencing hierarchies anyways. The relevant code from my project is below. Thanks in advance!

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="TaxonomiesRadGrid"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="TaxonomiesRadGrid" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadGrid runat="server" ID="TaxonomiesRadGrid" AllowMultiRowSelection="true" 
    Skin="WebBlue" AutoGenerateColumns="false" Width="90%" GridLines="None" MasterTableView-DataSourceID="TaxonomiesRGSqlDataSource" 
    MasterTableView-DataKeyNames="taxonomyItemId, taxonomyParentId" MasterTableView-GroupsDefaultExpanded="true" 
    MasterTableView-GridLines="None" MasterTableView-GroupLoadMode="Client" MasterTableView-FilterExpression="taxonomyParentId IS NULL" 
    ClientSettings-AllowGroupExpandCollapse="true" OnItemDataBound="TaxonomiesRadGrid_ItemDataBound" 
    MasterTableView-SelfHierarchySettings-MaximumDepth="100" AllowAutomaticDeletes="true" 
    AllowAutomaticInserts="true" AllowAutomaticUpdates="true" OnItemUpdated="TaxonomiesRadGrid_ItemUpdated" 
    OnItemInserted="TaxonomiesRadGrid_ItemInserted" OnItemCreated="TaxonomiesRadGrid_ItemCreated" 
    OnInsertCommand="TaxonomiesRadGrid_InsertCommand" OnUpdateCommand="TaxonomiesRadGrid_UpdateCommand" 
    ShowStatusBar="true" OnDataBound="TaxonomiesRadGrid_DataBound" OnItemCommand="TaxonomiesRadGrid_ItemCommand"> 
    <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" CommandItemDisplay="Top" 
        CommandItemSettings-AddNewRecordText="Add a new Taxonomy Parent" EditMode="InPlace" 
        NoMasterRecordsText="No taxonomy items to display. Please select a taxonomy framework from above."> 
        <SelfHierarchySettings ParentKeyName="taxonomyParentId" KeyName="taxonomyItemId" /> 
        <Columns> 
            <telerik:GridBoundColumn DataField="taxonomyText" DataType="System.String" HeaderText="Taxonomy Description" 
                SortExpression="taxonomyText" UniqueName="taxonomyText"> 
            </telerik:GridBoundColumn> 
            <telerik:GridEditCommandColumn ButtonType="PushButton" ItemStyle-Width="120px" ItemStyle-HorizontalAlign="Right"> 
            </telerik:GridEditCommandColumn> 
            <telerik:GridClientDeleteColumn ButtonType="PushButton" ItemStyle-Width="50px" ItemStyle-BorderWidth="0px" 
                ItemStyle-HorizontalAlign="Center" ConfirmText="Are you sure you want to delete this taxonomy item and any items beneath it?"> 
            </telerik:GridClientDeleteColumn> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 
<asp:SqlDataSource ID="TaxonomiesRGSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:PrimarySQLConn %>" 
    SelectCommand="GetTaxonomyDetails" SelectCommandType="StoredProcedure" InsertCommand="InsertTaxonomyItem" 
    InsertCommandType="StoredProcedure" UpdateCommand="UpdateTaxonomyItem" UpdateCommandType="StoredProcedure" 
    OnUpdating="OnUpdating"></asp:SqlDataSource> 

Code behind:
private Hashtable _expandedState; 
private Hashtable _selectedState; 
 
protected void Page_Load(object sender, EventArgs e) 
{ 
    if (!IsPostBack) 
    { 
        //reset expanded states 
        this._expandedState = null; 
        this.Session["_ordersExpandedState"] = null; 
    } 
} 
 
public void Page_PreRenderComplete(object sender, EventArgs e) 
{ 
    HideExpandColumnRecursive(TaxonomiesRadGrid.MasterTableView); 
} 
#region Click & Command Events 
 
protected void ShowTaxonomyDetailsButton_Click(object sender, EventArgs e) 
{ 
    TaxonomiesRGSqlDataSource.SelectParameters.Clear(); 
    TaxonomiesRGSqlDataSource.SelectParameters.Add("id", TaxonomiesListBox.SelectedValue.ToString()); 
    TaxonomiesRadGrid.DataBind(); 
} 
#endregion 
#region Grid Message 
 
private string gridMessage = null; 
 
private void SetMessage(string message) 
{ 
    gridMessage = message; 
} 
 
protected void RadGrid1_DataBound(object sender, EventArgs e) 
{ 
    if (!string.IsNullOrEmpty(gridMessage)) 
    { 
        DisplayMessage(gridMessage); 
    } 
} 
 
private void DisplayMessage(string text) 
{ 
    TaxonomiesRadGrid.Controls.Add(new LiteralControl(string.Format("<span style='color:red'>{0}</span>", text))); 
} 
#endregion 
#region TaxonomiesRadGrid Events 
 
protected void TaxonomiesRadGrid_ItemInserted(object source, GridInsertedEventArgs e) 
{ 
    if (e.Exception != null) 
    { 
        e.ExceptionHandled = true; 
        DisplayMessage(" Taxonomy item cannot be inserted. Reason: " + e.Exception.Message); 
    } 
    else 
    { 
        DisplayMessage(" Taxonomy item inserted"); 
    } 
} 
 
protected void TaxonomiesRadGrid_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e) 
{ 
    if (e.Exception != null) 
    { 
        e.KeepInEditMode = false; 
        e.ExceptionHandled = true; 
        DisplayMessage(" Taxonomy item cannot be updated. Reason: " + e.Exception.Message); 
    } 
    else 
    { 
        DisplayMessage(" Taxonomy item updated"); 
    } 
} 
 
protected void TaxonomiesRadGrid_ItemCreated(object sender, GridItemEventArgs e) 
{ 
    if (e.Item is GridHeaderItem && e.Item.OwnerTableView != TaxonomiesRadGrid.MasterTableView) 
    { 
        e.Item.Style["display"] = "none"; 
    } 
    else if (e.Item is GridCommandItem && e.Item.OwnerTableView != TaxonomiesRadGrid.MasterTableView) 
    { 
        ((Button)e.Item.Cells[0].FindControl("AddNewRecordButton")).Visible = false; 
        ((Button)e.Item.Cells[0].FindControl("RefreshButton")).Visible = false; 
 
        ((LinkButton)e.Item.Cells[0].FindControl("InitInsertButton")).Text = "Add a new taxonomy item to this parent"; 
    } 
    else if (e.Item is GridCommandItem && e.Item.OwnerTableView == TaxonomiesRadGrid.MasterTableView) 
    { 
        ((Button)e.Item.Cells[0].FindControl("AddNewRecordButton")).Visible = false; 
        ((Button)e.Item.Cells[0].FindControl("RefreshButton")).Visible = false; 
    } 
} 
 
protected void TaxonomiesRadGrid_InsertCommand(object source, GridCommandEventArgs e) 
{ 
    if (e.Item.OwnerTableView == TaxonomiesRadGrid.MasterTableView) 
    { 
        GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem; 
        TaxonomiesRGSqlDataSource.InsertParameters.Clear(); 
        TaxonomiesRGSqlDataSource.InsertParameters.Add("taxonomyId", TaxonomiesListBox.SelectedValue.ToString()); 
        TaxonomiesRGSqlDataSource.InsertParameters.Add("parentId", DBNull.Value.ToString()); 
    } 
    else 
    { 
        GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem; 
        TaxonomiesRGSqlDataSource.InsertParameters.Clear(); 
        TaxonomiesRGSqlDataSource.InsertParameters.Add("taxonomyId", TaxonomiesListBox.SelectedValue.ToString()); 
        TaxonomiesRGSqlDataSource.InsertParameters.Add("parentId", parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["taxonomyParentId"].ToString()); 
    } 
} 
 
protected void TaxonomiesRadGrid_UpdateCommand(object source, GridCommandEventArgs e) 
{ 
    //GridEditableItem editedItem = e.Item as GridEditableItem; 
    //TaxonomiesRGSqlDataSource.UpdateParameters.Clear(); 
    //TaxonomiesRGSqlDataSource.UpdateParameters.Add("taxonomyItemId", editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["taxonomyItemId"].ToString()); 
    //TaxonomiesRGSqlDataSource.UpdateParameters.Add("taxonomyText", "test"); 
} 
#endregion 
 
public void HideExpandColumnRecursive(GridTableView tableView) 
{ 
    GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView); 
    foreach (GridNestedViewItem nestedViewItem in nestedViewItems) 
    { 
        foreach (GridTableView nestedView in nestedViewItem.NestedTableViews) 
        { 
            nestedView.Style["border"] = "0"; 
            Button MyExpandCollapseButton = (Button)nestedView.ParentItem.FindControl("ctl00"); 
            if (nestedView.Items.Count == 0) 
            { 
                if (MyExpandCollapseButton != null) 
                { 
                    MyExpandCollapseButton.Style["visibility"] = "hidden"; 
                } 
                nestedViewItem.Visible = false; 
            } 
            else 
            { 
                if (MyExpandCollapseButton != null) 
                { 
                    MyExpandCollapseButton.Style.Remove("visibility"); 
                } 
            } 
            if (nestedView.HasDetailTables) 
            { 
                HideExpandColumnRecursive(nestedView); 
            } 
        } 
    } 
} 
#region Diagnostics 
 
protected void OnUpdating(object sender, EventArgs e) 
{ 
    EventArgs er = e; 
} 
#endregion 
#region Child Editing 
 
//Save/load expanded states Hash from the session 
//this can also be implemented in the ViewState 
private Hashtable ExpandedStates 
{ 
    get 
    { 
        if (this._expandedState == null) 
        { 
            _expandedState = this.Session["_expandedState"] as Hashtable; 
            if (_expandedState == null) 
            { 
                _expandedState = new Hashtable(); 
                this.Session["_expandedState"] = _expandedState; 
            } 
        } 
 
        return this._expandedState; 
    } 
} 
 
//Clear the state for all expanded children if a parent item is collapsed 
private void ClearExpandedChildren(string parentHierarchicalIndex) 
{ 
    string[] indexes = new string[this.ExpandedStates.Keys.Count]; 
    this.ExpandedStates.Keys.CopyTo(indexes, 0); 
    foreach (string index in indexes) 
    { 
        //all indexes of child items 
        if (index.StartsWith(parentHierarchicalIndex + "_") || 
            index.StartsWith(parentHierarchicalIndex + ":")) 
        { 
            this.ExpandedStates.Remove(index); 
        } 
    } 
} 
 
//Save/load selected states Hash from the session 
//this can also be implemented in the ViewState 
private Hashtable SelectedStates 
{ 
    get 
    { 
        if (this._selectedState == null) 
        { 
            _selectedState = this.Session["_selectedState"] as Hashtable; 
            if (_selectedState == null) 
            { 
                _selectedState = new Hashtable(); 
                this.Session["_selectedState"] = _selectedState; 
            } 
        } 
 
        return this._selectedState; 
    } 
} 
 
protected void TaxonomiesRadGrid_ItemCommand(object source, GridCommandEventArgs e) 
{ 
    //save the expanded/selected state in the session 
    if (e.CommandName == RadGrid.ExpandCollapseCommandName) 
    { 
        //Is the item about to be expanded or collapsed 
        if (!e.Item.Expanded) 
        { 
            //Save its unique index among all the items in the hierarchy 
            this.ExpandedStates[e.Item.ItemIndexHierarchical] = true; 
        } 
        else //collapsed 
        { 
            this.ExpandedStates.Remove(e.Item.ItemIndexHierarchical); 
            this.ClearExpandedChildren(e.Item.ItemIndexHierarchical); 
        } 
    } 
    //Is the item about to be selected  
    else if (e.CommandName == RadGrid.SelectCommandName) 
    { 
        //Save its unique index among all the items in the hierarchy 
        this.SelectedStates[e.Item.ItemIndexHierarchical] = true; 
    } 
    //Is the item about to be deselected  
    else if (e.CommandName == RadGrid.DeselectCommandName) 
    { 
        this.SelectedStates.Remove(e.Item.ItemIndexHierarchical); 
    } 
} 
 
protected void TaxonomiesRadGrid_DataBound(object sender, EventArgs e) 
{ 
    //Expand all items using our custom storage 
    string[] indexes = new string[this.ExpandedStates.Keys.Count]; 
    this.ExpandedStates.Keys.CopyTo(indexes, 0); 
 
    ArrayList arr = new ArrayList(indexes); 
    //Sort so we can guarantee that a parent item is expanded before any of  
    //its children 
    arr.Sort(); 
 
    foreach (string key in arr) 
    { 
        bool value = (bool)this.ExpandedStates[key]; 
        if (value) 
        { 
            TaxonomiesRadGrid.Items[key].Expanded = true; 
        } 
    } 
 
    //Select all items using our custom storage 
    indexes = new string[this.SelectedStates.Keys.Count]; 
    this.SelectedStates.Keys.CopyTo(indexes, 0); 
 
    arr = new ArrayList(indexes); 
    //Sort to ensure that a parent item is selected before any of its children 
    arr.Sort(); 
 
    foreach (string key in arr) 
    { 
        bool value = (bool)this.SelectedStates[key]; 
        if (value) 
        { 
            TaxonomiesRadGrid.Items[key].Selected = true; 
        } 
    } 
} 
 
protected void grdRebind_Click(object sender, EventArgs e) 
{ 
    TaxonomiesRadGrid.Rebind(); 
} 
#endregion 


Iana Tsolova
Telerik team
 answered on 08 Jun 2010
2 answers
159 views
I have a few questions about resizing columns in a radGrid.

1.  When I have EnableRealTimeResize=true set on my grid, a pop up appears saying the width in pixels of the column when it is being resized.  Ideally, I'd like to show this width as a % rather than a pixel width....is this possible?  If not, can I suppress this pop up?

2.  I need to change data in the grid when a column is resized.....what is the best way to go about this?  I don't see a server event that helps me.

Thanks!
Tsvetina
Telerik team
 answered on 08 Jun 2010
2 answers
118 views
Hello.I suppose i have done something to the configuration because i don't get the correct output from something like
<ul>
    <li>tt
    </li>
</ul>
I don't see the bullet.
Any ideas?


tasos
Top achievements
Rank 1
 answered on 08 Jun 2010
3 answers
145 views

Hello,

I am using Q1 2010 SP1.

In this version, we have scheduler Recurrence Editor. this is very good feature which I like most in this version. 

Currently we have to check recurrence checkbox, then the Panel get visible.

Will you please help in viewing recurrence panel directly on load. ? no need to check checkbox.

Thank You!!

Ashish Sapkale

Dave
Top achievements
Rank 1
 answered on 08 Jun 2010
1 answer
83 views
Hello there.

I have just upgraded to the newest telerik component from using the 2008 version.

The only problem is that in 2008 the letter 'æ' stod as it does in the html code, wich is what i saves to the database. But not i stands as &aelig; wich conflicts with the purpose of the text i need to save. Is there any way to change this encoding.
Rumen
Telerik team
 answered on 08 Jun 2010
2 answers
91 views
Hi

I have a page where I am adding the items programmatically and specifying the colour of the bar. This works fine except that the FillType="Solid" specified in my ascx seems to be overidden and the bars fade with a gradient.

ascx:
 <telerik:RadChart ID="crtResults" runat="server"  SeriesOrientation="Horizontal" SkinsOverrideStyles="false" 
            OnItemDataBound="crtResults_ItemDataBound" AutoLayout="true"> 
            <ChartTitle> 
                <TextBlock Text="Title"> 
                </TextBlock> 
            </ChartTitle> 
            <Series> 
                <telerik:ChartSeries Name="Series" Type="Bar" > 
                    <Appearance LegendDisplayMode="Nothing" > 
                    <Border Visible="false"/> 
                    <FillStyle FillType="Solid" MainColor="White"></FillStyle> 
                    <LabelAppearance Visible="false" ></LabelAppearance></Appearance> 
                   
                </telerik:ChartSeries> 
            </Series> 
        </telerik:RadChart> 
 then adding items in code-behind:
 crtResults.Series[0].AddItem(1, "label", Color.Red);  

If I remove the Color param in the code, all bars display a solid white.

Thanks


david mills
Top achievements
Rank 1
 answered on 08 Jun 2010
1 answer
264 views
I have a RadTreeView placed in a PageView of RadTabStrip and tried to support keyboard access, but the TreeView won't be on focus when pressing Tab key. The TreeView is populated by datasource in DataBind. I want to focus on the first checkbox in the tree. Please advise.
<telerik:RadPageView ID="MCCCodePageView" runat="server" CssClass="tabpageview">  
<div style="margin:10px">  
   <div class="helpmodtitle">  
      <asp:Label ID="MCCCodePageViewHeader" runat="server" ></asp:Label> 
      <a href="#"><img alt="Help" border="0" src="../images/helpicon.png"/></a> 
   </div> 
   <telerik:RadTreeView ID="TransCatTree" runat="server" 
    Width="95%" 
    Height="300" 
    CheckBoxes="true" 
    TriStateCheckBoxes="true" 
    CheckChildNodes="true" 
    BackColor="White"      
    Skin="Outlook" 
    BorderWidth="1px" 
    BorderColor="#94A7B5"      
    ShowLineImages="false" 
    MultipleSelect="false" 
    TabIndex="1" 
    AccessKey="W" 
    OnClientNodeChecked="TransCatTree_ClientNodeChecked">  
   </telerik:RadTreeView> 
</div> 
</telerik:RadPageView> 
The property TriStateCheckBoxes set True seems cause the issue not getting onFocus. If set as false, TreeView get focus on tab. How to enable TriStateCheckBoxes and get tab focus?
Nikolay Tsenkov
Telerik team
 answered on 08 Jun 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?