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

I am getting the following client-side error message.  It appears that Telerik's JavaScript is failing.  Can anyone give me a kick in the right direction as to how to figure out what might be going wrong?

Here is the Telerik javascript that appears to be failing:

 

 

Sys.UI.Control=function(a){Sys.UI.Control.initializeBase(this);this._element=a;
<line 6, char 94383>
a.control=this};

 

 

Microsoft Windows 7 Professional
Microsoft Internet Explorer 8
Telerik RadControls for ASP.NET AJAX 2011.1.315.35


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Fri, 20 May 2011 18:16:23 UTC

Message: 'undefined' is null or not an object
Line: 6
Char: 94383
Code: 0
URI: http://mydevbox.reisys.com/WebSamplesInternal/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_REIRadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3ae4ca4719-c559-4761-8501-9be20bbda1fe%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3a4cacbc31%3ab7778d6c%3aed16cbdc

 

Simon
Telerik team
 answered on 23 May 2011
1 answer
92 views
It all looks good, but is there any documentation on client-side API, I wonder?
I failed to find one, except for http://www.telerik.com/help/aspnet-ajax/ribbonbar-client-programming-basics.html which is pretty limited.

For example, I would like to hide/display tab on client-side.
I've tried bar._tabs.getTab(1).get_pageView().style.display = "none"; but it does not hide the "tab strip" part.

I may eventually find the solution, but I wonder if there is a documentation somewhere that I'm missing... Please advise.

Simon
Telerik team
 answered on 23 May 2011
9 answers
592 views
I am new to RadTabStrip, ann came across something that need your help. 

I am using RadTabStrip with RadMultiPage. I open new aspx files for each of the Tabs.
Now I need to add a button to the first Tab, which will load the second tab and display it's content. (Just like, any other link which will open the requested link).

But when  I give the implement the onclick event of the button to navigate to the second aspx file (Booking.aspx), it will simply load another Tabstrip inside the first Tab. It results in showing the radtadsrip again inside the first tab. 

Please help me to open the second tab using the button, in the same way as if it is navigated by clicking on the second tab.

Below is my aspx file: 
  <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Web20" MultiPageID="RadMultiPage1"
            SelectedIndex="0" Align="Justify" ReorderTabsOnSelect="true" Width="800px">
            <Tabs>
                <telerik:RadTab Text="DashBoard">
                </telerik:RadTab>
                <telerik:RadTab Text="Booking">
                </telerik:RadTab>              
            </Tabs>
        </telerik:RadTabStrip>       
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"
            Width="800px" Height="520px">
            <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%" Height="100%">
                <iframe frameborder="0" width='800' height='520' scrolling="yes" src="Dashboard.aspx">
                </iframe>
            </telerik:RadPageView>
            <telerik:RadPageView ID="RadPageView5" runat="server" Width="100%" Height="100%">
                <iframe frameborder="0" width='800' height="100%" scrolling="yes" src="Booking.aspx">
                </iframe>
            </telerik:RadPageView>         
        </telerik:RadMultiPage>


Thanks,
Nimesha
Dimitar Terziev
Telerik team
 answered on 23 May 2011
2 answers
58 views
Does anyone know how I can set the position of the dropdown of a combobox to the top left of the screen?
Lance
Top achievements
Rank 1
 answered on 23 May 2011
2 answers
120 views
Hi,

I would to display timetable for 10 working days. 
Week 1, the data will be differentiate with for example: Wed 1
Week 2, the data will be differentiate with for example: Wed 2

Then once the week 2 done, the occurrence will start all over again from week 1

Currently, all week 1 and week 2 is displaying in same week (week 1)
Mark de Torres
Top achievements
Rank 1
 answered on 23 May 2011
1 answer
75 views

hi

I can not delete rows in RadGrid

any body can help me?

my database code is:

CREATE TABLE [test](
    [c1] [int] IDENTITY(1,1) NOT NULL CONSTRAINT [PK_test] PRIMARY KEY,
    [c2] [nvarchar](50) NULL,
)
insert [test]
    ([c2])
values
    ('aaa'), ('bbb'), ('ccc'), ('ddd'), ('eee')

my aspx code is:

<%@ Page Language="C#" %>
<!DOCTYPE html>
<head runat="server">
    <title>test</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <tlk:RadScriptManager ID="RadScriptManager1" runat="server" />
        <tlk:RadGrid ID="RadGrid1" runat="server" AutoGenerateDeleteColumn="True" DataSourceID="data">
            <MasterTableView DataSourceID="data" DataKeyNames="c1">
            </MasterTableView>
        </tlk:RadGrid>
        <asp:SqlDataSource ID="data" runat="server"
            ConnectionString="<%$ ConnectionStrings:database %>" 
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [test]"
            DeleteCommand="DELETE FROM [test] WHERE [c1] = @c1">
            <DeleteParameters>
                <asp:Parameter Name="c1" Type="Int32" />
            </DeleteParameters>
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>

Shinu
Top achievements
Rank 2
 answered on 23 May 2011
1 answer
1.5K+ views
Hi,

I'm using a rad combo box control in rad grid with an itemtemplate. Can you tell me how to get the row index on selected index change?

Thanks,
Princy
Top achievements
Rank 2
 answered on 23 May 2011
2 answers
267 views
Hi

I have long series names in a legend so I have set AutoTextWrap = true, but they wrap too much!
1 of the series names is wrapping over 3 lines instead of 2 lines, so I thought I'd make the legend box wider to accomodate it, but it ignores everything I've tried. I've attached a pic.
These lines do nothing:
  • RadChart1.Legend.Appearance.Dimensions.Width = new Telerik.Charting.Styles.Unit(50);
  • RadChart1.Legend.Appearance.ItemTextAppearance.Dimensions.Width = new Telerik.Charting.Styles.Unit(150);
while this line makes the legend disappear:
  • RadChart1.Legend.Appearance.Dimensions.AutoSize = false;

Here is the markup:
<telerik:RadChart ID="RadChart1" runat="server"
     Height="500px"
     Width="1200px"
     SkinsOverrideStyles="false"      
     ChartTitle-Visible="false">
</telerik:RadChart>

and here is the relevant code behind:
RadChart1.Chart.Appearance.Border.Visible = false;
RadChart1.Appearance.TextQuality = Telerik.Charting.Styles.TextQuality.ClearTypeGridFit;
RadChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;
RadChart1.PlotArea.Appearance.FillStyle.MainColor = Color.White;
RadChart1.PlotArea.Appearance.Border.Color = Color.LightGray;
RadChart1.PlotArea.Appearance.Dimensions.Margins.Top = new Telerik.Charting.Styles.Unit(5);
RadChart1.PlotArea.Appearance.Dimensions.Margins.Right = new Telerik.Charting.Styles.Unit(200);
RadChart1.PlotArea.Appearance.Dimensions.Margins.Left = new Telerik.Charting.Styles.Unit(90);
RadChart1.PlotArea.Appearance.Dimensions.Margins.Bottom = new Telerik.Charting.Styles.Unit(60);
 
RadChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopRight;
RadChart1.Legend.Appearance.ItemTextAppearance.AutoTextWrap = Telerik.Charting.Styles.AutoTextWrap.True;
 
RadChart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortDate;
RadChart1.PlotArea.XAxis.Appearance.CustomFormat = "d MMM";
RadChart1.PlotArea.XAxis.DataLabelsColumn = "SHIFT_DATE";
RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black;
RadChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Normal;
RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Dimensions.Margins.Top = new Telerik.Charting.Styles.Unit(5);
RadChart1.PlotArea.XAxis.IsZeroBased = false;
RadChart1.PlotArea.XAxis.AddRange(startdate.ToOADate(), enddate.ToOADate(), 1);
RadChart1.PlotArea.XAxis.LabelStep = Convert.ToInt32(Math.Floor(Convert.ToDecimal((enddate - startdate).Days / 8)));
 
RadChart1.PlotArea.YAxis.Appearance.MajorGridLines.Visible = true;
RadChart1.PlotArea.YAxis.Appearance.MajorGridLines.Color = Color.Gray;
RadChart1.PlotArea.YAxis.IsZeroBased = true;
RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Metres (RC)";
RadChart1.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Color.Black;
RadChart1.PlotArea.YAxis.AxisLabel.Visible = true;
RadChart1.PlotArea.YAxis.Appearance.CustomFormat = "N0";
RadChart1.PlotArea.YAxis.Appearance.TextAppearance.TextProperties.Color = Color.Black;
 
RadChart1.PlotArea.YAxis2.IsZeroBased = true;
RadChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Text = "m / day";
RadChart1.PlotArea.YAxis2.AxisLabel.TextBlock.Appearance.TextProperties.Color = Color.Black;
RadChart1.PlotArea.YAxis2.AxisLabel.Visible = true;
RadChart1.PlotArea.YAxis2.Appearance.CustomFormat = "N0";
RadChart1.PlotArea.YAxis2.Appearance.TextAppearance.TextProperties.Color = Color.Black;
RadChart1.PlotArea.YAxis2.AxisLabel.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Left;

What am I doing wrong?
Jeremy
Top achievements
Rank 1
 answered on 23 May 2011
1 answer
58 views
Is there any in-built support to save filters and load them back instead of specifying filters everytime?
Dhawal
Top achievements
Rank 1
 answered on 22 May 2011
13 answers
377 views
Hi,

I'm inserting row's on the client side using a web service to insert a new row into the database and javascript to rebind the grid.
But when row is inserted, it only show's a plan grey row instead of a row with 5 columns and each column should have a textbox
control. When I check the HTML source I notice the row I inserted has a class="rgAltRow" i think this is my problem because the
other rows has class="rgEditRow". I will attach 2 screen shots one with the grid and the other the browser source code. I await
your assistance.
function updateChanges() {
             ItemsService.AddNewItem(updateGrid);
         }
         function updateGrid(result) {
             var tableView = $find("<%= grdInvoiceItems.ClientID %>").get_masterTableView();
             tableView.set_dataSource(result);
             tableView.rebind();
         }
Web service
[WebMethod(EnableSession = true)]
 public List<InvoiceItemsDetails> AddNewItem()
 {
     Invoice.InsertInvoiceItems(string.Empty, string.Empty, 0, 0,
        0, 0, 0, 0, 1001);
 
     return Invoice.GetInvoiceItems(1001);
 }


Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 22 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?