Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
426 views

Hi,

I am experiencing an exception Sys.ArgumentNullException: value cannot be null: parameter name: panelsCreated[6].

Not sure what is causing it, but I suspect the exception has something to do with RadWindow since it occurs when I open a RadWindow repeatedly.

Thanks in advance.

The markup for the 2 RadWindows are as follows:

<telerik:RadWindowManager ID="Singleton" runat="server" Animation="None" Behaviors="Move"
        Width="900px">
        <windows>
            <telerik:RadWindow ID="rwProtoResponseMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwProtoResponseMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/ProtoResponseMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwResource" runat="server" Title="Pick a Resource" VisibleStatusbar="false"
                Modal="true" NavigateUrl="~/Agency/Search/ResourceSearch.aspx"
                Width="800" Height="650">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPatientProfileEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPatientProfileEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Patient"
                NavigateUrl="~/Agency/Authoring/PatientProfileEditEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeMediaEdit" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeMediaEdit_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Media"
                NavigateUrl="~/Agency/Authoring/PrototypeMediaEdit.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeSummary" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeSummary_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Summary"
                NavigateUrl="~/Agency/Authoring/PrototypeSummary.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeQuestionTypeChange" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeQuestionTypeChange_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Question Type"
                NavigateUrl="~/Agency/Authoring/PrototypeQuestionTypeChange.aspx">
            </telerik:RadWindow>
            <telerik:RadWindow ID="rwPrototypeBlueprint" Behaviors="Move, Resize, Maximize" Skin="Telerik"
                VisibleStatusbar="false" ReloadOnShow="false" OnClientClose="rwPrototypeBlueprint_ClientClose"
                BorderWidth="0" Width="950px" Modal="true" runat="server" Height="530px" Title="Prototype Blueprint"
                NavigateUrl="~/Agency/Authoring/PrototypeBlueprint.aspx">
            </telerik:RadWindow>
        </windows>
    </telerik:RadWindowManager>

 

The javascript for opening the RadWindows are as follows:

function OpenProtoResponseMediaEdit(prid, prrrsi)
            {
                var url = '<%= ConvertRelativeUrlToAbsoluteUrl("~/Agency/Authoring/ProtoResponseMediaEdit.aspx") %>';
                url = url + "?prid=" + prid + "&prrrsi=" + prrrsi;
 
                logsafe(url);
 
                var oWnd = $find("<%= rwProtoResponseMediaEdit.ClientID %>");
                //oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Maximize);
                oWnd.show();
                oWnd.setSize(950, 800);
                oWnd.setUrl(url);
                oWnd.minimize();
                oWnd.maximize();
                oWnd.restore();
                oWnd.center();
            }
 
            function rwProtoResponseMediaEdit_ClientClose(sender, args) {
 
                var arg1 = args.get_argument();
 
                //logsafe("rwProtoResponseMediaEdit_ClientClose");
                //logsafe(arg1);
                if (arg1 && arg1.indexOf('ok') === 0) {
                    SetNeedToConfirm('true');
                    //alert('needToConfirm = true');
                }
 
                var hidAddOptionsMediaAjax = $('#' + '<%=hidAddOptionsMediaAjax.ClientID%>');
                var btnAddOptionsMediaAjax = $('#' + '<%=btnAddOptionsMediaAjax.ClientID%>');
 
                hidAddOptionsMediaAjax.val(arg1);
                btnAddOptionsMediaAjax.click();
            }
 
 //Get current RadWindow
                    function GetRadWindow() {
                        var oWindow = null;
                        if (window.radWindow)
                            oWindow = window.radWindow;
                        else if (window.frameElement && window.frameElement.radWindow)
                            oWindow = window.frameElement.radWindow;
                        return oWindow;
                    }
 
                    function CloseRadWindow(arguments) {
                        var wnd = GetRadWindow();
                        wnd.close(arguments);
                    }
 
                    function OpenResourcePicker() {
 
                        var oWindow = GetRadWindow();
 
                        var oManager = oWindow.get_windowManager();
 
                        setTimeout(function () {
 
                            var winResourceSearch = oManager.getWindowByName("rwResource");
                            //winResourceSearch.remove_close(rwResource_ClientClose); // Remove the close handler, if exist
                            winResourceSearch.add_close(rwResource_ClientClose); // Set the close handler
 
                            oManager.open(null, "rwResource"); // Open RadWindow via RadWindowManager
                        }, 0);
                    }
 
                    function rwResource_ClientClose(sender, args) {
                        //logsafe('ProtoResponseMediaEdit rwResource_ClientClose');
                        //logsafe(args.get_argument());
 
                        var arg1 = args.get_argument();
 
                        sender.remove_close(rwResource_ClientClose); // Remove the close handler, if exist
 
                        setTimeout(
                            function () {
                                var hidResourcePickerPostback = $('#' + '<%=hidResourcePickerPostback.ClientID%>');
                                hidResourcePickerPostback.val(arg1);
 
                                var btnResourcePickerPostback = $('#' + '<%=btnResourcePickerPostback.ClientID%>');
                                btnResourcePickerPostback.click();
                            }, 100);
                    }

Vessy
Telerik team
 answered on 13 Apr 2016
3 answers
142 views

We are using telerik control in our app with windows authentication and upload fails in load balancer with ie11. With Compatibility view it doesn't work either.     

One of the solution that has been posted in the online is to issue a HEAD or a GET request prior to the POST.

How can this be done with the Telerik control?

 

Thanks!

Veselin Tsvetanov
Telerik team
 answered on 13 Apr 2016
4 answers
182 views

We have nested Nested tabstrip/multipage(s) and are using RenderSelectedPageOnly="true". It seems that nested tabstrips and the selected child pages are also rendered before the parent tab item is clicked which means for us about 6 pages are rendered as soon as the user hits the home page, incurring not only web but RDBMS traffic.

It seems this example - http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx

still loads the selectedpage="0" before it is clicked (which in our case for instance would be when the parent tabstrip/multipage is loaded.

Is there a way to avoid this behaviour and only load the child selectedpage when the parent tab containing the child tabstrip/multipage is selected?

 

Veselin Tsvetanov
Telerik team
 answered on 13 Apr 2016
1 answer
160 views

Hi,

 

I have two questions.

1. I need to have a client side event handler be called whenever user interacts with any of the RadEditors that exist on the page. What event I need to use?

2. Also, I can't change the markup or the code behind to add this event handler. So, how will I find all RadEditors on the page and attach this event using javascript?

 

Any help is greatly appreciated.

 

Thanks,

Ana

Danail Vasilev
Telerik team
 answered on 13 Apr 2016
12 answers
257 views
Hello,
We are using IE(version 8).We are facing a problem of cursor moving to the top of editor when we move the mouse outside of the editor.Is there any property of radEditor that can resolve the problem?

The steps when we face the problem
1) Entered the contents in the Editor till the scrollbar appears.
2) Then moved the mouse out of Editor.so cursor jumps to top of the screen as if the editor is refreshed.

Please provide the solution to the problem.

Regards,
Rahul.
Ianko
Telerik team
 answered on 13 Apr 2016
1 answer
101 views

Does Grid support export to excel (xlsx) when groupping is enabled?

I was not able to find any demo?

Viktor Tachev
Telerik team
 answered on 13 Apr 2016
5 answers
1.0K+ views
Hi All,

I am using radgrid and VS2008.

I want to show the data in grid in one line row.
Currently it expand the cell and row height according to the data.
I want to show the data in in line row . if data is greater then it will show the '...'.
How can it achieve?

I have tried the implement css which run in VS2005 for gridview.
 td { word-wrap: break-word; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }

in VS2008 this css doesn't work.

Or there is way to set the grid css?

Thanks.


Eyup
Telerik team
 answered on 13 Apr 2016
1 answer
580 views

 Hi,

I am a RadGrid newbie and would appreciate help with a few items.

I am using RadGrid in a SharePoint 2010 visual web-part.  I am also using server side code.

Skin = office2010blue

Here are my questions:

1. How do I declaratively set the font for the rows (not just the header)?

2. How do I specify the columns and their width?

3. How do I at runtime set the background color of individual cells and for entire row?

4. How do I stop inheriting the font color from twitter bootstrap css?

 

Konstantin Dikov
Telerik team
 answered on 13 Apr 2016
5 answers
125 views
Is it Possible to attach a RadContextMenu to A RadDatePicker Control?  And if So Is there any code examples?

Thanks

---R
Viktor Tachev
Telerik team
 answered on 13 Apr 2016
1 answer
307 views

Hi ,

how can i get target grid cell index or row key when i drag and drop my cell with same grid. I have attached screen shot and sample code below. Any help will be appreciated.

 var dragging = false;
            var dragContainer = null;
            var currentDraggedElement = null;

            function onColumnCreated(sender, args) {
                // hook to columns mousedown event;
                $addHandler(sender.get_element(), "mousedown", onMouseDown);
            }

            function onGridCreated() {
                // hook to columns document's events
                $addHandler(document, "mouseup", onMouseUp);
                $addHandler(document, "mousemove", onMouseMove);
            }

            function onMouseMove(e) {
                if (dragging && dragContainer) // if in drag mode move the dragged container
                {
                    dragContainer.style.display = "";
                    dragContainer.style.position = "absolute";
                    Telerik.Web.UI.Grid.PositionDragElement(dragContainer, e);
                }
            }

            function onMouseDown(e) {
                //create the dragged container
                dragging = true;
                dragContainer = document.createElement("div");
                dragContainer.style.position = "absolute";
                dragContainer.style.zIndex = 99999;
                dragContainer.style.display = "none";
                document.body.insertBefore(dragContainer, document.body.firstChild);

                var currentElement = Telerik.Web.UI.Grid.GetCurrentElement(e);

                //get parent row element then get the OnwerTableView in order to get objects for the column            
                var row = Telerik.Web.UI.Grid.GetFirstParentByTagName(currentElement, "tr");
                if (row.id == "")
                    return;

                var item = $find('<%=grdAvailability.ClientID%>').get_masterTableView()._getRowByIndexOrItemIndexHierarchical(row)

                var ownerTableViewId = item.id.split("__")[0];
                var ownerTableView = $find(ownerTableViewId);

                if (!ownerTableView)
                    return;

                currentDraggedElement = currentElement;//store the current cell as we will need it inside the mouseup event                    
                dragContainer.innerHTML = currentElement.innerHTML;
                Telerik.Web.UI.Grid.ClearDocumentEvents();
            }

            function onMouseUp(e) {
                if (dragging) {
                    // get the element that you are dropping on 
                    var currentElement = Telerik.Web.UI.Grid.GetCurrentElement(e);
                    if (dragContainer !== null && dragContainer.innerHTML !==null) {
                        currentElement.value = dragContainer.innerHTML;
                        currentDraggedElement.isDragged = true;
                        PageMethods.GetReservationKeyWithDocNo(dragContainer.innerHTML,
                                                       function (result) {
                                                           if (result !== null) {
                                                               url = '../Reservation/Update/NewMoveReservation.aspx?RK=' + result;
                                                               ShowRadWindow('Move Folio', url, 650, 530)
                                                           }
                                                       }, function (e) {
                                                           alert(e.get_message);
                                                           $telerik.$.unblockUI();
                                                       });
                    }
                   
                   
                    Telerik.Web.UI.Grid.RestoreDocumentEvents();
                    document.body.removeChild(dragContainer);
                    dragContainer = null;
                    currentDraggedElement = null;
                }
                dragging = false;
            }
            function onGridDestroying() {
                $removeHandler(document, "mouseup", onMouseUp);
                $removeHandler(document, "mousemove", onMouseMove);
            }

Eyup
Telerik team
 answered on 13 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?