Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
125 views
First off, awesome 2011 Q1 release.  The new RibbonBar control is awesome!  I do have one question/issue though.

I have a pretty basic RibbonBar setup:

<telerik:RadRibbonBar ID="RibbonBar" runat="server">
        <telerik:RibbonBarTab Text="Home">
        </telerik:RibbonBarTab>
        <telerik:RibbonBarTab Text="Issue Tracker">
            <telerik:RibbonBarGroup>
                <Items>
                    <telerik:RibbonBarButton Text="Project Summary" ID="btnIssueTracker_ProjectSummary"
                        runat="server" Size="Large" />
                    <telerik:RibbonBarButton Text="Add Issue" ID="btnIssueTracker_AddIssue" runat="server"
                        Size="Large" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
        <telerik:RibbonBarTab Text="Administration">
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>

On the page below the RibbonBar, I have some controls (dropdowns, textboxes, etc) with validators attached to them.  However if I am on a page with validators and click on a different tab, it triggers a validation check.  I am using the RibbonBar as a sort of navigation menu so I need to be able to click any of the tabs without validating the page.  I didn't find a CausesValidation method on the control or button, am I missing it somewhere?
Simon
Telerik team
 answered on 23 May 2011
9 answers
1.2K+ views
Hello

I hv give the exception run time

Server Error in '/GowanKB' Application.

Selection out of range
Parameter name: value

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Selection out of range
Parameter name: value

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Selection out of range
Parameter name: value]
Telerik.Web.UI.RadComboBox.PerformDataBinding(IEnumerable dataSource) +180
Telerik.Web.UI.RadComboBox.OnDataSourceViewSelectCallback(IEnumerable data) +39
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
Telerik.Web.UI.RadComboBox.OnDataBinding(EventArgs e) +114
Telerik.Web.UI.RadComboBox.PerformSelect() +37
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e) +36
Telerik.Web.UI.RadComboBox.OnPreRender(EventArgs e) +42
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053


why this come

my querty is
SELECT DisplayName + ' ' + CoopOrg AS Name, Email FROM dbo.Coop
i can create the dummy column Name by using 2 different column it working sucessfully


and combobox property are

<telerik:RadComboBox ID="radcoopname" runat="server" Width="310" AppendDataBoundItems="true"
                                MarkFirstMatch="true" AutoPostBack="true" DataSourceID="coopname" DataTextField="Name"
                                DataValueField="Email" ExpandAnimation-Type="InQuart" CollapseAnimation-Duration="200"
                                CollapseAnimation-Type="Linear" CollapseDelay="400" CausesValidation="True">
                                <Items>
                                    <telerik:RadComboBoxItem Text="Select Coop Name" />
                                </Items>
                            </telerik:RadComboBox>


and code behind

 radcoopname.SelectedValue = (Session("CoOpDetail")).ToString

i need to select the session value when the combox load 
how i do this help me urgentttt

Can you please tell me where is the problem why this exception occure



Simon
Telerik team
 answered on 23 May 2011
1 answer
143 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
101 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
625 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
61 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
129 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
87 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
277 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?