Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
195 views

  I am getting an error stating that The server method 'MethodName' Failed error when I am expanding the tree view. I am following the example which is given under telerik for the webservice. I am also unable to get the cursor to the debug point which I placed at the start of the webmethod in web service.
Atanas Korchev
Telerik team
 answered on 29 Jul 2008
11 answers
502 views

I am new to Prometheus, in fact I am new to Telerik.  I was very impress to see the online demo of Prometheus so I downloaded the trial and I am now trying to make this work, more specifically the RadChart component.  After a complete day I have to say that it's still not working.  I am following the instructions found at http://www.telerik.com/help/radcontrols/prometheus/ and I am now at the page "Quick Start: Create a Bar Chart with Simple Static Data"  and I am trying my best to make this work but I must say that it is quite a challenge. I guess I choose to worst component to start with and that the others would probably way easier to get up and running. 

So after doing what is mentioned in the Quick Start page where are the errors I encounter until now

First Error:
"Parser Error Message: Unknown server tag 'telerik:ChartSeries'."

After a bit of research I found that the instruction <%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %> has to be added to the top of the page.   Why is this not done automatically by the wizard or as soon as a chart is drop on the design surface?

Second Error:
"The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2007.3.1425.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />"

Ok so I added this to my web.config but again why is this not done automatically?

Third problem:
"Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.
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.MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

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:
[MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.]
   Telerik.Web.UI.MapAreaBuilder.GenerateImageMap(IContainer container) +0
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +1128
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +9
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558"

 
I read on the forum to put CreateImageMap="false" solve the problem, not sure why but I did it anyway.

Forth Error:
"Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Telerik.Charting.ChartSeriesCollection must have items of type 'Telerik.Charting.ChartSeries'. 'Telerik.Charting.ChartSeries' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Source Error:
Line 34:                     </Items>
Line 35:                 </telerik:ChartSeries>
 Line 36: <Telerik.Charting.ChartSeries Name="Sales">   <-- NOTE: The error is on this line
Line 37: <Appearance Border-Color="Black">
Line 38: <FillStyle MainColor="199, 243, 178" SecondColor="17, 147, 7"></FillStyle>"
 
Ok so now I am stuck, can anyone help me ?
Btw I am using VS 2008, .Net 3.5
 
Thank you,
Eric

Giuseppe
Telerik team
 answered on 29 Jul 2008
2 answers
143 views
Hi,

I applaud your RAD Editor wrapper and installation; fantastic work!

I am now implementing other of your control and find the installation a bit more cumbersome and the documentation somewhat patchy.

1) For example, the deployment documentation specifies the minimum files to be deployed to the web front ends and modifications to web.config required to load the controls. All good. What I am missing though, for example, is the installation for the skin CSS files - where should these be copied? 

2) The installation program requires an environment where VS and WSS are on the same machine. Whist in some environments this may be the case, our dev server is not on the same machine as VS. I would like to suggest your program ask for the location to the target MOSS server and support installation to an environment where Visual Studio is on the developer's PC and MOSS on a server located on the network somewhere.

3) I have not yet been able to work out how to add an icon to a panel item based on the current navigator provider content. It would be wonderful if you could suggest some MOSS code for icon management please.

If I am missing something on these issues please do let me know.

Thanks a lot

Regards

Tim
Tim
Top achievements
Rank 1
 answered on 29 Jul 2008
5 answers
215 views
Hi
I have a small problem in my scheduler.

When I use a parameter to get an selected user when loading scheduler with the following code

MyPage

page1 = (MyPage) owner.Page;
string param1 = page1.MyParam;

and use the folling code in my .aspx file

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="Slut" DataKeyField="ID" LastDayOfWeek="Sunday" ProviderName="SchedulerData" Culture="Danish (Denmark)" FirstDayOfWeek="Monday" Skin="Outlook" DataRecurrenceField="Gentagelse" DataRecurrenceParentKeyField="GentagelseID" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Emne" CustomAttributeNames="Kommentar" EnableCustomAttributeEditing="True">
<AppointmentTemplate>
<%# Eval("Subject") %>
<%
# Eval("Kommentar").ToString() != String.Empty ? "[" + Eval("Kommentar") + "]" : String.Empty %>
</AppointmentTemplate>
<MonthView HeaderDateFormat="MMMM yyyy" />
<DayView HeaderDateFormat="dddd dd MMMM yyyy" />
<WeekView ColumnHeaderDateFormat="ddd, d" />
</telerik:RadScheduler>

 I get the following error 

System.NullReferenceException: Object reference not set to an instance of an object.

But when I use your example Defining Resources I get no error.
this code looks like this

<telerik:RadScheduler ID="RadScheduler1" runat="server" Width="569px" Skin="Outlook" Culture="Danish (Denmark)" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" DataEndField="Slut" DataKeyField="ID" DataRecurrenceField="Gentagelse" DataRecurrenceParentKeyField="GentagelseID" DataSourceID="AppointmentsDataSource" DataStartField="Start" DataSubjectField="Emne" OnAppointmentCreated="RadScheduler1_AppointmentCreated" EnableCustomAttributeEditing="True" CustomAttributeNames="Kommentar">
<ResourceTypes>
<telerik:ResourceType KeyField="UserID" Name="Bruger" TextField="UserName" ForeignKeyField="BrugerID" DataSourceID="UsersDataSource" />
</ResourceTypes>
<AppointmentTemplate>
<%# Eval("Subject") %>
<%
# Eval("Kommentar").ToString() != String.Empty ? "[" + Eval("Kommentar") + "]" : String.Empty %>
</AppointmentTemplate>
<MonthView HeaderDateFormat="MMMM yyyy" />
<DayView HeaderDateFormat="dddd d MMMM yyyy" />
<WeekView ColumnHeaderDateFormat="ddd d" />
</telerik:RadScheduler>

Why that.
Should I get all users to get work?

Hope you can help me.

Best regards
Hans Jørgen

Atanas Korchev
Telerik team
 answered on 29 Jul 2008
3 answers
197 views
Is it possible to add a context menu to RadComboBox Items just as you would with a TreeView? If so, would it involve a template such as RadGrid which contained the context menu on right click? This is brainstorming for now, but may lead to much improved user experience in certain scenarios.
Thanks!
Yana
Telerik team
 answered on 29 Jul 2008
1 answer
101 views
Lets say I have a panel bar defined as the following:

<telerik:RadPanelBar
   ID="RadPanelBar1"
   runat="server"
   Skin="Outlook">
 <Items>
  <telerik:RadPanelItem runat="server" Text="Calendar">
     <Items>
       <telerik:RadPanelItem runat="server">
         <ItemTemplate>
           <telerik:RadCalendar ID="RadCalendar1" runat="server" Skin="Outlook" />
         </ItemTemplate>
       </telerik:RadPanelItem>
     </Items>
  </telerik:RadPanelItem>
 </Items>
</telerik:RadPanelBar>

Is it possible to gain access to RadCalendar1 from server side code?
Rosi
Telerik team
 answered on 29 Jul 2008
1 answer
174 views
I don't want the tooltip to disappear until the mouseout.

It seems it is disappearing after a delay and I don't want it to go away until the user moves the mouse off the control.

How do I do that?

thanks.
Sophy
Telerik team
 answered on 29 Jul 2008
1 answer
166 views

Hi,

In RadGird I have taken one RadComboBox, in that I have taken the thins as follow

<telerik:RadGrid ID="rg_AddPorts" runat="server" AllowPaging="True" Skin="Default"

                                GridLines="Horizontal" PageSize="10" Width="100%" OnNeedDataSource="rg_AddPorts_NeedDataSource"

                                OnInsertCommand="rg_AddPorts_InsertCommand" OnItemDataBound="rg_AddPorts_ItemDataBound"

                                OnUpdateCommand="rg_AddPorts_UpdateCommand">

<MasterTableView CommandItemDisplay="TopAndBottom" AutoGenerateColumns="false" DataKeyNames="Port_PortNo"

                                    EditMode="EditForms" CommandItemSettings-AddNewRecordText="Add Ports">

<Columns>

 

………

</Columns>

<EditFormSettings EditFormType="Template">

<EditColumn UniqueName="EditCommandColumn1">

                                        </EditColumn>

                                        <FormTemplate>

                                            <!-- Grid Table Designing->

 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="TblMaster">

<tr>

<td>

<telerik:RadComboBox ID="rcbxCity" runat="server" Height="190px" Width="127px" MarkFirstMatch="true"

                                                            EnableLoadOnDemand="true" HighlightTemplatedItems="true" DataTextField="Place_City"

                                                            DataValueField="Place_No" DropDownWidth="300">

<HeaderTemplate>

<table style="width: 375px" cellspacing="0" cellpadding="0">

<tr>

<td style="width: 125px;">

                                                                            City

</td>

<td style="width: 125px;">

                                                                            State

</td>

<td style="width: 125px;">                                                                            Country

</td></tr></table>                                                            </HeaderTemplate>                                                            <ItemTemplate>                                                              <table style="width: 375px" cellspacing="0" cellpadding="0">                                                                    <tr>                                                                        <td style="width: 125px;" class="comboItemCell">                                                                            <div class="comboItem">                                                                                <%# DataBinder.Eval(Container.DataItem, "place_City")%>                                                                            </div>                                                                        </td>                                                                        <td style="width: 125px;" class="comboItemCell">                                                                            <div class="comboItem">                                                                                <%# DataBinder.Eval(Container.DataItem, "place_State")%>                                                                            </div>                                                                        </td>                                                                        <td style="width: 125px;" class="comboItemCell">                                                                            <div class="comboItem">                                                                                <%# DataBinder.Eval(Container.DataItem, "place_Country")%>                                                                            </div>                                                                        </td>                                                                    </tr></table>                                                            </ItemTemplate>                                                        </telerik:RadComboBox>                                                    </td>

 

protected void rg_AddPorts_ItemDataBound(object sender, GridItemEventArgs e)

    {

        if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))

        {

            GridEditFormItem item1 = (GridEditFormItem)e.Item;

 

            RadComboBox rcbxPortCity = item1.FindControl("rcbxCity") as RadComboBox;

            DataSet ds=BO_AddPorts.Fill_PortCity();

            rcbxPortCity.DataSource = ds;

            rcbxPortCity.DataBind();

          

            

        }

    }

And when I click “AddNew Record”Button on RadGird its Biding Perfectly. But when I want to Edit Records then I am nt able to Bind Corresponding record

Edit Mode



This time I am n table to bind The corresponding record.

Here I am taking this PlaceNo,City,State,country in to separate table and Bidning like this. Pls Guide me how to Bind Exact Inserted record when I will perform Edit Mode.

Shinu
Top achievements
Rank 2
 answered on 29 Jul 2008
4 answers
115 views
Hi there,

I am working with the new ClientChanges property for the RadTreeView, included in last week's Q2 release of the Telerik controls.  I am trying to edit, remove and drag and drop nodes on the client side and then process the changes all at once on the server, to minimise the number of post-backs.  First, I am calling the trackChanges() method of the client-side tree object in a Javascript function that handles the OnClientLoad event.  Then I have the following function to handle the OnClientNodeDropping event on the client:

      function ClientNodeDropping(sender, args)
      {
        // get source and destination nodes
        var sourceNode = args.get_sourceNode(), destNode = args.get_destNode();
        if (destNode)
        {
          destNode.get_nodes().add(sourceNode);
        }
      }

Finally, I have a Submit button, with a Click event handler that calls the commitChanges() method of the client-side tree object and then generates a post-back.

On the server, I iterate through the list of ClientChanges to build up a SQL string like this:

        foreach (ClientOperation<RadTreeNode> operation in tree.ClientChanges)
        {
            RadTreeNode node = operation.Item;
            switch (operation.Type)
            {
                case ClientOperationType.Insert:
                    SQLString.AppendLine("INSERT INTO ... VALUES ...");
                    break;
                case ClientOperationType.Remove:
                    SQLString.AppendLine("DELETE FROM ... WHERE ID = ...");
                case ClientOperationType.Update:
                    UpdateClientOperation<RadTreeNode> update = operation as UpdateClientOperation<RadTreeNode>;
                      SQLString.AppendLine("UPDATE ... SET ParentId = ... WHERE ID = ...");
            }
        }
        // now commit the changes to the database
        UpdateDatabase(SQLString.ToString());

The UpdateDatabase function executes the commands contained in the string.

This is working well apart from one crucial issue; whenever I drag and drop a node, the ClientChanges collection of operations includes one Remove operation for deleting the node from its original (source) parent, one Insert operation for inserting it under its new (destination) parent and then one Insert operation for *each and every child* that was also moved in the drag operation!  These children are already present in the database, so the code crashes at this point.

Am I doing something wrong, or is this a known issue?  If so, is there a work-around?

All help gratefully received,

Ed Graham
Ed
Top achievements
Rank 1
 answered on 29 Jul 2008
4 answers
230 views
My User Control for my tooltip is not binding to the Datasource control and it displays the information twice in the user Control.

WHat am I doing wrong?

UserControl ascx
<%@ Control Language="VB" AutoEventWireup="True" CodeFile="StaffProfile.ascx.vb"  Inherits="UserControls_StaffProfile" %>
    <link href="~/Css/Tooltip.css" rel="stylesheet" type="text/css" />
<asp:FormView ID="StaffView" DataSourceID="sdsStaffProfile"  runat="server" DataKeyNames="UserID">

      <ItemTemplate>
        <fieldset class="tooltipStaff">
            <div class="tooltipHeader">Name:  <%#Eval("UserName")%></div>
            <div class="tooltipText">Title: <%#Eval("Title")%></div>
            <div class="tooltipText">Ext: <%#Eval("Ext")%></div>                       
            <div class="tooltipText"><asp:Label ID="Label2" runat="server" Text="sample"><%#Eval("Office")%></asp:Label>  
                <br />     
                Office2:  <%#Eval("Office")%></div>     
            <div class="tooltipText">Office Phone:  <%#Eval("OfficePhone")%> </div>     
            <div class="tooltipText">Cost Center:  <%#Eval("CostCenter")%></div>     
             <div class="tooltipText">Supervisor:  <%#Eval("Supervisor")%></div>    
         </fieldset>
    </ItemTemplate>
    </asp:FormView>
    <asp:Button ID="btnStaffProfile" runat="server" Text="Open" CausesValidation="False" />
<asp:SqlDataSource ID="sdsStaffProfile" runat="server"
    ConnectionString="<%$ ConnectionStrings:AppConnectionString %>"
    SelectCommand="proc_xUserProfileStaffProfileView" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:SessionParameter Name="UserID" SessionField="UserID" Type="Int64" />
    </SelectParameters>
</asp:SqlDataSource>
 


UserControl.ascx.vb
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Configuration
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls
Imports Telerik.Web.UI
Partial Class UserControls_StaffProfile
    Inherits System.Web.UI.UserControl
    Dim UserID As Integer
    Private Sub ConfigureView()
        Me.sdsStaffProfile.SelectParameters("UserID").DefaultValue = CType(Me.UserID, Integer)
        Me.StaffView.DataBind()
    End Sub
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        UserID = CType(Session("UserID"), Integer)
        ConfigureView()
    End Sub
      Protected Sub btnStaffProfile_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnStaffProfile.Click
        Response.Redirect("~/Staff/StaffProfile.aspx?UID=" + CType(UserID, String))
    End Sub
End Class



Sophy
Telerik team
 answered on 29 Jul 2008
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?