Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hi,

   We are experiencing a problem with the RadGrid. This happens when the width of the grid is larger than the browser window. The right border does not appear at the right edge of the grid but rather at the right side of the browser window.

   I have attached images which shows the issue. I have a project that demonstrates this but can't seem to attach a zip file.

   Here is the aspx,

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
      
<telerik:RadGrid ID="RadGrid1" runat="server">
<MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
</telerik:RadGrid>
    </div>
    </form>
</body>
</html>

   Here is the code to populate the grid,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
  
public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt = new DataTable();
        for (int i=1; i<=20; i++)
        {
            dt.Columns.Add("Column" + i);
        }
        for (int i = 1; i <= 10; i++)
        {
            DataRow r = dt.NewRow();
            for (int j = 0; j <= 19; j++)
            {
                r[j] = "Value";
            }
            dt.Rows.Add(r);
        }
        RadGrid1.DataSource = dt;
        RadGrid1.DataBind();
    }
}

   I seem to be able to get around this on our real site by using a custom skin and any font other than vedana but this is obviously not ideal as it is inconsistant with our website's theme.

Regards
ADe
Dimo
Telerik team
 answered on 29 Sep 2010
1 answer
81 views
Hello Sir,

I have a aspx page with RadDockLayout and RadDocZone controls on it. Inside RadDoczone i have used a ascx Control. There is a dropdownControl on Aspx page. When i am trying to access that dropdowncontrol in Ascx page through
this.Parent.FindControl("ddlProviders") as DropDownList, its getting null but when i places this ascx file outside RadDocZone its working fine.

Please provide a solution to this problem.

Thanks & Regards,
Chandan Kumar
Rumen
Telerik team
 answered on 29 Sep 2010
4 answers
151 views
Hi..
I have grid bound to a dataview... All they columns sort fine.. But when I click on my Email column I get the following error.
Any ideas?   Thanks!!

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Email is neither a DataColumn nor a DataRelation for table Communications.
Pavlina
Telerik team
 answered on 29 Sep 2010
1 answer
132 views
I am using a GridTemplateColumn with EditTemplate as RadCombo.  There are other fields in teh grids after this and while in edit mode, SOMETIMES, I find the DropDown is TRANSPARENT and all the controls beneath it are visible.  But I dont see this issue if I refresh the page.  I this a Bug in the Grid or do I need to specify any additional properties when using this RadCombo in Grid.

This is a random issue and unfortunately has come up a few times while by boss is around!

regards,
Ram Prasad.
Pavlina
Telerik team
 answered on 29 Sep 2010
1 answer
205 views
Im currently upgrading the RadGrid from the RadGridNet2.dll to the newer found in Telerik.Web.UI. The problem is that i dont want to updragde the RadChart so i dont remove the RadChart.Net2.dll from my project, instead i set the alias to something else than global in order to avoid namespace conflicts. However when i debug my site im still getting this error:


c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\App_Web_graphtable.ascx.b3eb3a1f.aw_nms1w.0.cs(183): error CS0433: The type 'Telerik.Charting.ChartSeries' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\assembly\dl3\e42fd8ce\00b73c75_97b6c901\Telerik.Web.UI.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\hauliermanagement\79af6066\1eaca894\assembly\dl3\692c3a46\65f87e34_c35bcb01\RadChart.Net2.DLL'


This is very very urgent, please help!
Ves
Telerik team
 answered on 29 Sep 2010
1 answer
86 views
I have a need for a server control that will perform a JS-type confirm or prompt  function and then perform a postback with the selected value from the user.

Note that this is not a client confirmation prior to running a server function, rather it is client confirmation after server procesing has already been started.

Here is the scenario:  the user submits a web page and the server logic works on it.  During processing the logic detects a condition that requires user feedback, so a control is necessary that will pop up a JS confirm/prompt and then postback the answer so that processing can continue. 

Will any of your controls do that?  If not, do you have any documentation or samples on how I could build my own control?
Marin
Telerik team
 answered on 29 Sep 2010
4 answers
105 views
I have multiple RadGrids on the same page, they all display different data and they all have different names. When the page loads, I get this error:

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element

This leads to the filtering on the RadGrids not working properly, or it's very slow. Do you have a solution for this problem?
Daniel
Telerik team
 answered on 29 Sep 2010
1 answer
106 views
when I click one button and then showModalDialog wjhen I close this modaldialog window,the RadAjaxLoadingPanl appear。I don't want it to appear.
I set this in masterPage but it no use
<telerik:AjaxSetting AjaxControlID="button">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>

In content page :
<td style="width: 500px; height: 30px;">
                                                        <telerik:RadAjaxPanel ID="rapText" runat="server">
                                                            <telerik:RadComboBox ID="rcbText" runat="server" Width="493px" Style="height: auto;"
                                                                MarkFirstMatch="true" OnLoad="rcbText_Load" EnableLoadOnDemand="true" EmptyMessage="documentSelectionListBox "
                                                                AutoPostBack="True" OnSelectedIndexChanged="rcbText_SelectedIndexChanged"
                                                                Skin="WebBlue" MaxHeight="100px">
                                                            </telerik:RadComboBox>
                                                        </telerik:RadAjaxPanel>
                                                    </td>
                                                    <td>
                                                        <asp:Button ID="button" runat="server" Style="width: 75px; text-align: center; height: 25px;" Text="btnText" />
                                                    </td>

 function showPage() {
                var result = window.showModalDialog("Text.aspx", "", "dialogWidth:400px;dialogHeight:" + dialogheight + "px;toolbar=no,title:no;location=no;scroll:no;status:no;menubar=no;resizable:no;");
                var s = document.getElementById("<%=txtText.ClientID %>");
                s.Text = result;
                $find("<%=rapText.ClientID %>").ajaxRequest("ctl00_ContentPlaceHolder1_button");
            }
content code behind
this.button.Attributes.Add("onclick", "return showPage()");
Maria Ilieva
Telerik team
 answered on 29 Sep 2010
1 answer
99 views
I am trying to use a GridDropDownColumn in a rad grid.  I do not want to bind it to a datasource because it only contains 2 values (Approved/Rejected) that do not come from a database or anything.  How do I go about making this work?  Everything I find shows me that I need to bind it to a datasource.  It seems like I should be able to pass it a collection of items to use though?  The only other option I've seen is use a template column but then I need to manually handle binding each row to the appropriate DD value.  This is a huge PITA.  Any help would be appreciated. 
Vasil
Telerik team
 answered on 29 Sep 2010
1 answer
143 views

I have a autogenerated column where i am displaying values like
205 [100,55,50]
120 [50,30,40]
506 [500,3,3]

Now, i want to sort the column on the first number (numeric sort), which is apperaing before the bracket.

Please help
Arijit
Daniel
Telerik team
 answered on 29 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?