Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
140 views
I am using a RadAjaxLoadingPanel which appears centered in the middle of the screen.
In my page I am also using some RadDocks. The problem is LoadingPanel always appears behind RadDocks.
How can I solve that ?
Pascal Vitoux
Top achievements
Rank 1
 answered on 21 Oct 2008
1 answer
116 views
Hi,

Is there a way to automaticly fill the edittemplate of the grid with the default edit template? now my template is empty. When i use a formview the template is filled automaticly when choosing template editing.
Yavor
Telerik team
 answered on 21 Oct 2008
2 answers
100 views
I'm following the example code which is this on the server side:
protected void Page_Load(object sender, EventArgs e)
{
 
if (!Page.IsPostBack)
 {
   RadTab tab1 =
new RadTab();
   tab1.Text =
"Tab 1";
   RadTab tab11 =
new RadTab();
   tab11.Text =
"Child 1";
   tab1.Tabs.Add(tab11);
   RadTab tab2 =
new RadTab();
   tab2.Text =
"Tab 2";
   RadTab tab3 =
new RadTab();
   tab3.Text =
"Telerik";
   tab3.NavigateUrl =
"http://www.telerik.com";
   RadTabStrip1.Tabs.Add(tab1);
   RadTabStrip1.Tabs.Add(tab2);
   RadTabStrip1.Tabs.Add(tab3);
 }
}
The RadTabStrip1 was defined. Now I want to add tabs programmatically and when I do the first line of
 RadTab tab1= new RadTab()
it gives me an error message.
'RadTab' is a 'namespace' but is used like a 'type'
What is going on here? Did I miss something during the installation?



Patrick
Top achievements
Rank 1
 answered on 21 Oct 2008
1 answer
112 views
I can't find the Tab class.
I'm using the Telerik.Web.UI class but when I look in it there is no Tab class. Did I download the correct Trial version. It appears all the Rad controls are there but when I try to use example code there seems to be some classes missing.
Thanks.
Patrick
Top achievements
Rank 1
 answered on 21 Oct 2008
6 answers
181 views
Hi,

I have encountered a problem, with SelectedDatePicker a child control of RadScheduler. The event I pasted below changes the default tooltip of SelectedDatePicker. Somehow AJAX requests change the tooltip value back to default. If I do a page refresh, the value is set as it should be again.

I would really appreciate your help,
thanks in advance, LP, Luka


 protected void RadScheduler1_Load(object sender, EventArgs e)
    {
        RadDatePicker dateP = this.RadScheduler1.FindControl("SelectedDatePicker") as RadDatePicker;
        dateP.ToolTip = "Izberite datum";
    }
Lukrs
Top achievements
Rank 2
 answered on 21 Oct 2008
2 answers
103 views
Hello..

I have a custom template edit form. The problem I have is that the edit form has a field that is required only when inserting a record. When editing a record it is optional.

I have a required field validator that I want to enable or disable depending if the form is shown in insert or edit mode.

To accomplish it, I need to know if there is an event I can implement where I can enable or disable the validator. I tried using EditCommand or ItemCommand (with "InitInsert" verification) but in both cases the edit form isn't accesible.

Any help will be greatly appreciated

Thanks
Jaime
Jaime
Top achievements
Rank 1
 answered on 21 Oct 2008
1 answer
413 views
Hey there!
As I'm from Germany, please excuse some Errors in your wonderful language :-)

I have the following problem:
I'm in train to ajaxify a fairly complex project with a masterpage and several stacked UserControls.

For this purpose and the Idea to ajaxify specific Controls through the code, I programmed a codepiece to add AjaxSettings to the AjaxManager on the MasterPage and find the given Controls automatically.
This is working good now except that the most important feature is missing: I find the Control's UniqueIDs, the LoadingPanel is displayed properly and at the right place, but the updated Control is not being updated at all.

If I add the AjaxSettings manually in the ASPX-Page, the Update (e.g. updating DateTime.Now) works fine - using the same UniqueIDs that are calculated in my Function SearchControl as follows.

In the following Codeblock, the CodeBehind-File of the Masterpage is shown, in which the functions are executed.

Can you explain, why this function produces a working Site with working LoadingPanels but without a working UpdatedControl?
Thanks so much in advance,
sincerely yours,
Felix

protected void Page_Load(object sender, EventArgs e) 
    { 
        AddAjaxSettings(this.Page, "Button1""TimeLabel""RadAjaxLoadingPanel1"); 
 
    } 
    protected void AddAjaxSettings(Control parent, string InitiateControl, string UpdatedControl, string LoadingPanel) 
    { 
        InitiateControl = SearchControl(parent, InitiateControl); 
        UpdatedControl = SearchControl(parent, UpdatedControl); 
        LoadingPanel = SearchControl(parent, LoadingPanel); 
        AjaxSetting AS1 = new AjaxSetting(InitiateControl); 
        AS1.UpdatedControls.Add(new AjaxUpdatedControl(UpdatedControl, LoadingPanel)); 
        RadAjaxManager.GetCurrent(Page).AjaxSettings.Add(AS1); 
    } 
 
    protected string SearchControl(Control parent, string ControlToSearch) 
    { 
        string output = ""
        if (parent.HasControls()) 
        { 
            foreach (Control c in parent.Controls) 
            { 
                if (c.UniqueID.ToString().EndsWith(ControlToSearch) == true
                { 
                    output = c.UniqueID; 
                    break
                } 
                else 
                { 
                    output = SearchControl(c, ControlToSearch); 
                    if (output != ""break
                } 
            } 
            return output; 
        } 
        else return output; 
    } 

Iana Tsolova
Telerik team
 answered on 21 Oct 2008
2 answers
401 views
Hi all,
I have just started developing with telerik and am having an issue with the autopostback.
I have a ddl with 3 columns; when the user selects an option from the ddl the page should postback and I would expect it to use the server-side SelectedIndexChanged method.
It postbacks, loading the Page_Load, though does not hit my SelectedIndexChanged method.

My Code:
<%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
            <rad:RadComboBox ID="ddlAccount" Skin="WindowsXP" runat="server" Height="190px" AutoPostBack="true"
                Width="300px" EnableEmbeddedSkins="false" > 
                <ItemTemplate> 
                    <table style="text-align: left;"
                        <tr> 
                            <td style="width:175px;"
                                <%# DataBinder.Eval(Container,  "DataItem.AccountName") %> 
                            </td> 
                            <td style="width:75px;"
                                <%#DataBinder.Eval(Container, "DataItem.City")%> 
                            </td> 
                            <td> 
                                <%#DataBinder.Eval(Container, "DataItem.IsTarget")%> 
                            </td> 
                        </tr> 
                    </table> 
                </ItemTemplate> 
            </rad:RadComboBox>   

Code behind:
    Protected Sub ddlAccount_SelectedIndexChanged(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddlAccount.SelectedIndexChanged 
 
      'My code here.... 
 
    End Sub 

I have tried adding  OnSelectedIndexChanged="ddlAccount_SelectedIndexChanged" to the aspx side though with no difference.

Can anyone help?

Thanks in advance
Paul
Telerik team
 answered on 21 Oct 2008
3 answers
176 views
Hi there,

I am creating a pie chart using the rad chart.  It is created by databinding a data table to the rad chart and there will be either 1 or 2 series.  The problem I have is the legend is just showing a white dot with the name of the series rather than each item within the series.  So as an example if its just 1 series, and they are sales totals by month.  So you will have 12 segments of varying size and the series title is something like "2008".  I know that I can put labels on the actual pie chart but we would rather have a the legend display the 12 months and their relevant colours.  Does anyone know how to do this?

Thanks

Will
Ves
Telerik team
 answered on 21 Oct 2008
2 answers
175 views
Is there a way to indicate to the user the end of the list has been reached in your thumbnail example, preferably by having the scrolling stop? (same for going backwards to the beginning of the thumbnail list)

http://demos.telerik.com/aspnet/prometheus/Rotator/Examples/Gallery/DefaultCS.aspx

Thank you,




Georgi Tunev
Telerik team
 answered on 21 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?