Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
I have an absolutly positioned div that I dynamically load other relativly positioned divs into it. Each of these divs have a ToolTip on them. When the ToolTip comes up it does fine on overlaying the divs that are next to it, but has a problem with things that are below it on the page. In FF I don't have this problem within the same absolutly positioned div, but I do have the same problem if I have another absolutly positioned div and the ToolTip tries to come up over my other divs.

I have tried setting the z-index on the ToolTip to 1000 and the other divs to 1, but still no help.

And I do know that IE does have some problems with layering divs, but if you have any ideas I would really apreciate the suggestions.
Thanks,
Russ
Ed
Top achievements
Rank 1
 answered on 15 Feb 2009
2 answers
176 views

Hi!

I have added rad grid control on my page which allows the single selection for row. This is absolutely fine as per my requirment but.. I need to show radio buttons instead of check boxes. I think from user point of view, we always give radio buttons whenever there is a scenario for single selection and checkboxes for multiple selection. So in this case also I wanted the same, i tried to explore enough on this .. but I am unable to get the solution in teleric rad grid control api.

Do we have any workaround for this???

Please Reply ASAP
Thanks!

Nitin Katiyar
Top achievements
Rank 1
 answered on 15 Feb 2009
3 answers
443 views

i have a link inside the gridtemplatecolumn of a grid.

on click of that link i call a js function.
I need to know the DataKey value of that row in which the link was clicked in the javascript function.

How can i get the key value on client side.
I was trying to do something like :

 

var

masterTable = $find("<%=RadGridContact.ClientID%>").get_masterTableView();

 

 

var contactId = masterTable.get_selectedItems()[0].getDataKeyValue("ContactID");

But the problem is that my row is not selected so i get the selecetedItems as null.

can you suggest?

 

Steve Y
Top achievements
Rank 2
 answered on 15 Feb 2009
3 answers
149 views
This is in continuation of my forum posting : http://www.telerik.com/community/forums/aspnet-ajax/grid/having-trouble-with-grid-css.aspx

I have a Grid with a NestedViewTemplate. Inside the NestedViewTemplate I load another grid.

I am having a couple of issues:

Issue #1 (I am still waiting on this from the posting above): My nestedviewtemplate display starts from the second column of the main grid. I want it to be aligned to the main grid.

Issue #2 : For some reason the data in the columns seem to be right aligned. Something is forcing them out of the grid bounds due to which all the columns and data is not properly visible.
I am unable to figure out whats pushing them to the right. My Table layout for the mastertableview is specified as fixed.

Can you please help... I am really stuck with this display issue.
newbie
Top achievements
Rank 1
 answered on 13 Feb 2009
6 answers
211 views
Hi,

I have a problem with a grid into a FormTemplate (edit). This 2 grid are <Scrolling AllowScroll="true"/>. When i switch in editMode, 2 scrollbars appear, but this first scrollbar (from 1st grid in editmode) when i scroll this my second (into my editTemplate) stay at same position. 

If i set <Scrolling AllowScroll="False"/> this is ok because i have only 1 scrollbar.

Show the result at this URL : Show me

Skin="Office2007"

Ty
Jack
Top achievements
Rank 1
 answered on 13 Feb 2009
1 answer
81 views
hi; I keep getting an error when trying to databind or rebind a radgrid. The scenario is
MainPage.aspx has two control pages , Applicants.ascx and ApplicantDetail.ascx. Applicants.ascx build a gridview and allows user to select. ApplicantDetails.ascx takes selectedValue and builds detail page.  If I don't call for databind then the grid loads one step behind. This will correct itself when I ask it to edit,delete or insert a new record and no error occurs. However if I databind as I have it written or anywhere else ie. Page_prerender, Page_load the following error comes up.
" Script Control 'RadTextBox1' is not a registered script control. Script controls must be registered using registerScriptControl() before callign RegisterScriptDescriptors(). Parameter name: ScriptControl() "

I do have the ApplicantDetailGrid wrapped in an ajaxpanel, but removing this did not make any difference. It seems to have everything to do with how I am databinding. thanks for any assistance.

MainPage code
Protected Sub Applicants1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Applicants1.PreRender  
        ApplicantDetail1.ApplicantID = Applicants1.SelectedGridItem 'The Detail page  
End Sub 

ApplicantDetail page code
Public Property ApplicantID() As String  
        Get  
            Return lblAppID.Text  
        End Get  
        Set(ByVal value As String)  
            lblAppID.Text = value 
            RadGrid1.Databind()  
'Radrid1.Rebind()  
        End Set  
    End Property 

Applicant Detail Source
<asp:SqlDataSource ID="SqlDataSource1" runat="server"   
ConnectionString="<%$ ConnectionStrings:Conn %>" 
                DeleteCommand="DELETE FROM [ATS_Prescreen] WHERE [PreScreenID] = @PreScreenID"   
                InsertCommand="INSERT INTO..." 
                SelectCommand="SELECT * FROM [table] WHERE ([AppID] = @AppID)"   
                UpdateCommand="UPDATE table ... WHERE [PreScreenID] = @PreScreenID">  
                <SelectParameters> 
                    <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> 
                </SelectParameters> 
                <DeleteParameters> 
                <asp:Parameter Name="PreScreenID" Type="Int32" /> 
                </DeleteParameters> 
                <UpdateParameters> 
                Params...  
                </UpdateParameters> 
                <InsertParameters> 
                <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> 
                    Insert Params..  
                </InsertParameters> 
            </asp:SqlDataSource>      
        <asp:Label ID="lblAppID" runat="server" Text="Label" Visible="False"></asp:Label> 



Tsvetoslav
Telerik team
 answered on 13 Feb 2009
1 answer
94 views
Hi

I have a page with three tabs on a RadTabStrip linked to a RadMultiPage with three RadPageViews. Each view has a RadRotator - one for each tab. When the page loads the rotator visible in the selected tab starts but the other two do not. How can I get them started? This is my current approach which does not appear to work:

function

 

OnTabSelected(sender, eventArgs) {

 

    var rotator = $find("<%= Rotator.ClientID %>");

    rotator.startAutoPlay();

 

}

Thanks
Tristan
Fiko
Telerik team
 answered on 13 Feb 2009
2 answers
176 views
Hi,
I set the RadWindow's event to Javascript... the first time is ok, but i do a refresh with radwindow's button, my events aren't raised.

This is my code:

<body onload="OnClientPageLoad()">
function OnClientPageLoad(sender, eventArgs){                   
                var oWnd = GetRadWindow();   
                oWnd.add_pageLoad(OnClientResize);                   
                oWnd.add_resize(OnClientResize);   
                oWnd.add_command(OnClientCommand);   
                return false;   
            }   
   
            function OnClientCommand(sender, eventArgs) {                   
               alert(OnClientCommand);   
            }   
   
            function OnClientResize(sender, eventArgs) {    
               alert(OnClientResize);   
            }   
 
 

Thak.

Alessio.
Fiko
Telerik team
 answered on 13 Feb 2009
1 answer
105 views
I have a radtoolbar that has a single drop down button on my page. The problem is with the display. I do not want the toolbar to stretch all the way across since there is only one button. I tried to set the width to some small value and it seems to change the display. But there is a small line on the top of the toolbar that extends to the full width. Can anyone help with this?

Thank you,
Vithiya


Alex Gyoshev
Telerik team
 answered on 13 Feb 2009
3 answers
206 views
Hi,

We consistently get an "Out of memory." error when using GradientMode in a Pie Chart. 

No panic - we simply comment out this line
                csi.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Center; 

and all is fine.  The maximum # of items loaded in the series is 14.

Hope it's not something we're doing wrong!   :-)

Cheers ..


// .aspx 
 
        <telerik:RadChart ID="uxBreakup" runat="server" Width="700px" Height="450px">                     
            <ChartTitle> 
                <TextBlock Text="Recent Listings Category Breakup" /> 
             </ChartTitle> 
        </telerik:RadChart> 
 
        <telerik:RadChart ID="uxAllBreakup" runat="server" Width="700px" Height="450px"
            <ChartTitle> 
                <TextBlock Text="All Listings Category Breakup" /> 
             </ChartTitle> 
        </telerik:RadChart> 
 
//--------------------------------------------------------------------------------------- 
 
// .aspx.cs 
 
    public void BreakupReport() 
    { 
        DoBreakupReport(uxBreakup, reportStartDate, reportEndDate, "Breakup of Recent Listings"); 
        DoBreakupReport(uxAllBreakup, new DateTime(2000, 1, 1), new DateTime(2999, 1, 1), "Breakup of All Listings"); 
    } 
 
    public void DoBreakupReport(RadChart uxChart, DateTime start, DateTime finish, string title) 
    { 
        Color[] colors = { Color.FromArgb(40, 0, 187, 239), Color.FromArgb(0, 187, 239), 
                                    Color.FromArgb(40, 15, 191, 15), Color.FromArgb(15, 191, 15), 
                                    Color.FromArgb(40, 255, 179, 62), Color.FromArgb(255, 179, 62), 
                                    Color.FromArgb(40, 255, 79, 0), Color.FromArgb(255, 79, 0) }; 
 
        uxChart.Clear(); 
        ChartSeries csBreakup = uxChart.CreateSeries("Breakup", System.Drawing.Color.Goldenrod, System.Drawing.Color.Goldenrod, ChartSeriesType.Pie); 
 
        using (FetchSQL sql = new FetchSQL(string.Format("SELECT c.CategoryName, Count(*) FROM vwclassifiedadverts a inner join classifiedcategories c on a.ParentCategoryID=c.CategoryID " + 
                                            "WHERE StartUTC BETWEEN {0} AND {1} GROUP BY c.CategoryName ORDER BY c.CategoryName", 
                                           DB.MySqlDateTime(start), DB.MySqlDateTime(finish)))) 
        { 
            int i = 0
            while (sql.Read()) 
            { 
                ChartSeriesItem csi = new ChartSeriesItem(sql.AsInteger(1)); 
                csi.Label.TextBlock.Text = sql.AsString(0) + " - #%"; 
                csi.Name = sql.AsString(0); 
                csi.Appearance.FillStyle.MainColor = colors[i * 2]; 
                csi.Appearance.FillStyle.SecondColor = colors[i * 2 + 1]; 
                csi.Appearance.Border.Color = Color.DimGray; 
                csi.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Gradient; 
                //  .. this GradientFillStyle causes "OUt of Memory" 
                csi.Appearance.FillStyle.FillSettings.GradientMode = Telerik.Charting.Styles.GradientFillStyle.Center; 
                csBreakup.Items.Add(csi); 
                i = (++i) % 4;                 
            } 
        } 
 
        uxChart.ChartTitle.TextBlock.Text = title
    } 
 
 
//--------------------------------------------------------------------------------------- 
 
 
[OutOfMemoryException: Out of memory.] 
   System.Drawing.Drawing2D.PathGradientBrush..ctor(GraphicsPath path) +171505 
   Telerik.Charting.RenderEngine.GetGradientBrush(RectangleF rect, FillStyle fill) +1673 
   Telerik.Charting.RenderEngine.GetBrush(FillStyle fill, RectangleF rect) +963 
   Telerik.Charting.RenderEngine.RenderPieSeries(ChartSeries series, Int32 seriesIndex) +2322 
   Telerik.Charting.RenderEngine.Render(ChartSeries series, Int32 index) +639 
   Telerik.Charting.RenderEngine.RenderPlotAreaElements(Boolean withGrid, Boolean withTicks) +861 
   Telerik.Charting.RenderEngine.Render(IContainer element) +263 
   Telerik.Charting.Chart.GetImage(Int32 width, Int32 height) +405 
 
[ChartException: An Unexpected error has occurred. Please review the InnerException for more information how to resolve the problem.] 
   Telerik.Charting.Chart.GetException(RenderEngine renderEngine, Exception ex) +455 
   Telerik.Charting.Chart.GetImage(Int32 width, Int32 height) +639 
   Telerik.Web.UI.RadChart.RenderClassic(HtmlTextWriter writer) +166 
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +351 
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +9 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59 
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37 
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26 
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896 
 
Giuseppe
Telerik team
 answered on 13 Feb 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?