Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
468 views
hi,

I am trying to extract the info of an attribute once the drop action is done.

I tried doing "var selectedStaffID = scheduler.getAppointmentFromDomElement(htmlElement).get_attributes("StaffID");"
However, that didn't help me.
How can i get the data of the scheduler's attribute on a spot where the appointment is dropped ?
thank you
01.function rowDropping(sender, eventArgs) {
02.                    // Fired when the user drops a grid row
03.                    var htmlElement = eventArgs.get_destinationHtmlElement();
04.                    var scheduler = $find('<%= RadScheduler2.ClientID %>');
05. 
06.                    if (isPartOfSchedulerAppointmentArea(htmlElement)) {
07.                         
08.                        // The row was dropped over the scheduler appointment area
09.                        // Find the exact time slot and save its unique index in the hidden field
10.                        var timeSlot;
11.                        //var selectedStaffID = scheduler.getAppointmentFromDomElement(htmlElement).get_attributes("StaffID");
12.                        //alert(selectedStaffID);
13.                        if ($telerik.$(htmlElement).parents(".rsApt").length != 0)
14.                            timeSlot = scheduler.getAppointmentFromDomElement(htmlElement).get_timeSlot();
15.                        else
16.                            timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement);
17.                        $get("<%=TargetSlotHiddenField.ClientID %>").value = timeSlot.get_index();
18. 
19.                        // The HTML needs to be set in order for the postback to execute normally
20.                        eventArgs.set_destinationHtmlElement("<%=TargetSlotHiddenField.ClientID %>");
21.                    }
22.                    else {
23.                         
24.                        // The node was dropped elsewhere on the document
25.                        eventArgs.set_cancel(true);
26.                    }
27.                }
Vessy
Telerik team
 answered on 09 Feb 2017
1 answer
114 views

Hi,

 

We discovered that in the latest version the RadWindow close function is no longer working when oWnd.maximize() is used.

This happens independently which skin is used.

Marc

Marin Bratanov
Telerik team
 answered on 09 Feb 2017
1 answer
270 views

Hello everyone

i have a problem with RadTabStrip and RadMultiPage. Please help me

i have a page that contain a RadTabStrip (with 2 Tab) and an RadMultiPage (with 2 RadPageView).

I've used Bootstrap inside RadPageView. but When I see it in the browser does not show me anything!

This problem occurs that inside RadPageView of I use Bootstrap classes for my controls (e.g input element or asp:textbox with bootstrap classes)

Please Help me

Below is my code:

    <div class="container-fluid" style="font-family: Tahoma;">
        <div class="row">
            <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12 pull-right">
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                    <telerik:RadTabStrip RenderMode="Lightweight" SelectedIndex="0" runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" Skin="Material">
                        <Tabs>
                            <telerik:RadTab Text="New user" Width="200px"></telerik:RadTab>
                            <telerik:RadTab Text="Edit User" Width="200px"></telerik:RadTab>
                        </Tabs>
                    </telerik:RadTabStrip>

                    <telerik:RadMultiPage RenderSelectedPageOnly="true" RenderMode="Auto" SelectedIndex="0" ID="RadMultiPage1" runat="server">
                        <telerik:RadPageView ID="RadPageView1" runat="server">
                            page 1
                        </telerik:RadPageView>

                        <telerik:RadPageView ID="RadPageView2" runat="server">
                            <%-- Register Form --%>
                            <div class="panel panel-default" runat="server">
                                <div class="panel-heading" runat="server">
                                    <strong>User Informations</strong>
                                </div>
                                <div class="panel-body" id="panelBody" runat="server">
                                    <div class="main-login main-center col-lg-offset-2" style="margin-top: -30px;">
                                        <div class="form-group">
                                            <label for="name" class="col-lg-12 control-label">name</label>
                                            <div class="col-lg-10">
                                                <div class="input-group">
                                                    <span class="input-group-addon"><i class="fa fa-user fa" aria-hidden="true"></i></span>
                                                    <input name="name" id="txtName" type="text" runat="server" placeholder="name (max 100 char)" class="form-control input-md" maxlength="100" />
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" SetFocusOnError="true" ControlToValidate="txtName" runat="server" Display="None" ErrorMessage="This field is required"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <%-- End Register --%>
                        </telerik:RadPageView>

                    </telerik:RadMultiPage>
                </telerik:RadAjaxPanel>
            </div>
        </div>
    </div>

 

soroush
Top achievements
Rank 2
 answered on 08 Feb 2017
2 answers
287 views
I get a JS exception error message, when I add new and delete new create row and attempt to save.
I have wired a button to save changes.
$find(radgridid).get_batchEditingManager().saveChanges($find(radgridid).get_masterTableView())
RadGrid's is in "Batch" mode and the EditType is "Row".

JS exception error message:
Uncaught TypeError: Cannot read property 'cells' of null
Tony
Top achievements
Rank 1
 answered on 08 Feb 2017
5 answers
1.3K+ views
I am using RadAsyncUpload which is defined like this 

<telerik:RadAsyncUpload ID="FileUpload1" runat="server" Skin="Forest" Width="272px">
</telerik:RadAsyncUpload>

and i have a asp.net button defined like this 

<asp:Button ID="btnUpload" Width="180px"  Height="30px" runat="server" Text="Upload"
                           onclick="btnUpload_Click" />

Now it works and it uploads the file , but now i want to have a Progress Bar , so like other controls i did the following 

<telerik:AjaxSetting AjaxControlID="btnUpload">
    <UpdatedControls>
          <telerik:AjaxUpdatedControl ControlID="btnUpload" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
     
        <telerik:AjaxUpdatedControl ControlID="FileUpload1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
         
        <telerik:AjaxUpdatedControl ControlID="lblMessage" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
 
    </UpdatedControls>
</telerik:AjaxSetting>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>

if i add this Ajax code , my Upload does not work , it give me the Following Error 
Uncaught TypeError: Cannot read property 'id' of undefined
 
and chrome gives more info like
 
Uncaught TypeError: Cannot read property 'id' of undefined Telerik.Web.UI.WebResource.axd:2889
Telerik.Web.UI.RadAjaxControl._initializeRequest Telerik.Web.UI.WebResource.axd:2889
H.z.callBaseMethod Telerik.Web.UI.WebResource.axd:3
Telerik.Web.UI.RadAjaxManager._initializeRequest Telerik.Web.UI.WebResource.axd:3463
(anonymous function) Telerik.Web.UI.WebResource.axd:3
(anonymous function) Telerik.Web.UI.WebResource.axd:3
H.w.raiseEvent Telerik.Web.UI.WebResource.axd:3
e._onFormSubmit Telerik.Web.UI.WebResource.axd:9
e._doPostBack Telerik.Web.UI.WebResource.axd:9
(anonymous function) Telerik.Web.UI.WebResource.axd:3
onclick

Thanks 

Scott Christopher Stauffer
Top achievements
Rank 2
 answered on 08 Feb 2017
0 answers
136 views
I am using a Telerik Upload control. I have increased the maxRequestLength and maxAllowedContentLength appropriately. I have set the executionTimeout to 600 seconds and temporarily disabled anti-virus. Small files (< 4MB) upload fine. Too large files (>32MB) are rejected by the server. But, files in between result in the IEnumerable<HttpPostedFileBase> argument being null. I can see the server creating the temporary files in the Temporary ASP.NET folder. The .post file is there and seems to have an appropriate planned size. But, when the timeout happens, it has not been completed and my code is called with a null. It seems odd coincidental that the break point is 4MB, but I cannot find any other configuration parameter controlling this. 
Mark
Top achievements
Rank 1
 asked on 08 Feb 2017
0 answers
110 views

Hi,

 

I followed instructions from here http://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/how-to-use-radwindow-with-ajax to build updatepanel into a RadWindow ContentTemplate.

 

When I use <embed> or <object> tags in the ContentTemplate the AJAX breaks and switches to full postbacks.

Seems obvious as object and embed tags create their own DOMs...anyone aware of a solution to workaround this? Sorry for the offtopic.

 

Marc

Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 asked on 08 Feb 2017
4 answers
139 views

Hello,

I'm using the below code to setup a grid. The columns don't stay frozen when I am using the keyboard to navigate the grid.

 

<ClientSettings AllowKeyboardNavigation="true" >
                            <Selecting AllowRowSelect="false" EnableDragToSelectRows="false" CellSelectionMode="SingleCell" />
                            <Scrolling UseStaticHeaders="false" AllowScroll="true" ScrollHeight="100%" FrozenColumnsCount="5"
                                EnableColumnClientFreeze="true" SaveScrollPosition="true" />
                            <KeyboardNavigationSettings AllowSubmitOnEnter="true" EnableKeyboardShortcuts="true" SaveChangesKey="S" />

 

Any help on this would be much appreciated.

Pavlina
Telerik team
 answered on 08 Feb 2017
8 answers
2.8K+ views

Hi, 

When I export my grid to an excel file (ExcelML), I need to hide some column in this excel file (same as when you hide a column in excel). How can I do that?

Thx.

Bouyez
Top achievements
Rank 1
 answered on 08 Feb 2017
1 answer
100 views

I am using a RadGrid in Batch Edit mode.

When RenderMode is set to "Classic" (or not set at all), I can see the dirty indicators for changed cells.

When RenderMode is set to "Lightweight", I no longer see the dirty indicators.

Is this expected behavior?  Or should I be able to see dirty indicators in Lightweight mode for a Batch Edit RadGrid?

Eyup
Telerik team
 answered on 08 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?