Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views
I have created User control with asp controls and add tool tips for that controls.

Then i add that user control into rad grid GridTemplateColumn .

when after the grid data load those tool tips are not working.

Please help me to solve this problem
Princy
Top achievements
Rank 2
 answered on 08 May 2013
3 answers
200 views
Hi,

I am trying to get an item in Radgrid using datakeyvalue like this:
I have done on aspx page like this:
<MasterTableView DataKeyNames="ID">

<

 

 

telerik:GridBoundColumn AllowFiltering="False" DataField="ID" Groupable="False" HeaderText="ID" ReadOnly="True" Reorderable="False" ShowFilterIcon="False" UniqueName="ID" Display="false">

 

 

 

<ColumnValidationSettings>

 

 

 

<ModelErrorMessage Text="" />

 

 

 

</ColumnValidationSettings>

 

 

 

</telerik:GridBoundColumn>

 


</MasterTableView>

There are many other columns bound.
int IDValue = 85;

GridDataItem item = RadGrid1.MasterTableView.FindItemByKeyValue("ID", IDValue);

This returns item as null. When I check RadGrid1.Items.Count. It is returning number of rows in the grid in immediate window. So, to trouble shoot, I found out which item has ID as 85 and then in immediate window in asp.net I did this:

RadGrid1.Items[25].Cells[6].Text

This one is returning me the value. That means there is an item with ID value as 85 in the grid

why is Master table code is not working.

Thanks,
Prathiba.
Shinu
Top achievements
Rank 2
 answered on 08 May 2013
1 answer
53 views
Hello,
In a RadGrid i need to know some properties to merge and combine rows with some subtotals.
I need to merge the first column with some rows and want to write the subtotal of each row.
Sorry for my english.

Thanks
Princy
Top achievements
Rank 2
 answered on 08 May 2013
11 answers
205 views

Hi,
I have usercontrol in which 'RadDockLayout','RadDockZone' and 'RadDock' is defined. Now this usercontrol is binded with in datalist. So for each row these three controls will loaded dynamically.


Now, My question is, how to maintain RadDock state (Collapse/Expand) at each postback?

Please respond ASAP... Thanks

Christophe
Top achievements
Rank 1
 answered on 08 May 2013
1 answer
121 views
i have AsyncUpload control , its not appear inside rad grid edit form. 
the grid is inside rad:ajaxpanel , when remove the ajaxpanel and replace it with ajaxManager and setting configration , every thing go fine.
but my form is very large i cant ajaxify control by control.
please help F1 :) 


Princy
Top achievements
Rank 2
 answered on 08 May 2013
1 answer
175 views
I am getting error "No child records to display." while trying to bind a Hierarchygrid

Here is the code, please help.

<telerik:RadGrid ID="RadGrid1" runat="server" OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
            <MasterTableView DataKeyNames="PayerID">
                <DetailTables>
                    <telerik:GridTableView runat="server" Name="Plan" DataKeyNames="PlanID">
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="PlanID" MasterKeyField="PayerID" />
                        </ParentTableRelation>
                    </telerik:GridTableView>
                </DetailTables>
            </MasterTableView>
        </telerik:RadGrid>
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RadGrid1.DataSource = GetPayer();
            RadGrid1.DataBind();
        }
    }
 
    DataTable GetPlans()
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("PlanID", typeof(string));
        dt.Columns.Add("PayerID", typeof(string));
        dt.Columns.Add("PlanName", typeof(string));
        dt.Columns.Add("HQState", typeof(string));
        dt.Columns.Add("OPState", typeof(string));
        dt.Columns.Add("Status", typeof(string));
        dt.Rows.Add("0022", "0001", "Red One", "NJ", "NJ", "Open");
        dt.Rows.Add("0002", "0002", "Red One", "NJ", "NJ", "Open");
 
        return dt;
    }
 
    DataTable GetPayer()
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("PayerID", typeof(string));
        dt.Columns.Add("PayerName", typeof(string));
        dt.Columns.Add("HQState", typeof(string));
        dt.Columns.Add("OPState", typeof(string));
        dt.Columns.Add("Status", typeof(string));
        dt.Rows.Add("0001", "Red One Payer", "NY", "NY", "Open");
 
        dt.Rows.Add("0002", "Red Two Payer", "NJ", "NJ", "Open");
        return dt;
    }
    protected void RadGrid1_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
    {
        e.DetailTableView.DataSource = GetPlans();
    }
}
Princy
Top achievements
Rank 2
 answered on 08 May 2013
1 answer
212 views
Hi,

I would like to dynamically assign the id property of a RadToolBarButton dynamically in my code behind sicnce is is supposedly a readonly property. Is there any workaround to get this done? I really need to assign a fixed id to one of the buttons since it is being reference in my JQuery code using its id.




private void PopulateRadToolBar()
{
            RadToolBarItemCollection rtb = RadToolBar.Items;
            if (!String.IsNullOrEmpty(WebPart.RadToolBarValues))
            {
                var properties = WebPart.RadToolBarValues.Split(@";".ToCharArray());
                rtb.Clear();
 
                foreach (var singleProperty in properties)
                {
                    var itemRow = singleProperty.Split(@",".ToCharArray());
                    button = new RadToolBarButton();
                    button.ID = itemRow[0];    // ERROR HERE SINCE ID IS A READ ONLY PROPERTY      
                    button.Text = itemRow[1];      
                    button.NavigateUrl = itemRow[2];
                    button.Target = itemRow[3];    
                    button.ImageUrl = itemRow[4];  
                   rtb.Add(button);
            }
            else
            {
                rtb.Clear();
            }
        }
}

Syed
Top achievements
Rank 1
 answered on 07 May 2013
2 answers
71 views
Hi, I'm currently investigating using the RadEditor for a project at work, and I am trying to figure out if it is possible to set up the editor so that the current author (set programmatically from the database) can only edit/delete their own comments.  I have gone through google, but the word "comment" appears on just about every page on the internet, so I have not had any luck in figuring out how to do this.

Thanks,

Paul Griffin
Paul
Top achievements
Rank 1
 answered on 07 May 2013
1 answer
333 views
Hello,

I can Apply font Size, font name and Font wight (Bold) to Scale Label.

But I am not able to apply Italic or non italic to font.

How to apply it ??

Which Property set for italic.

For exmaple :-

RadRadialGaugepreview.Scale.Labels.Font =

 

"normal 7px Arial,Verdana,Tahoma"

How to apply Italic in above example ?

Thank you.

 

Danail Vasilev
Telerik team
 answered on 07 May 2013
5 answers
153 views
Hello Team,
I am using a Rad Html Chart to display contents from Database, also i have placed the chart inside a Rad Dock. The chart which i use is a Drill Down Chart. It gets loaded well and good for the first time. But when i make a click on the client series item the drill down chart disappears. 
Also i use Rad Ajax Manager in Master Page and Chart is in client page. Can you please offer me a solution.
Danail Vasilev
Telerik team
 answered on 07 May 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?