Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views

Hello,

I'm trying to upload some file programmatically from a python script thru one of our forms but I've hit a stumbling block.

When I check the Web Inspector, I see that file uploads trigger a multi-part form POST that includes the below field:

ctl00_ContentPlaceHolder1_uFile_ClientState:
{  
   "isEnabled":"true",
   "uploadedFiles":[  
      {  
         "fileInfo":{  
            "FileName":"test.xlsx",
            "ContentType":null,
            "ContentLength":9365,
            "DateJson":"2019-03-08T16:00:12.472Z",
            "Index":0
         },
         "metaData":"long string of random gibberish"
      }
   ]
}

And this is where I'm having difficulties. If I copy the metadata field from the web inspector, and test using the same file that I used at the time, then it works. But if I try uploading another file then it fails. And I guess that it's because I am not updating the metadata field accordingly.

So, can someone help explain to me what goes into that field? And how is it encoded?

Any insight you could share would be greatly appreciated.

Hisham
Top achievements
Rank 1
 asked on 09 Mar 2019
1 answer
373 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
78 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
137 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
288 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
357 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
322 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
114 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.1K+ 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
337 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?