Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
132 views

Hi,

I am creating RadPivotGrid fields on page load programmatically, but when ı drag and drop any fields to another area (column,row,data etc.) all fields are disappear and no data available.Here is the server side vb code. Can anyone help me what is the reasen of this? 

 

      RadPivotGrid1.EmptyValue = ""
            RadPivotGrid1.ColumnHeaderCellStyle.Width = New Unit(90)
            RadPivotGrid1.ClientSettings.Scrolling.AllowVerticalScroll = True


            Dim JSs = New AdvancedJavaScriptSerializer()
            Dim lstPivotGridField As List(Of PivotGridFieldItem) = JSs.Deserialize(Of List(Of PivotGridFieldItem))(Request.Params("lstPivotGridField"))

            For Each PGField In lstPivotGridField
                If PGField.DataField.Trim = "" Then
                    Continue For
                End If

                Dim Field As PivotGridField = Nothing
                Select Case PGField.Group
                    Case 0
                        Field = New PivotGridColumnField()
                    Case 1
                        Field = New PivotGridRowField()
                    Case 2
                        Field = New PivotGridReportFilterField()
                    Case 3
                        Dim AggField = New PivotGridAggregateField()
                        Select Case PGField.Type
                            Case 0
                                AggField.Aggregate = PivotGridAggregate.Sum
                            Case 1
                                AggField.Aggregate = PivotGridAggregate.Count
                            Case 2
                                AggField.Aggregate = PivotGridAggregate.Average
                            Case Else
                                Continue For
                        End Select

                        AggField.Caption = PGField.Caption
                        AggField.DataField = PGField.DataField
                        AggField.UniqueName = PGField.DataField
                        AggField.DataFormatString = "{0:F2}"
                        AggField.TotalFormatString = "{0:F2}"

                        RadPivotGrid1.Fields.Add(AggField)
                        Continue For
                    Case Else
                        Continue For
                End Select

                Field.Caption = PGField.Caption
                Field.DataField = PGField.DataField
                Field.UniqueName = PGField.DataField
                RadPivotGrid1.Fields.Add(Field)

            Next

 

----------------------------------------- ASPX CODE BEHIND --------------------------------------------------------------

 

<telerik:RadMultiPage runat="server" ID="CubeReportMultiPage">
                                <telerik:RadPageView runat="server" ID="pwTablo">
                                    <telerik:RadAjaxPanel ID="radAjaxPanel" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                                        <telerik:RadPivotGrid RenderMode="Lightweight" runat="server" ID="RadPivotGrid1" AllowFiltering="true" AllowPaging="true" ShowFilterHeaderZone="false" OnPivotGridCellExporting="RadPivotGrid1_PivotGridCellExporting" OnCellDataBound="RadPivotGrid1_CellDataBound">
                                            <ClientSettings EnableFieldsDragDrop="true">
                                                <Scrolling AllowVerticalScroll="true"></Scrolling>
                                            </ClientSettings>
                                        </telerik:RadPivotGrid>
                                    </telerik:RadAjaxPanel>
                                </telerik:RadPageView>
                                <telerik:RadPageView runat="server" ID="pwGrafik">
                                    <telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Visible="true" Legend-Appearance-Position="Top"
                                        PlotArea-YAxis-LabelsAppearance-DataFormatString="C" PlotArea-XAxis-LabelsAppearance-RotationAngle="45">
                                    </telerik:RadHtmlChart>
                                </telerik:RadPageView>
                            </telerik:RadMultiPage>

Yavuz Selim
Top achievements
Rank 1
 asked on 19 Jun 2017
0 answers
113 views
When I use RadSpreadsheet control inside RadSplitter control, RadSplitBar is not working.
sandeep
Top achievements
Rank 1
 asked on 19 Jun 2017
1 answer
485 views
Customized with new column and hide percentage column in hover of gantt chart and introduced new column 
Peter Milchev
Telerik team
 answered on 19 Jun 2017
0 answers
149 views

the site on IIS 8.5 which is working fine while browsed wit .

http://localhost:80

But when accessed with domain name the resources are not loaded 

Please find attached screenshot for same

Please help

Supriya
Top achievements
Rank 1
 asked on 19 Jun 2017
13 answers
943 views
I'm using the ASP.NET AJAX RadGrid, with the EnableHeaderContextMenu="true" setting. My grid has several columns, some of which are hidden by default using Display="false". Using the header context menu, I can hide and show columns on the client-side, which works great, with one glaring exception: columns that start out hidden are not able to be shown! Checking the box for a default-hidden column appears to do nothing. Upon doing a postback (by changing page or something), the column appears. Is there a fix for this?

EDIT: Additionally, the documentation says that you can edit column widths using COLGROUP.COL.WIDTH. That's the rendered HTML tag names, but what properties does that pull from?

EDIT2: I just noticed something interesting regarding my original question: The columns actually are appearing, they just have 0 minimum width, so that they're 0 wide if the window is narrow enough to require horizontal scrolling. I seem to be continuously plagued by issues with column width. I'm currently using TableLayout=Auto, and not setting any width on any columns, apart from setting the FilterControlWidth to be smaller than normal on some of the small columns.



Thanks!
Eyup
Telerik team
 answered on 19 Jun 2017
0 answers
223 views

Hi,

 We are using RadEditor Export PDF functionality.

  Export to PDF getting Javascript Error "Error while executing filter ConvertFontToSpanFilter - InvalidCharacterError: Failed to execute 'setAttribute' on      'Element': 'font-family:arial,' is not a valid attribute name.

We tried to Disable ConvertFontToSpanFilter Filter. Then PDF is not downloaded and getting below Error

System.ArgumentException: String cannot be of zero length. Parameter name: oldValue at System.String.ReplaceInternal(String oldValue, String newValue) at System.String.Replace(String oldValue, String newValue) at System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) at System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) at Telerik.Web.UI.Editor.Export.ApocPdfGenerator.ValidateContentForExport(String content) at Telerik.Web.UI.Editor.Export.RadEditorExportTemplate.GenerateXmlStirng(String pageTitle, String content) at Telerik.Web.UI.Editor.Export.RadEditorExportTemplate.InitializeXmlContent() at Telerik.Web.UI.Editor.Export.RadEditorExportTemplate.Export() at

Subhash
Top achievements
Rank 1
 asked on 19 Jun 2017
3 answers
586 views

i have a problem in uploading files via RadAsyncUpload when i open the page that contains the telerik upload controls

the following error rises -->

RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.

 

in localhost working fine but in my website does not work ,

so i contacted to the host provider and asked to set full permission to App_Data an the Target folder and sub folders so they set the permission and still i get the above error ,

then i set UseApplicationPoolImpersonation to True and impersonate to true in web.config but still no hope same error,

what can i do to fix this error 

note: before the host provider update iis to 10 the upload was working.

 

 

Saeed
Top achievements
Rank 1
 answered on 17 Jun 2017
2 answers
265 views
Hi,
 I am looking for Inline document viewer in Web applications.I have a requirement to show all the documents(doc,docx,.rtf,xls,ppt..etc) in the browser as inline document like (Scribd).Does Telrik has kind of viewer in your product line.

Thanks,
ryan
Top achievements
Rank 1
 answered on 17 Jun 2017
0 answers
140 views

I am using the Panelbar for navigation. The Panelbar expands when a category button is clicked. When a child item is selected in the Panelbar and navigate to page, the Panelbar collapses. The Panelbar should stay open until another item on the same level is selected. The user must reopen the menu item to select another item from the same level. In my case two levels collapse, back to original setting when web site opened. 

The menu looks like this:

Major Category 1 (Always expanded)

  Item 1

  item 2

  Item 3

Major Category 2

  Minor Category 1

    Item 1   Selecting any of these items will collapse everything back to Major Category 2

    Item 2

    Item 3

 Minor Category 2

    Item 1    Selecting any of these items will collapse everything back to Major Category 2

    Item 2

We have these settings:

ExpandMode="MultipleExpandedItems"  This is selected because we have the most used items expanded all the time and then less used items in major categories with sub categories then child items.

Prevent collapse does not let the panel ever collapse once it has been opened

What setting do we use so the panelbar will remain expanded until another item on the same level is expanded?

We are using ASP.NET with Ajax  version: 2011.2.712.40

Bob
Top achievements
Rank 1
 asked on 16 Jun 2017
0 answers
166 views
Hi!
We try to use RadEditor in our site pages, where group of students able to edit same data. We need to implement some concurrency mechanism. We need to be sure, that previously edited data will be used for next editing and that user will know if someone already changed some Editor data during current user editing.
Is there exists some standard realization or best practices for such workflow?

Now we try to make it using client events in two steps:
1. Update data from server on start editing
It used OnFocus event, disable control and calls server-side checking of conflicts, then enable it after update control data from server.
2. Update data at server on finish editing
It used OnBlur event and send data to server for update
We already have problems with such realization. For example, on page loading we have OnFocus event fired by each Control (it's standard RadEditor behaviour) and it causes additional not necessary requests to server.
What would be a solution for this cases?
Oleksiy
Top achievements
Rank 1
 asked on 16 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?