Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
291 views
Hi,

I have a Htmlchart with 200 columns displayed as a BarSeries. The bar series is displayed with some pattern, where it is showing up with a lighter color for some columns at regular intervals( like a pattern).

I need to show all the columns in the same color without any difference in the color of the series for all columns.



Danail Vasilev
Telerik team
 answered on 11 Apr 2013
2 answers
113 views
Hi,

I have a radgrid that is used with group by expressions and it shows 3 rows. It appears I'm having browser compatibility issues. In ie part of the grid is shown to the left and the other part is off to the right. In firefox it's displayed perfectly. I hope my explanation is understood, I also attached photos if each browsers presentation. Hopefully someone can help.

Thanks,
Ron.
Marin
Telerik team
 answered on 11 Apr 2013
1 answer
184 views
Hello

I want to HIDE & SHOW Rad Splitter from Client using jQuery, how do I achieve that?
Vessy
Telerik team
 answered on 11 Apr 2013
1 answer
61 views
Hi all,

I am using sample of (Grid - Client Edit with Batch Server Update)

Only different is I use  DataTable to bind the grid instance of using asp:SqlDataSource.

Dim objGetBillDoc As New XEFM.FmAcWoTransaction
Dim ds As New DataSet
ds = objGetBillDoc.GetBillingDocument(StrBillNo, strDocType, strTransporttype, strTradeType)
RadGrid1.DataSource = ds.Tables(
"BillingDocumentDetail")
RadGrid1.DataBind()


Problem is, When I click the header to sort, RadGrid1 is disapper.

Any suggestion which code need to be bind for sorting.
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2013
3 answers
177 views
Following the online demos for Binding to Generic Lists and Defining Resources as a guide, I have attempted to use resources to style my appointments. 

After running DataBind(), I can see that each Appointment has a resource but when the scheduler loads up, the styles are not taking effect. When I look at the page's html source, the appointment element has class="rsApt " (notice the space), not class="rsApt User".

The Defining Resources example source shows class="rsApt Alex" or Charlie or Bob.  The Binding to Generic List examples source shows the same thing that I am seeing.

Is this a bug, or is this functionality that is not available when binding to generic lists?  Any Ideas?
Boyan Dimitrov
Telerik team
 answered on 11 Apr 2013
4 answers
118 views
Whenever I put HTML into the Group Header Item, as per Telerik instruction, eroneous "<p> </p>"
tags are being inserted above and below my content.
If I just have plain text (ie not HTML) then I don't get this behavour.
I need to use HTML to format my data/text.

This is my code, using literal but it didnt make any difference whether directly or via the literal.
protected void gridResults_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
 
    if (e.Item is GridGroupHeaderItem)
    {
        StringBuilder sb = new StringBuilder();
 
        sb.Append("<div style=\"width:500px; overflow-x:auto; overflow-y:hidden; \">");
        sb.Append("  <div style=\"width:400px;\">");
        sb.Append("    <div style=\"width:100px; float:left;\">Name </div>");
        sb.Append("    <div style=\"width:100px; float:left;\">Year Level </div>");
        sb.Append("    <div style=\"width:100px; float:left;\">Classes </div>");
        sb.Append("  </div>"); // row.
        sb.Append("</div>"); // table.
 
        GridGroupHeaderItem groupHeaderItem = (GridGroupHeaderItem)e.Item;
        Literal literal = new Literal();
        literal.Text = sb.ToString();
        groupHeaderItem.DataCell.Controls.Add(literal);
    }
}
PatrickS
Top achievements
Rank 1
 answered on 11 Apr 2013
4 answers
224 views
Hi

Is it possible to disable the content area of a PanelBar ie the RadPanelItem section., such that anything in the content are cant be clicked, but the sections can be expanded and collapsed.

Andy

Andy Green
Top achievements
Rank 2
 answered on 11 Apr 2013
3 answers
94 views
In my grid I have dynamically Created some Template Columns with TextBox as ItemTemplate control. My problem is that i couldnt
find that control When an external Save button is clicked. My code is here. Can anyone tell me what is the problem. Thanks in advance

  private void rgAddColumns()
        {
            int c = rgEmpOverTimeCalculation.Columns.Count;
 
            OvertimeTypeList objlist = new OvertimeTypeList();
            ListParams LP = new ListParams();
            LP.Add("@OvertimeTypeID", "%");
             
            LP.Add("Culture", SecurityUtility.Culture());
            objlist.GetList(LP);
 
            int TypeCount = objlist.Count;
            for (int k = 0; k < TypeCount; k++)
            {
                GridTemplateColumn Column = new GridTemplateColumn();
                
                Column.HeaderText = objlist[k].OvertimeType.ToUpper();
                Column.HeaderStyle.Font.Size =10;
                Column.HeaderStyle.ForeColor =System.Drawing.Color.Maroon;
                Column.HeaderStyle.Font.Bold = true;
                Column.UniqueName = objlist[k].OvertimeType.Replace(" ", String.Empty) + objlist[k].OvertimeTypeID;
                Column.Visible = true;
                 
                Column.ItemTemplate = new MyTemplate(Column.UniqueName);
 
                rgEmpOverTimeCalculation.MasterTableView.Columns.Add(Column);
            }
        }
 
 
public class MyTemplate : ITemplate
{
 
    protected RadNumericTextBox textBox;
    protected CheckBox boolValue;
    private string colname;
    public MyTemplate(string cName)
    {
        colname = cName;
    }
 
    
    public void InstantiateIn(System.Web.UI.Control container)
    {
 
        textBox = new RadNumericTextBox();
        textBox.ID = "txt"+colname;
        container.Controls.Add(textBox);
        
 
    }
 
}
   protected void rbtnSaveOvertime_Click(object sender, EventArgs e)
        {
            foreach (GridDataItem item in rgEmpOverTimeCalculation.MasterTableView.Items)
            {
                RadNumericTextBox txtOvertimeInHrs = (RadNumericTextBox)item[rgEmpOverTimeCalculation.Columns[5].UniqueName].FindControl("txt" + rgEmpOverTimeCalculation.Columns[5].UniqueName);     //returns null
            }
        }
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2013
1 answer
137 views
Hi,

When I do the Cut-Paste operations on the folder in RadTree, the Context menu gets fixed in the tree.
For Ex.
If we cut the folder and paste it in some another folder. Then again cut the same folder and paste it in its previous position.
Then, there is a javascript error occurs and the context menu gets fixed until, we are not refreshing the page.

Please follow the steps in attached screen shots.

I will provide the code of CutPaste and Refresh tree node, if necessary.
--
Prakash
Kate
Telerik team
 answered on 11 Apr 2013
1 answer
125 views
We have an event receiver that gets called on ItemAdded of a list. This list implements the RadEditor on a 'Body' field. When the code grabs the value of this field, is contains the entire markup instead of just the text which the user has entered in the editor. How do we just get the text and not the HTML?
public override void ItemAdded(SPItemEventProperties properties)
{
    SPListItem postItem = properties.ListItem;
      string body = postItem["Body"]; //This returns all markup - we only want the user entered text from radeditor
}
Stanimir
Telerik team
 answered on 11 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?