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

I need to insert "null" into the database when a raddatepicker is empty.  How is this accomplished? I use the following parameter for textboxes and it works just fine:

newDocCmd.Parameters.AddWithValue("@docReason", !string.IsNullOrEmpty(docReasonTextBox.Text) ? docReasonTextBox.Text : (object)DBNull.Value);

 

If I try the same for the raddatepicker I get the expected error of "cannot convert from 'object' to 'string'":

newDocCmd.Parameters.AddWithValue("@docSubDt", !string.IsNullOrEmpty(rdpSubDt.DbSelectedDate) ? rdpSubDt.DbSelectedDate : (object)DBNull.Value);
Jerald
Top achievements
Rank 1
 answered on 08 Mar 2019
2 answers
57 views

I can get the oldValues, newValues, but i can not get JUST the changed values on server-side ItemUpdating event. Why is that? The data tier is waiting for an object with fields and values that need to be updated on a given primary key. I want to send 2 items in the hashtable, not 100 items of useless data to be updated, when i only have 1 item that needs to be updated in the database. Please tell me that you have this functionality? I tried to use the UpdateValues, but its always empty, but it seems different than SavedOldValues and ExtractValues. Why use "UpdateValues" if it doesnt do the same, confusing to say the least.

The help in the demos is not what we are doing. This is one record placed in edit-mode when the dataform loads. Again there should only be a few lines to send the hashtable to the data tier. 

 

            Dim editedItem As RadDataFormEditableItem = TryCast(e.DataFormItem, RadDataFormEditableItem)
            Dim oldValuesHT As Hashtable = editedItem.SavedOldValues()
            Dim newValuesHT As New Hashtable()
            Dim updatedValuesHT As New Hashtable()
            editedItem.ExtractValues(newValuesHT)
            editedItem.UpdateValues(updatedValuesHT)

 

Any help Telerik?

SDI
Top achievements
Rank 1
 answered on 08 Mar 2019
2 answers
109 views

I have added a searchbox in a modal window on a web app, and when it loads, neither the placeholder text nor the entered text are visible - or more accurately, only the first few pixels are.

My issue is similar to this post - https://www.telerik.com/forums/impossible-to-type-into-my-searchbox and I tried adding the CSS as suggested but it seems to get overridden.

I have found that if I right click and Inspect Element then the width increases so that the text becomes visible.

I have set up a small sample page which illustrates the issue at http://twadventureworks.azurewebsites.net/

Click the Add an Account button to get the modal.  You can see the start of the placeholder text in the top box.  If you click into it and start to type e.g. 'Matthew', the search works and the dropdown is populated with results, but the entered search text is mostly hidden.

If I take RadSearch out of the modal then it works correctly, but this really goes against what I am trying to do in my application.

Would be grateful for any suggestions as to how I can fix this.

Thanks

Stuart
Top achievements
Rank 1
 answered on 08 Mar 2019
1 answer
248 views

Hi,

 

We are experiencing some differences in the copy/paste behavior in different browsers.

The content is copied and pasted in Design mode. See attached images.

In FF and Edge it works as expected.

In Chrome the HTML is altered...the color for instance is coming from a coupled stylesheet...but why?

This is a serious problem for our CMS users.

Marc

Rumen
Telerik team
 answered on 08 Mar 2019
8 answers
335 views

We are using a RADEditor in our solution with StripFormattingOptions attribute: StripFormattingOptions="MSWordNoMargins, ConvertWordLists, MSWord ". However, when content from a Microsoft word file is copied and pasted in the editor it loses its format. For example, Upper Case content is converted into lower case. I have tried multiple combinations of StripFormattingOptions attribute but still, the problem persists.

One more point is that the behavior here is random, i.e. sometimes the format is maintained while sometimes it is lost. There is no specific format or case where this problem occurs. Hence, unable to identify the root cause as well.

Request you to please assist for the same.

Rumen
Telerik team
 answered on 08 Mar 2019
1 answer
273 views
Hi,

I want to make functionality to scan uploaded file in my uploaded and i did not found any code to put anti virus detector on file upload.

Please suggest some code i am using AsyuncUpload.



Thanks
Manish
Sanket
Top achievements
Rank 1
 answered on 07 Mar 2019
2 answers
88 views

Hi Team,

I have gone through the KendoUI Virtualization: "https://demos.telerik.com/aspnet-core/dropdownlist/virtualization"

I would like to incorporate this feature in my Telerik Radgrid edititem template, currently using Dropdownlist. , So I would like to replace the dropdownlist from grid and place the Kendo UI dropdownlist which supports "virtualization".

Note : My Radgrid created programmatically, which supports paging , filtering etc.

 

Please suggest you thoughts also whether is possible or not.

 

Regards,

Ramesh.

 

Ramesh
Top achievements
Rank 1
 answered on 07 Mar 2019
3 answers
1.0K+ views
How can I make the rows highlighted when putting the mouse over it?

How do I add attributes to the grid so that on the rendered html, there will be onmouseover, onmouseout events?

Can this be done?
Srinivas
Top achievements
Rank 1
 answered on 07 Mar 2019
9 answers
264 views
$

This may or may not be a Telerik issue (I don't "think" it is), but thought I'd post here just in case anyone had some insight.  I'm getting this error when I add some JavaScript to my ASPX or even just a simple HTML page (using IE11):

Error: https://drive.google.com/open?id=1Rb_dXueUJuqJWdQ_IKg69LV4iuDJRFrl

The code is very simple HTML:

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
</head>
<body>
 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
 
    <script type="text/javascript">
            $(document).ready(console.log("Test"));
    </script>
 
</body>
</html>
Vessy
Telerik team
 answered on 07 Mar 2019
2 answers
510 views

I have a RadComboBox that I don't want to trigger any validation checking (I have several controls using asp:RequireFieldValidator) ... so I set the CausesValidation='false'

<telerik:RadComboBox ID="rcb_Insurances" runat="server" Width="100%" AutoPostBack="true" CausesValidation="false"/>

 

and on the same page I have a RadButton that I DO want to trigger validation checking so ...

<telerik:RadButton ID="rbn_MakePayment" runat="server" Text="Pay Now" Font-Size="X-Large" OnClick="MakePayment" CausesValidation="true"></telerik:RadButton>

 

So validation is NOT performed when I check an item in my RadComboBox.  However, when I click my RadButton validation is not triggered? 

If I remove the CausesValidation=false on the RadComboBox then my RadButton will trigger validation.

Ideas?

Cheers, Rob.

 

 

Rob Ainscough
Top achievements
Rank 1
 answered on 06 Mar 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?