Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
236 views

Hello,

     My Grid is in GridEditMode.Batch.  I have two template columns.

      First Template Column uses a RadNumericTextBox
      Second Template Column uses a RadDatePicker.

 

Could you explain how to update the RadDatePicker's date when the RadNumericTextBox value changes USING the RadNumericTextBox's OnValueChanged CLIENT event please.

Viktor Tachev
Telerik team
 answered on 15 Jul 2016
5 answers
4.4K+ views
Hi,

I am using Raddatepicker and i want to select only Date part from the that textbox.
 i using like this DatePicker.SelectedDate

Like:  currently comming : 9/29/2011 12:00:00 AM

         required : 9/29/2011 or 09/29/2011.

and i want to pass in my method '09/29/2011' but Passing going '9/29/2011 12:00:00 AM


Thanks
Manish
Manish
Top achievements
Rank 1
 answered on 15 Jul 2016
1 answer
159 views

In body of Rad editor if i pasted the code below in HTML container -

<a href="http://members.farmtoconsumer.org/donations/" target="_blank">
<figure class="center-img">
<img style="border: 0px solid currentColor; border-image: none; width: 100%; max-width: 303px !important;" alt="Donate Today!" src="https://media.mercola.com/assets/images/donate-today.jpg">
<figcaption class="op-large op-center hide-figcap">
<a href="http://members.farmtoconsumer.org/donations/" target="_blank">Click Here</a>
</figcaption>
</figure>
</a>

After this when i switch from HTML to design and then again back to HTML the code changes to below code -

<a href="http://members.farmtoconsumer.org/donations/" target="_blank">
</a><figure class="center-img"><a href="http://members.farmtoconsumer.org/donations/" target="_blank">
<img style="border: 0px solid currentColor; border-image: none; width: 100%; max-width: 303px !important;" alt="Donate Today!" src="https://media.mercola.com/assets/images/donate-today.jpg">
</a><figcaption class="op-large op-center hide-figcap"><a href="http://members.farmtoconsumer.org/donations/" target="_blank">
</a><a href="http://members.farmtoconsumer.org/donations/" target="_blank">Click Here</a>
</figcaption>
</figure>

Notice that the <a> tag was immediately closed. It seems like the editor updates the codes accordingly (some sort of auto-correcting html codes I guess). Is there any way we can avoid this or is this something that we cannot modify or any solution for this?

Misho
Telerik team
 answered on 15 Jul 2016
1 answer
133 views

What is the best way to remove the style tag from tables (table, tr, td tags)?

I've been working with the OnClientPasteHtml event but I don't know how to reference the pasted content or the most effective way to accomplish this. Anyone have any ideas?

Nikolay
Telerik team
 answered on 15 Jul 2016
1 answer
81 views

Is it possible to export the Scheduler as a PDF document in memory?  I dont want the PDF to open in the current window or in another window. I wish to load the PDF in memory so i can either save it to a database or manipulate the PDF to merge it with another PDF.

Thanks

Plamen
Telerik team
 answered on 15 Jul 2016
1 answer
90 views

I'm using ASP.net AJAX AsyncUpload 2016 2 504, is it possible to upload files using CORS, i'm trying to upload files to Box e.g.: https://www.box.com/blog/uploading-files-with-cors/ 

Thanks,

Plamen
Telerik team
 answered on 15 Jul 2016
5 answers
659 views
Hi,
how we can use the telerik components to upload multiple files selecting a directori o select it with a file explorer?

Thanks
Ivan Danchev
Telerik team
 answered on 14 Jul 2016
4 answers
109 views

Hi

I think that I found a bug.

Take a radnumeric, set decimaldigits zero.

use client event valuechanging like this:

                function valueChanging(sender, args) {
                    alert(args.get_newValue());
                }

If I digit "0,4" I'm expecting in the args.get_newValue() just 0 and not 0.4!

I think that the "." or "," (depends on cultureinfo, ok) not even should be arrived to the input, just like any alphanumeric character that is not a number!

Why you allow decimal digit in that event if I set decimaldigits zero? I don't want to use valueChanged.

Just.. I think that the radnumeric settings should be considered before any event.

All of this is on last ui for ajax version 2016.2.607.45

Thank you.

Regards

Fabio

Fabio
Top achievements
Rank 1
 answered on 14 Jul 2016
1 answer
109 views

I have an application for training attendance where a column in the database is a varchar but when editing the record they want a dropdown with Yes|No values. That is fine however, when updating the the records the UpdateCommand does not the dropdown values in the Hashtable.

BTW - the edimode for the grid is "InPlace".

Any help would greatly be appreciated. Thanks

 

ASPX

<telerik:GridTemplateColumn DataField="Attended" HeaderText="Attended" AllowFiltering="false">
                    <ItemTemplate>
                        <asp:Label ID="AttendedLabel" runat="server" Text='<%# Eval("Attended") %>'></asp:Label>
                    </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadDropDownList ID="ddAttended" runat="server" Width="55px">
                        <Items>
                            <telerik:DropDownListItem Text="" />
                            <telerik:DropDownListItem Text="Yes" />
                            <telerik:DropDownListItem Text="No" />
                        </Items>
                    </telerik:RadDropDownList>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>

VB

 

Protected Sub rgCourse_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs)
        If (e.CommandName = "UpdateAll") Then
            For Each editedItem As GridEditableItem In rgCourse.EditItems
                Dim newValues As Hashtable = New Hashtable
                'The GridTableView will fill the values from all editable columns in the hash
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)
                dsCourses.UpdateCommand = String.Format("Update vwCurrentCourse SET Attended='{0}' WHERE Registration_ID='{1}'", newValues("Attended").ToString(), editedItem.GetDataKeyValue("Registration_ID").ToString())
                dsCourses.Update()
 
                editedItem.Edit = Falsetable
            Next
        End If
        rgCourse.Rebind()
    End Sub

Eyup
Telerik team
 answered on 14 Jul 2016
1 answer
74 views
I'm having an issue where the RadGrid ExportToExcel() method is generating output that includes a header item "<meta http-equiv="Content-Type" content="text/html; charset=utf-8">" in addition to the the header also showing a content-Type of "application/vnd.ms-excel (found via chrome dev tools or fiddler).  Our security scanning software is returning an error saying Multiple content types are specified.  Is there a way to get rid of the <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> content that is output in the response?
Kostadin
Telerik team
 answered on 14 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?