Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
200 views
I am using telerik grid to display master datail data. On a page load the grid wil populated with the data. I am using NestedTemplateView to display detail data. So there is "+" button on the grid which will display detail data. On clicking "+" I am passing one of the column value for a perticular row to stored procedure and displaying the data(Only one row). The issue is it is working for first row and when user clicks on second row the first expanded detail informaion is not hiding. it remains onpen and displays newly clicked rows details data.

Any idea how to hide previous expanded detail row.

Thanks!!!
Radoslav
Telerik team
 answered on 20 Oct 2010
2 answers
126 views
HI

           I am Working on RadGrid with FormTemplate as Popup,Once clicked on Edit record of radGrid
popup is shown,This Popup contain dropDownlist on selected index of this dropdownlist i need to
disable some controls using Javascript how can u do it,Please let me know
Praveen
Top achievements
Rank 1
 answered on 20 Oct 2010
2 answers
180 views
I am using Telerik for the first time with SQL Server instead of Oracle. I am coding this in C#

I use the following code:

<asp:TextBox id="txtAgencyName" runat="server"
            Text='<%# DataBinder.Eval( Container, "DataItem.[Agency Name]"  ) %>' Width="268px" 
            ></asp:TextBox>

When I perform an edit eveything is fine but when I try and perform an isert I get the following error:

DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not allow indexed access.

There are a few fields in front of this code that work fine. Why is this happening? Do I need to write a code aroubnf for this?

Here is the table breakdown.

USE [CommissionsEngine]
GO
/****** Object:  Table [dbo].[Agencies]    Script Date: 10/14/2010 11:46:11 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Agencies](
    [AgencyID] [varchar](4) NOT NULL,
    [AgencyName] [varchar](255) NULL,
    [EffDate] [datetime] NULL,
    [ExpireDate] [datetime] NULL,
    [Retention] [money] NULL CONSTRAINT [DF_Agencies_Retention]  DEFAULT ((0)),
    [FMO_OverrideID] [varchar](4) NULL,
    [FMO_OverrideAmount] [money] NULL CONSTRAINT [DF_Agencies_FMO_OverrideAmount]  DEFAULT ((0)),
    [DirectorID] [int] NULL,
    [ND_Director_Override] [money] NULL CONSTRAINT [DF_Agencies_ND_Director_Override]  DEFAULT ((0)),
    [IsFMO] [varchar](1) NULL,
    [DateEntered] [datetime] NULL CONSTRAINT [DF_Agencies_DateEntered]  DEFAULT (getdate()),
    [EnteredBy] [varchar](50) NULL CONSTRAINT [DF_Agencies_EnteredBy]  DEFAULT (suser_sname()),
 CONSTRAINT [PK_Agencies] PRIMARY KEY CLUSTERED 
(
    [AgencyID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 70) ON [PRIMARY]
) ON [PRIMARY]
  
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[Agencies]  WITH CHECK ADD  CONSTRAINT [FK_Agencies_Directors] FOREIGN KEY([DirectorID])
REFERENCES [dbo].[Directors] ([DirectorID])
GO
ALTER TABLE [dbo].[Agencies] CHECK CONSTRAINT [FK_Agencies_Directors]
Radoslav
Telerik team
 answered on 20 Oct 2010
2 answers
69 views
Hi Telerik Team

This only happens in IE not firefox. Radeditor sometime add <br/> after the html, when I called getSelectedElement it will not detect the tagName correctly, so I can't restore the link value correctly in my custom dialog box. Even the hyperlink manager can't handle it.

E.g.

<a href="bbbb"> test </test><br/>
Rumen
Telerik team
 answered on 20 Oct 2010
3 answers
110 views
Hello,

Why when i use the "LoadContentFile" method ot the "LoadXml" method a new instance of RadListBox has been created.
If i use these methods, first it goes into the constructor of the listbox.

Below is my class inherite from RadListBox

public class MyRadListBox: RadListBox
    {
        public MyRadListBox()
        {
           InitControl();
        
           .
           .
           .
    }

If i create an instance of MyListBox and call to LoadContentFile("LB.xml) then first it to the MyRadListBox Ctor.

MyListBox myListBox=new MyListBox();
myListBox.LoadContentFile("LB.xml");

Is there any option to avoid this? it pretty annoying and cause to bugs.

Regards,
Oren
Genady Sergeev
Telerik team
 answered on 20 Oct 2010
1 answer
180 views
Is there a property that can be specified that will change the start angle for pie charts? It looks like it always starts plotting from 0 degrees.

Thanks,
Mike
Yavor
Telerik team
 answered on 20 Oct 2010
3 answers
191 views
Is there a way to make the radgrid display a message when there is no datasource?  (This is helpful when the radgrid is first displayed)

NoRecordsTemplate

 

 

only works when the datasource is empty (not null).

Pavlina
Telerik team
 answered on 20 Oct 2010
3 answers
286 views
Hi,

I have a simple gridview which contains a field for primary key "Vendor_ID" which should be filled by a sequence. I changed the property of the field and set ReadOnly = true. >> here i can insert a new record
but when i try to update the record (i have set the condition where vendor_id = vendor_id) nothing happens >> i guess because it can not read the ReadOnly field.
then i have added ForceExtractValue="InEditMode", my records are updated but now i can not insert a new record i receive an error.

Your Help is greatly appreciated.

Fatma
Pavlina
Telerik team
 answered on 20 Oct 2010
1 answer
90 views
i'm a little stuck, after i was able to bind an event _SelectedIndexChanged to a combobox of a editform.
now i'm receiving the event in a handler ..._SelectedIndexChanged(ByVal sender As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs),
but now i'm supposed to feed another column/textbox of the grid with a value based on the selecteed value of the combobox.

i can imagine (/read somewhere) a solution would be the creation of a custom editform and then using a panel or something to "findcontrol" the textbox, but my editform is generated auto, so is there a way? 
of course
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim editMan As GridEditManager = editedItem.EditManager
If (CType(editedItem.Item("Value1").Controls(0), RadNumericTextBox).Text) > 0 then.... etc.

doens't bind to e.item which is RadComboBoxSelectedIndexChangedEventArgs,
so can i get to the editForm through RadGrid1.Mastertableview. ...? Or via FIndControl("..") ?

Regards
Reto
Mira
Telerik team
 answered on 20 Oct 2010
3 answers
155 views
Hi all,

we build a very simple scrolling-example (using codecharge studio 4.1) but we get always the following server error message. All other telerik asp.net ajax applications and functions (charts, editor, combo boxes ...) we tested makes no problems (congratulation on the very good work of developers!). But after insert the <clientsettings .../> row in the code we get this error message. We use Windows xp / windows 2003 server and asp.net latest versions, IE7 and firefox latest versions, 2008Q3 trial latest build ... The problem is independent from windows, browser etc.

Has anybody an idea? Is this a bug?

thanks for help.
Regards Christian


Serverfehler in der Anwendung /promolpm.

Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Beschreibung: Unbehandelte Ausnahme beim Ausführen der aktuellen Webanforderung. Überprüfen Sie die Stapelüberwachung, um weitere Informationen über diesen Fehler anzuzeigen und festzustellen, wo der Fehler im Code verursacht wurde.

Ausnahmedetails: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

Quellfehler:

Beim Ausführen der aktuellen Webanforderung wurde einen unbehandelte Ausnahme generiert. Informationen über den Ursprung und die Position der Ausnahme können mit der Ausnahmestapelüberwachung angezeigt werden.

Stapelüberwachung:

[NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.]
   Telerik.Web.ScriptObjectBuilder.RegisterCssReferences(Control control) +179
   Telerik.Web.UI.RadChart.OnPreRender(EventArgs e) +33
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Versionsinformationen: Microsoft .NET Framework-Version:2.0.50727.3082; ASP.NET-Version:2.0.50727.3082


aspx code of the page:
<!--ASPX page @1-3B64DC6C-->
    <%@ Page language="vb" CodeFile="TESTChart.aspx.vb" AutoEventWireup="false" Inherits="PromolPM.TESTChart.TESTChartPage"  ResponseEncoding ="utf-8"%>
    
    <%@ Import namespace="PromolPM.TESTChart" %>
    <%@ Import namespace="PromolPM.Configuration" %>
    <%@ Import namespace="PromolPM.Data" %>
    
    <%@Register TagPrefix="CC" Namespace="PromolPM.Controls" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="<%=TESTChartContentMeta%>">
<meta name="GENERATOR" content="CodeCharge Studio 4.1.00.032">

<title>TESTChart</title>


<link rel="stylesheet" type="text/css" href="Styles/<%=PageStyleName%>/Style.css">
<script language="JavaScript" type="text/javascript">
//Begin CCS script
//End CCS script
</script>

</head>
<body class="BODY">
<form runat="server">


    

        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadChart ID="RadChart1" runat="server">
                <ClientSettings EnableZoom="false" ScrollMode="XOnly" XScale="4" />
                <PlotArea>
                        <XAxis MaxValue="5" MinValue="1" Step="1">
                        </XAxis>
                        <YAxis MaxValue="3" Step="0.5" AxisMode="Extended">
                        </YAxis>
                        <YAxis2 MaxValue="5" MinValue="1" Step="1">
                        </YAxis2>
                </PlotArea>
                <Series>
                        <telerik:ChartSeries Name="Series 1">
                <Appearance>
                        <FillStyle MainColor="Red">
                    </FillStyle>
                                </Appearance>
                                <Items>
                                        <telerik:ChartSeriesItem YValue="1" Name="Item 1">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="2" Name="Item 2">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 3">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 4">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="2" Name="Item 5">
                                        </telerik:ChartSeriesItem>
                                </Items>
                        </telerik:ChartSeries>

                        <telerik:ChartSeries Name="Series 2">
                                <Appearance>
                        <FillStyle MainColor="Blue">
                    </FillStyle>
                                </Appearance>
                                <Items>
                        <telerik:ChartSeriesItem YValue="3" Name="Item 1">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 2">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="3" Name="Item 3">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="1" Name="Item 4">
                    </telerik:ChartSeriesItem>
                    <telerik:ChartSeriesItem YValue="2" Name="Item 5">
                    </telerik:ChartSeriesItem>
                                </Items>
                        </telerik:ChartSeries>
                </Series>
                </telerik:RadChart>
    


</form>
</body>
</html>

<!--End ASPX page-->
Yavor
Telerik team
 answered on 20 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?