This is a migrated thread and some comments may be shown as answers.

Configuration panel is not responsive

3 Answers 67 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Yohan
Top achievements
Rank 2
Yohan asked on 22 Jan 2014, 09:01 AM
I'm using OLAP connection to pivot grid. My application must work on all resolutions  including 1024X768 and above with browser re size responsive capability. I have noticed that pivot grid configuration panel is not responsive when browser re size. even when set fixed height low height it wont re size configuration panel but show some of the elements cropped. Is there a workaround to achieved this functionality? 

Regards,
Yohan

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 24 Jan 2014, 03:50 PM
Hello Yohan,

We are currently working on optimizing our controls rendering in order to be responsive for all mobile devises. This is our dev team main task and we hope we will have some results on this case soon.

Excuse us for any inconvenience this issue may lead.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Yohan
Top achievements
Rank 2
answered on 25 Jan 2014, 08:49 AM
Hello Maria,

Will this be fixed in 2014 Q1 release? if not is there any patch mechanism which i can fallow for now?

Regards,
Yohan
0
Maria Ilieva
Telerik team
answered on 29 Jan 2014, 09:38 AM
Hi Yohan,

It appears that the issue mainly appear in case the configuration Panel position is set to top or bottom. Could you please try applying the fix below and verify if this helps:
<script>
    if (Telerik.Web.UI.RadPivotGrid)
    {
        Telerik.Web.UI.RadPivotGrid.prototype._getPivotWrapperElement = function ()
        {
            var element = this.get_element();
            if (element.className.indexOf("rpgConfigurationPanel ") != -1)
            {
                return $get(this.get_id() + "_OT").parentNode;
            }
            return element;
        }
 
        Telerik.Web.UI.RadPivotGrid.prototype._calculateScrollHeight = function ()
        {
            var resultHeight = this._clientSettings._scrolling._scrollHeight.Value;
            if (this._isHeightSet())
            {
                var cumulativeHeight = 0;
                var outerTable = $get(this.ClientID + "_OT");
                var rows = outerTable.tBodies[0].rows;
                for (var i = 0; i < rows.length; i++)
                {
                    if (rows[i].cells.length > 0)
                    {
                        if (rows[i].cells[0].className != "rpgRowHeaderZone")
                        {
                            cumulativeHeight += rows[i].cells[0].offsetHeight;
                        }
                    }
                }
                var pivotGridHeight = this.get_element().style.height.indexOf("px") > -1 ? parseInt(this.get_element().style.height, 10) : this.get_element().offsetHeight;
                if (this._configurationPanel && (this._configurationPanel.get_element().className.indexOf("rpgTopConfigurationPanel") != -1 || this._configurationPanel.get_element().className.indexOf("rpgBottomConfigurationPanel") != -1))
                {
                    pivotGridHeight -= parseInt(this._configurationPanel.get_element().offsetHeight, 10);
                }
                resultHeight = pivotGridHeight - ++cumulativeHeight;
                if (resultHeight < 0)
                {
                    resultHeight = 50;
                }
            }
            return resultHeight;
        }
    }
</script>

The same fix will be included in the Q1 2014 release of the controls.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
PivotGrid
Asked by
Yohan
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Yohan
Top achievements
Rank 2
Share this question
or