Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
77 views
Hi

I have a very large report which is divided into 60 pages. I only show the footer on the last page.
If I move to for example page 10 and press export, everything but the footer (aggregate ="sum") will be exported. I always work if I export from the first page.

What have I missed?


Thanks in advance

/Teresia
Princy
Top achievements
Rank 2
 answered on 20 Jan 2011
1 answer
84 views
The telerik radgrid rows are overlaping as you can see in the attachement. Can anyone got this problem and if you know the fix please share with me.
Shinu
Top achievements
Rank 2
 answered on 20 Jan 2011
1 answer
97 views
I assumed I would be able to find a solution to this issue very easily, but unfortunately I haven't been able to.

I have a pie chart that I want to simply display only 2 pieces.  I have a sql command that uses the UNION command to join my two queries into one column for the chart.  That is working fine, however I do not know how to change the pie charts legend to show the 2 colors, and add custom text for each color.

I changed the LegendDisplayMode to show ItemLabels.  Also, I am trying to set the legend text by using:
Protected Sub RadChart1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Charting.ChartItemDataBoundEventArgs) Handles RadChart1.ItemDataBound
        e.SeriesItem.Name = "Purchases"
        e.SeriesItem.Name = "Returns"
    End Sub

This obviously only shows "Returns" on the legend, and does so twice for both slice colors.  How do I change both of them?
Evgenia
Telerik team
 answered on 20 Jan 2011
5 answers
167 views

Hello.

I'm converting a SharePoint web farm from MOSS 2007 to SharePoint 2010 Enterprise, and my client uses the RadEditor for MOSS.  We currently have RadEditor 5.8.4.0 (radeditormoss.wsp) installed.  On one of our sites, we can't put any publishing pages in edit mode without getting the following error.  Does anyone know what might be causing this error?

01/13/2011 11:10:44.51  w3wp.exe (0x03D0)                        0x1414 SharePoint Foundation          Runtime                        tkau Unexpected System.MissingMethodException: Method not found: 'Boolean Microsoft.SharePoint.Publishing.WebControls.HtmlEditor.get_DisableBasicFormattingButtons()'.    at Telerik.SharePoint.RadHtmlField.SetEditorProperties()     at Telerik.SharePoint.RadHtmlField.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoi... faaa8390-d548-4d90-a646-4d9a457df63e

Thanks!
Stanimir
Telerik team
 answered on 20 Jan 2011
2 answers
109 views
I have FileExplorer reading from a virtual path setup in IIS with Integrated Windows Authentication.  It displays the files but when a user clicks to open one it prompts for user/pass info and nothing works, it keeps prompting.

what am I missing?
Dobromir
Telerik team
 answered on 20 Jan 2011
4 answers
213 views
Hi,

I have a dynamically created RadGrid. Now on expanding the child tables in the Grid, I want to get the name of the tableView on "grv_ItemCommand" event. Here is my code:
private void BindData()
        {
            clickedType = Session["type"].ToString();
            int id = ParentEntity.ParentEntityId;
            GridTableView tableView = new GridTableView(grv);
 
            switch (clickedType)
            {
                case "All Categories":
                    using (SpaceCategoriesService.SpaceCategoriesServiceClient s = new SpaceCategoriesService.SpaceCategoriesServiceClient())
                    {
                        grv.DataSource = s.GetCategoryTable();
                        tableView.Name = "Buildings";
                        tableView.DataMember = "Buildings";
                    }
                    break;
 
                case "SpaceCategories":
                    using (SpaceBuildingsService.SpaceBuildingsServiceClient s = new SpaceBuildingsService.SpaceBuildingsServiceClient())
                    {
                        grv.DataSource = s.GetBuildingByCategoryId(id);
                        tableView.Name = "Floors";
                        tableView.DataMember = "Floors";
                    }
                    break;
 
                case "SpaceBuildings":
                    using (SpaceFloorService.SpaceFloorServiceClient s = new SpaceFloorService.SpaceFloorServiceClient())
                    {
                        grv.DataSource = s.GetFloorsByBuildingId(id);
                        tableView.Name = "Rooms";
                        tableView.DataMember = "Rooms";
                    }
                    break;
 
                case "SpaceFloors":
                    using (SpaceRoomService.SpaceRoomServiceClient s = new SpaceRoomService.SpaceRoomServiceClient())
                    {
                        grv.DataSource = s.GetRoomByFloorId(id);
                    }
                    break;
 
                default:
                    throw new Exception("Unable to identify Entity.");
            }
 
            grv.MasterTableView.DetailTables.Clear();
            grv.MasterTableView.DetailTables.Add(tableView);
 
            GridTableView tab = new GridTableView(grv);
            switch (tableView.Name)
            {
                case "Buildings":
                    tab.DataMember = "Floors";
                    tab.Name = "Floors";
                    tableView.DetailTables.Clear();
                    tableView.DetailTables.Add(tab);
                    break;
 
                case "Floors":
                    tab.DataMember = "Rooms";
                    tab.Name = "Rooms";
                    tableView.DetailTables.Clear();
                    tableView.DetailTables.Add(tab);
                    break;
 
                default:
                    break;
            }
 
            if (tableView.Name == "Buildings")
            {
                GridTableView subTab = new GridTableView(grv);
                if (tab.Name == "Floors")
                {
                    subTab.DataMember = "Rooms";
                    subTab.Name = "Rooms";
                    tab.DetailTables.Clear();
                    tab.DetailTables.Add(subTab);
                }
 
            }
 
            grv.DataBind();
        }
 
protected void grv_ItemCommand(object sender, GridCommandEventArgs e)
        {
            BindDetails(ParentEntity.ParentEntityId);
            HttpContext.Current.Session["id"] = ParentEntity.ParentEntityId;
            switch (Session["type"].ToString())
            {
                case "All Categories":
                    FormExtenderControl1.EntityType = new BaseEntities(BaseEntities.SpaceCategories);
                    break;
 
                case "SpaceCategories":
                    FormExtenderControl1.EntityType = new BaseEntities(BaseEntities.SpaceBuildings);
                    break;
 
                case "SpaceBuildings":
                    FormExtenderControl1.EntityType = new BaseEntities(BaseEntities.SpaceFloors);
                    break;
 
                case "SpaceFloors":
                    FormExtenderControl1.EntityType = new BaseEntities(BaseEntities.SpaceRooms);
                    break;
 
                default:
                    throw new Exception("Unable to identify Entity.");
            }
 
            clickedType = Session["type"].ToString();
 
            if (e.CommandName == "Modify")
            {
                btnSave.CommandName = "Modify";
                int id = GetID();
                FormExtenderControl1.EntityPrimaryKeyId = id;
                FormExtenderControl1.DataBind();
                mdlPopup.Show();
            }
 
            if (e.CommandName == "Delete")
            {
                int id = GetID();
                FormExtenderControl1.Delete(id);
                BindData();
            }
 
            if (e.CommandName == "Add")
            {
                btnSave.CommandName = "Add";
                FormExtenderControl1.EntityPrimaryKeyId = -1;
                FormExtenderControl1.DataBind();
                mdlPopup.Show();
            }
        }
 
        private Int32 GetID()
        {
             
            foreach (GridDataItem dataItem in grv.MasterTableView.DetailTables.OwnerGrid.Items)
            {
                 
                if (dataItem.Selected == true)
                {
                    Int32 ID = Int32.Parse(dataItem["Id"].Text);
                    return ID;
                }
            }
                        
            throw new ArgumentNullException("Id Not found");
        }
Please assist me....


thanks
Rohan
Rohan
Top achievements
Rank 1
 answered on 20 Jan 2011
2 answers
88 views
Here is the code that worked previously and is throwing an exception now.  Its purpose is to set the column header based on a datasets caption property.  I think I went from Q1 2010 to current.  I will also show some strange debug watch results.

Private Sub RadGrid_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid.ColumnCreated
    Dim field As String
    Try
        field = e.Column.HeaderText
        If Not field = Nothing And field <> "" Then
            If DataSet.Tables(TableName).Columns(field).ColumnName = "ID" Then
                'e.Column.Display = False ' this causes some strange formatting problems
            ElseIf DataSet.Tables(TableName).Columns(field).Caption() = _
                DataSet.Tables(TableName).Columns(field).ColumnName Then
                e.Column.Visible = False
            Else
                e.Column.HeaderText = DataSet.Tables(TableName).Columns(field).Caption()
                e.Column.HeaderStyle.Wrap = False
            End If
        End If
    Catch ex As Exception
    End Try
End Sub

The exception is being caught when trying to evaluate:DataSet.Tables(TableName).Columns(field).ColumnName

Here are the watch results on one of the passes.  The field xx_tablename is expected.  I am setting field = e.Column.HeaderText early on. 
DataSet.Tables(TableName).Columns(0).ColumnName xx_tablename String
e.Column.HeaderText xx_ tablename String
DataSet.Tables(TableName).Columns("xx_tablename").ColumnName xx_tablename String
field xx_ tablename String
DataSet.Tables(TableName).Columns(field).ColumnName Referenced object 'Item' has a value of 'Nothing'.
ex.message Object reference not set to an instance of an object. String

If I hard code variable field to "xx_tablename" in the beginning it does not error out and I get the result I want.
Kent
Top achievements
Rank 1
 answered on 20 Jan 2011
6 answers
108 views
Currently I am looking for another rich text editor to replace the default one in WSS 3 and I came across radeditor!

When the comparison chart for Native MS Editor for MOSS vs Telerik RadEditor Lite for ASP.Net showing both can and cannot do exactly the same stuff, so what is the purpose of using Telerik RadEditor Lite then?  Or did I miss out something? Pardon a novice like me if that's the case  :~)
(http://www.telerik.com/documents/RadEditorMOSS_Feature_Comparison.pdf)

Hope to get any suggestion or advice from you guys, thanks.

Michelle

Michelle
Top achievements
Rank 1
 answered on 20 Jan 2011
6 answers
145 views
Hello;
I have a SharePoint site provisioning process that creates a site from a particular template and adds (imports) webparts to that site.  None of the webparts or the entire site provisioning process uses any Telerik.  I recently deployed rad editor to my SharePoint web application.  Ever since then the site provisioning process breaks.  In particular it breaks when i'm trying to read any dwp file before i import it to the page using the splimitedwebpartmanager.Importwebpart.. method.  '

As soon as i remove the safe controls lines from the web config, the site provisioning process works again.

Why is this happening?


thanks
Charles

 
Charles Faramarzi-rad
Top achievements
Rank 1
 answered on 20 Jan 2011
2 answers
110 views
Hello
I'm trying to automate a combobox selection from a different frame then the one that contains the control.
For standard HTML controls just write parent.rightFrame.document.getElementbyId.....
However whem I try parent.rightFrame.document.$find("<%=  radcombobox.ClientID %>") I get an error saying that object doesn't suppot this method.
I'm not at all familiar with the radcontrols and i;m not sure I'm doing this right. I got the control ID from the following html element:
<div class="RadComboBox RadComboBox_WebBlue" id="ctl00_CPH1_GridView1_gvReceivingTransactions_ctl03_gvSkidWeights_ctl02_ddlLocation" >  and i tried:

var tbLocation = parent.rightFrame.document.$find("<%= ctl00_CPH1_GridView1_gvReceivingTransactions_ctl03_gvSkidWeights_ctl02_ddlLocation.ClientID %>");

Is my syntax incorrect or is the problem that I'm accesing the control from a different frame. If that's the problem what can I do to work around it?

Thanx. I Hope someone can help me.
alan
Top achievements
Rank 1
 answered on 19 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?