Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views

On rare occasion I have seen the animated GIF that I am using in my loading panel get left on the screen, and does not go away unless I reload the entire page.  Does anyone know if this is caused by something I am doing, or is just a bug / glitch?  My timing parameters are:

InitialDelayTime

 

="0"

 

 

MinDisplayTime="500"

 


Thanks,
Peter
Dimo
Telerik team
 answered on 02 Jan 2009
2 answers
161 views
HI
me question...
How to charge XML structure in RadGrid, and update/delete/insert?
Structure XML
<?xml version="1.0" standalone="yes"?>  
<DocumentElement> 
  <CoordsInput> 
    <comuna>ECE</comuna> 
    <name>ECT023</name> 
    <xCoord>-29.90716572</xCoord> 
    <yCoord>-70.7073</yCoord> 
  </CoordsInput> 
  <CoordsInput> 
    <comuna>MAI</comuna> 
    <name>MAI001</name> 
    <xCoord>-33.56446522</xCoord> 
    <yCoord>-70.78931253</yCoord> 
  </CoordsInput> 
</DocumentElement> 

Sorry me bad english

gonzalo
Top achievements
Rank 1
 answered on 02 Jan 2009
5 answers
209 views
I have multiple comboboxes and a "Add button" next to each combo box. User can type search term, select value and click on "Add button" for next step.

Combo1  - Add Button1
Combo2  - Add Button3
Combo3  - Add Button3



When user types search term in combo1 and selects a value and does not click on Button1 and goto 2nd drop down and search select and click on 2nd add button. Then click on 1st Add button,  Combo1 looses its selected value i.e. get_selectedItem returns null.


Is it possibe for combo1 to retain its value?

Thanks
Imtiaz

 

Atanas Korchev
Telerik team
 answered on 02 Jan 2009
1 answer
202 views
Here is what I gave. Can you please direct me to a article that will help me.

Scenario:
Have 3 different layers. (DAL, BLL and UI)
Using objectdatesource at UI layer.
RadGrid's datasource is assigned at design time.
Able to edit data using WebuserControl.
added "add new record" at commanditem to insert.
But it's not doing anything.

No form or user control is showing up. Can you tell me what am I missing. How to tie this event to show the usercontrol in insert mode or something.

I read the topic where in usercontrol has been used. But got an error in :
<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>


Help will be greatly appreciated.

-Sayak
Kevin Babcock
Top achievements
Rank 1
 answered on 02 Jan 2009
1 answer
138 views
Hi,

I am using RADAjaxClassic Version. I am trying to use RAD AjaxLoadingPanel. But the image in AjaxLoadingPanel is not showing up in the page. PFB the code below.

<asp:Panel ID="LoadingBarPanel" runat="server" Height="20px" Width="80px">
    <rad:AjaxLoadingPanel ID="AjaxLoadingPanel1" InitialDelayTime="0" MinDisplayTime="20" runat="server" Height="15px" IsSticky="True"
        Transparency="0" Width="75px">
        <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/loading4.gif" />
    </rad:AjaxLoadingPanel>
</asp:Panel>
<asp:Panel ID="Panel2" runat="server" width="100%">
    <rad:radajaxpanel id="RadAjaxPanel1" runat="server" width="100%"
        horizontalalign="NotSet" loadingpanelid="AjaxLoadingPanel1" scrollbars="None">
    <!-- RAD Grid Code and other code Here -->
</asp:Panel>

I expect the image in Panel1 to be shown when I do any operation in Panel 2. But that does not happen. Any suggestions are most welcome. Thanks.


Dimo
Telerik team
 answered on 02 Jan 2009
1 answer
232 views
Hi 
        I have set my site on "www.godaddy.com" hosting site. I have used telerik RadAjaxManager on my site, but it's giving error for the pages where RadAjaxManger is used. The error is below....

        "Not enough permissions.
        Inherit your page class from RadAjaxPage if you are running under Medium trust level."

Give you repply as early as possible.


Thankssssssssssssssss.
Dimo
Telerik team
 answered on 02 Jan 2009
3 answers
126 views

I am trying to get a loading panel to display during AJAX postbacks.  I have a RadGrid inside an Update Panel.  The help states "In order to have a LoadingPanel, you need to drag it to your web form from the toolbox just like any control. Then you can set a control to use a LoadingPanel using the design-time."  However, is does not explain how to "set a control to use a LoadingPanel."  Please point me to the documentation for doing this (I have been digging for a while but cannot find it.)

Thanks,
Peter
Peter
Top achievements
Rank 1
 answered on 02 Jan 2009
1 answer
113 views
 I have a chart which is going to show an area chart with one point for each day over a 6 month period. I only want to show an X axis item for each month of the 6 month period. I tried just adding an Item for each new month (ex. RadChart1.PlotArea.XAxis.AddItem("Name of Month")) but then the other set of data doesn't show up (eg. the chart is empty).

If I add one item for every item in my series (one for every day) I end up with a completely unreadable mess at the bottom of the chart. Instead, I tried added a new item, but setting it's text to empty, ex. RadChart1.PlotArea.XAxis.AddItem(""). That is also unreadable - it fills in the empty values with 0.

Here's what the code basically looks like:

this.radRollingChart.AutoLayout = true
this.radRollingChart.AutoTextWrap = true
 
Telerik.Charting.ChartSeries peopleSeries = new Telerik.Charting.ChartSeries("People", Telerik.Charting.ChartSeriesType.Area);                       
this.radRollingChart.Series.Add(peopleSeries); 
 
peopleSeries.PlotArea.XAxis.AutoScale = false
 
int currentMonth = 0
foreach (DataRow row in traffic.Rows) 
    DateTime ddate = (DateTime)row["ddate"]; 
    if (ddate.Month != currentMonth) 
    { 
        string date = ddate.ToString("MMM dd yyyy"); 
        this.radRollingChart.PlotArea.XAxis.AddItem(date); 
        currentMonth = ddate.Month; 
    } 
    else 
        this.radRollingChart.PlotArea.XAxis.AddItem(""); 
                 
    peopleSeries.AddItem((int)row["Count"]); 

Any thoughts on how I can do this?

Also, is there a way to shut off the value that appears at the top of each data point in the chart (above each "bar")?


PaulMrozowski
Top achievements
Rank 1
 answered on 02 Jan 2009
1 answer
117 views

I'm binding an Rad menu to two data tables.   The code below is working but I can't get rid of the root node generated by the code.  Any ideas?, Or is there a better approach?

Return XML ..

public static string GetMenuItemsFromSQL()  
    {  
        string xml = string.Empty;  
        string queryString = @"SELECT Department.Name AS name, Department.DepartmentID AS id,  
                               Department.Description AS desription, Category.Name AS name,   
                               Category.CategoryID AS id  
                              FROM Department AS department INNER JOIN  
                                Category AS category ON department.DepartmentID = category.DepartmentID  
                                ORDER BY department.DepartmentID                      
                                FOR XML Auto, ROOT('departments')";  
 
        string connectionString = WebSiteConfiguration.DbConnectionString;  
 
 
        using (SqlConnection connection = new SqlConnection(connectionString))  
        {  
            SqlCommand SelectCommand = new SqlCommand(queryString, connection);  
            connection.Open();  
            XmlReader xr = SelectCommand.ExecuteXmlReader();  
            xr.MoveToContent();// move to the root node  
            xml = xr.ReadOuterXml();  
        }  
        return xml;  

From .ascx.cs file.  Code behind
protected void Page_Load(object sender, EventArgs e)  
    {  
        XmlDataSource1.Data = CatalogAccess.GetMenuItemsFromSQL();  
          
    }  
    protected void RadMenu1_ItemDataBound(object sender, RadMenuEventArgs e)  
    {  
        if (e.Item.Level > 0)//set tooltip only for child items     
        {  
            XmlElement element = (XmlElement)e.Item.DataItem;  
            e.Item.Text = element.Attributes["name"].Value;  
              
        }     
    } 

From .ascx file.
<telerik:RadMenu ID="RadMenu1" Runat="server"   
    EnableTheming="True" DataSourceID="XmlDataSource1"   
    onitemdatabound="RadMenu1_ItemDataBound"  > 
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</telerik:RadMenu> 
 
 
<asp:XmlDataSource ID="XmlDataSource1" runat="server"></asp:XmlDataSource> 
Atanas Korchev
Telerik team
 answered on 02 Jan 2009
1 answer
164 views
I am binding a RadGrid to a collection of standard business objects and using the NestedViewTemplate to display more information about each item. On each object that is part of the grid there is a sub-collection of items that I am wanting to bind to a repeater that is inside my NestedViewTemplate. I tried using the ItemCreated event handler and my repeater is successfully found, but my GridItemEventArgs.Item.DataItem is null so it can't bind it. Is there a way to do this?
digitall
Top achievements
Rank 1
 answered on 02 Jan 2009
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?