Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 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
224 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
77 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
348 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
168 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
8 answers
465 views
I have implemented a solution utilizing the Advanced Templates Example

Update/Insert/Delete are working fine but the CSS and Javascript are not working.

For example if I leave the "Description" field blank the required field validator does not display its error message (it does not post back either).  Also, If I click the "All Day" checkbox the time slots do not disappear...nothing happens.

I have added the AdvancedForm.js file and verified it gets loaded.  I put an alert("test");  message in the file and the message displays correctly.

The only thing I can think of is that I have the Scheduler in a user control that resides on an .aspx that is contained in a master page.

Any help is greatly appreciated.

Thanks,

Felipe

Nitinkumar
Top achievements
Rank 1
 answered on 07 May 2013
4 answers
126 views
Hi,
         I am using the ascx control. I am assigning values to it from aspx page on showing the control. the values are not updating. I need a very quick reply.






Thanks



Dhamodharan
Top achievements
Rank 1
 answered on 07 May 2013
3 answers
78 views
hi guys
i have recently found that my radRotator element, which i use it to show news updates on my site, dont work at all on IE browsers with compatibility mode. also dont work in IE10 in any mode... 
any ideas why.
i use radRotator  on my master page and this is the decleration:
 <telerik:RadRotator CssClass="Newslink" runat="server" ID="radRotator" RotatorType="AutomaticAdvance"
                        ScrollDirection="Up" Width="100%" Height="190px" BorderWidth="0.5" BorderStyle="Groove"
                        ScrollDuration="500" FrameDuration="2000">
                        <ItemTemplate>
                            <div class="NewsItem">
                                <asp:HyperLink runat="server" ID="hlNews" Text='<%# Eval("NewsTitle") %>' NavigateUrl='<%# "/Yoshra/Forms/NewsExpansion.aspx?NewsID=" & Eval("NewsId") %>'></asp:HyperLink>
                                <br />
                                <span class="Newslink">
                                    <%# ShowDateWithWeekDay(Eval("NewsDate"))%></span>
                            </div>
                        </ItemTemplate>
                    </telerik:RadRotator>
where "ShowDateWithWeekDay" is method that run on server side
 regards
maor
Slav
Telerik team
 answered on 07 May 2013
1 answer
162 views
I will try to explain as best as possible the issue I am finding with the File Explorer control.

So I have user Bob upload file test.txt into the website.
User Jenny downloads that Text.txt and makes changes to it and save it to My documents on the local drive.

Then Jenny uploads that file back to the website and overwrites the original with her new changes.

If Jenny decides to make more changes to that file she goes and downloads that file again from the website. (Lets just say 10 minutes later)
But.. when Jenny downloads that file again and opens it she no longer has her changes from before but has the original file uploaded by Bob. 

What I think is happening is that the file itself is cached in the temporary IE download files and IE doesn't actually download the file again it retrieves it from the previously downloaded files. 

How do I force the file to download the new file.  I know it's the new one because the timestamp of the file has changed from when Bob loaded it and when Jenny changed it.
Vessy
Telerik team
 answered on 07 May 2013
0 answers
58 views
I have two Multi column dropdowns on a screen. When i change value in first dropdown other dropdown need to bind data.
I was able to bind data to first Multi column rad combo box, but when i change the value in first drop down and does postback and gets information for second dropdown and try to bind data to it. It doesnt, I am trying to find solution since couple of days, but no luck.

Ram
Top achievements
Rank 1
 asked on 07 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?