Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
110 views
I'd post this as a support ticket, but our support just ran out last week (of course)...

This seems to be a new issue with 2014.2.724.45, as the exact same code is working on our production site but is giving this error in Firefox on our Beta site

IndexSizeError: Index or size is negative or greater than the allowed amount

The error shows up in the if(c.originalMaxLength) line below

updateValue:function(d){var c=$get(this._id);
var e;
var f=c.value;
if(c.originalMaxLength){c.maxLength=c.originalMaxLength;
}if(typeof(d)=="undefined"){e=c.value;

This is showing up on our Login page that uses telerik:RadInputManager to make the user name and password fields required.

<telerik:RadInputManager runat="server" ID="rim">
    <telerik:TextBoxSetting BehaviorID="textRequired">
        <Validation IsRequired="true" />
        <TargetControls>
            <telerik:TargetInput ControlID="UserName" />
            <telerik:TargetInput ControlID="Password" />
        </TargetControls>
    </telerik:TextBoxSetting>
</telerik:RadInputManager>

If I comment out the RadInputManager, the page works fine, although without validation. If I leave the code in, we get the error message in the Firebug console in Firefox 32.0.3 and the password box won't accept any typing at all. It works fine in IE and Chrome.

Live beta site example at https://beta.connectionsonline.net/

I noticed that Mozilla has a similar issue listed as a bug with Firefox 30 and 31, but I'm not sure if it is related: https://bugzilla.mozilla.org/show_bug.cgi?id=987227
Sypher
Top achievements
Rank 1
 answered on 01 Oct 2014
1 answer
405 views
Hai all,

i want to change all my reports into telerik reports using typed dataset please help me how to do for that what i did is

1.first i create a Dataset1.xsd file in that i added a TableAdapter DataTable1 there i am getting somefileds and GetData()
2.then i created a Report1.cs(Telerik Report Q1 2014) there i added a objectdatasource in that i selected Select Available data source types tab ther i added my DataTable1 and in Choose Datasource Member i selecte GetData() and i click on finsih button
but when i select on Telerik=>Reporting=>DataExplorer its showing NoDatasource

how to use these datatable in my reports how to do please give me one sample example how to do its urgent


thanks in advance
Stef
Telerik team
 answered on 01 Oct 2014
10 answers
842 views
Please somebody help me about using simple checkbox in edit forms. I always get famous DBnull error. I need simple sample using sql server and data type integer. I spent more than one week and still no result. when I correct update events, then addnew throws error. when I correct addnew part, orher parts fail. I tried everything on sql site. int column type, bit column type, nullable, everything. I tried to change combobox to get rid of checkbox, another selected value, dbnull, etc etc errors rise. I won't give any error message, it is  famous problem.

Just need one column of RadGrid to add, and update record to sql table which has only one column with type of integer. I need it to use form templates.

Why this is so difficult.
best regards.
Jon
Top achievements
Rank 1
 answered on 01 Oct 2014
1 answer
146 views
I am creating multiple radgrids from a single dataset, programatically. Each table in the dataset is displayed as a separate radgrid. I am trying to specify the width/font of the columns (same values for all the grids). How do I set preRender handler for each grid programatically?
Viktor Tachev
Telerik team
 answered on 01 Oct 2014
1 answer
444 views
Hi ,


I would like to disable a particular row based on a particular label name for instance "TEST", so if the Row has label name = "TEST", I would like to disable that entire row. There are two problems that I am facing.

1. I have a GridClientSelectColumn, and I'm inclined to thinking this the cause of the issue.
2. The row is being disabled only after a postback has occured.  But on initial load it is not being disabled.

For Each item As GridDataItem In grdVisibleColumns.MasterTableView.Items
            If item.Cells(3).Text = "TEST" Then
                item.Enabled = False
                Dim chkbx As CheckBox = DirectCast(item("grdVisibleChkBox").Controls(0), CheckBox)
                chkbx.Enabled = False
            End If
        Next

I put this code in the page pre-render event BTW, I tried placing the code in a number of places (Grid events), but it did not help, when the page initially loads the Row TEST is enabled.

Please advise.

Thanks.
Chandra
Konstantin Dikov
Telerik team
 answered on 01 Oct 2014
1 answer
157 views
Hi,
I found many posts on how to remove the borders from a RadWindow (for example http://www.telerik.com/help/aspnet-ajax/window-appearance-removing-borders.html) but nothing for a RadConfirm.
Exists a way to eliminate the borders of a RadConfirm?

Thanks to all
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
5 answers
620 views
I have several chart questions.
1) I want to change the label for each series item to "Name" or "TooltipValue".  Is this possible? 
2) What is the purpose of the TooltipValue?  The tooltip always displays XValue,YValue and never displays the value et for TooltipValue.
3) I need to display the Name values for each SeriesItem in alpha order as the Legend. Is this possible? 
<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server">
    <PlotArea>
        <Series>
            <telerik:ScatterSeries Name="XXX Data">
                <TooltipsAppearance Visible="true" />
         
                <Items>               
                    <telerik:SeriesItem XValue="1674" YValue="4.3" TooltipValue="ABC" Name="ABC" />                   
                    <telerik:SeriesItem XValue="6468" YValue="3.4" TooltipValue="DEF" Name="DEF"/>
                    <telerik:SeriesItem XValue="3600" YValue="3.4"  />
                    <telerik:SeriesItem XValue="5252" YValue="2.9"  />
                    <telerik:SeriesItem XValue="2612" YValue="1.6"  />
                    <telerik:SeriesItem XValue="1054" YValue="1.3"  />
                </Items>
            </telerik:ScatterSeries>
        </Series>
        <XAxis MajorTickType="Outside" MinorTickType="Outside"  Reversed="false" Step="1000" AxisCrossingValue="0" MinValue="0" MaxValue="7000">
            <TitleAppearance Position="Center" RotationAngle="0" Text="Error Count" />
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" />
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
 
        </XAxis>
        <YAxis Color="Black" MajorTickSize="1" MajorTickType="Outside" Reversed="false"
            MinorTickType="None" MaxValue="8.0" MinValue="0.0" Step="0.5" AxisCrossingValue="0.0">
            <TitleAppearance Position="Center" RotationAngle="0" Text="Error Percent" />
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" />
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
        </YAxis>
    </PlotArea>
    <ChartTitle Text="XXX Data">
        <Appearance Align="Center" BackgroundColor="White" Position="Top" />
    </ChartTitle>
    <Legend>
        <Appearance Visible="true" />
    </Legend>
 
</telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
3 answers
1.5K+ views
I am trying to change the background color of a RadButton using CSS but it is not working...

Button Code:
<telerik:RadButton SingleClick="true" SingleClickText="Submitting..." ButtonType="LinkButton" CssClass="btnY" runat="server" ID="btn" Width="60" Text="Submit" OnClick="btn_Click" />

CSS:
.btnY{font-weight:bold;font-size:9pt;background-color:#abbc37;border:1px solid #788604;color:#fff;text-align:center;padding-right:5px;padding-left:5px;padding-top:0px;padding-bottom:0px;line-height:18px;}

What am I missing?
DogBizPro
Top achievements
Rank 1
 answered on 01 Oct 2014
11 answers
222 views
Hi,

I created a login page with ASP.NET AJAX for a web application and it works flawless in IE, Chrome, Safari and FireFox. However, when I activated FormsAuthentication and performed some tests I noticed that the RadButton control in de Login Page is not responding in FireFox. I do see the button border changing when I hover over the mouse, but there is no response when I click the button. The DefaultButton-option is also not working. 

Visual Studio code:
<div>
  <telerik:RadButton id="button_submit" runat="server" BackColor="#0072c6" Text="Sign In" SingleClick="true" SingleClickText="Sign In" Skin="Metro" ButtonType="LinkButton" Style="padding:4px 10px 5px 10px; margin: 5px 0; color: #fff " OnClick="ButtonSubmitClick" ></telerik:RadButton>
</div>

Browser inspection:
<div>
  <span id="button_submit" class="RadButton RadButton_Metro rbLinkButton" style="background-color:#0072C6;padding:4px 10px 5px 10px; margin: 5px 0; color: #fff "><span class="rbText">Sign In</span><input id="button_submit_ClientState" name="button_submit_ClientState" type="hidden"></span>
</div>

Any idea, how to solve this?


 


Danail Vasilev
Telerik team
 answered on 01 Oct 2014
3 answers
226 views
Hello,
I'm developing a online application with 'radOrgChart'. I have loaded the data to this radOrgChart from linqDataSource. On clicking any of the node, i need to re-display the radOrgChart as the clicked node as parent as in drill-down method. I have tested this drill-down method. But, i'm looking for different method. Instead of drill-down, i need a to click any node or a buttton inside the radOrgChart node to view. Then, while loading the page it shows all the nodes, instead of that, i need to display the parent and its child's only. Others needed to be collapsed. I check all the examples provided by telerik. It collapse using code-behind or in html setting attribute called colapsed="true" in radOrgChart. Here, i will submit my code and the screen shots. OrgChart-1 is the page when it loads before. And, OrgChart-2 is the page what i needs to be shown on page load.

<head runat="server">
    <title></title>
    <style type="text/css">
        .orgChartDiv {
            background-color: #e4e4e4;
            height: 100%;
            width: 100%;
            overflow-y: auto;
            float: left;
            position: relative;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
        <div class="orgChartDiv">
            <telerik:RadOrgChart ID="employeeOrgChart" runat="server" Skin="Default" EnableCollapsing="true" Width="100%"
                DataSourceID="LinqDataSource_Employee" DataTextField="FirstName" DataFieldID="EmployeeID" DataFieldParentID="ReportsTo"
                EnableGroupCollapsing="true" >
            </telerik:RadOrgChart>
        </div>
    </div>
    </form>
    <asp:LinqDataSource runat="server" ID="LinqDataSource_Employee"
        ContextTypeName="RadOrgChart.RealDataDataContext" TableName="Employees" />
</body>


With Regards,
Mohammed Rafsanjany
Plamen
Telerik team
 answered on 01 Oct 2014
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?