Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views
We have been using version 2010.3.1109.35 since 2010-11-11 without problems, upgraded to version 2010.3.1215.35 on 2010-12-25. The RadAsyncUpload is now failing to deserialize our custom AsyncUploadConfiguration properties.
Sample code below.
ASPX page with the RadAsyncUpload control:
<telerik:RadAsyncUpload runat="server" ID="FilesToUpload" MultipleFileSelection="Automatic"
    HttpHandlerUrl="~/Tracking/FileUpload.ashx" AutoAddFileInputs="true" />

Custom Configuration:
public class CustomConfiguration : AsyncUploadConfiguration
{
    public string UserName { get; set; }
    public long FileNoteID { get; set; }
    public bool SaveContentOnly { get; set; }
}

Initializing configuration in code behind of ASPX page with RadAsyncUpload control
public partial class UploadFiles
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
CustomConfiguration config = FilesToUpload.CreateDefaultUploadConfiguration<CustomConfiguration>();
            config.FileNoteID = 1234; // sample ID
            config.UserName = "michael"; // sample user name
            config.SaveContentOnly = true;
            FilesToUpload.UploadConfiguration = config;
    }
}

Code behind of Http handler, our additional properties (UserName, FileNoteID) are not being deserialized here anymore.
public class FileUpload : AsyncUploadHandler
{
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName)
    {
        CustomConfiguration config = configuration as CustomConfiguration;
        if (config != null)
        {
            // UserName & FileNoteID come through as "" and 0 with latest release.
            DoSomething(config.UserName, Config.FileNoteID);
        }
    }
}

Can someone please let me know how to resolve this issue? Do we need to change something in our web.config?

Thanks
Genady Sergeev
Telerik team
 answered on 12 Jan 2011
1 answer
445 views
I need to trigger ajaxRequest using JavaScript. JavaScript will pass additional information/parameter (string) that will be used by ajaxRequest to load/get additional information. Can you provide an example?
Prangadj
Top achievements
Rank 1
 answered on 12 Jan 2011
2 answers
131 views
Hi,

I have a Tooltiptified grid:

http://www.altecparts.nl/shop/search.aspx?zoek=brander

Tooltips filled on ItemDataBound with
Me.RadToolTipManager1.TargetControls.Add(target.ClientID, (TryCast(e.Item, GridDataItem)).GetDataKeyValue("ProductCode").ToString(), True)


But when the Grid has no results like on

http://www.altecparts.nl/shop/search.aspx?zoek=aaa

The Tooltips are picked up by the product tree on the left and the RadMenu on top of the page.

Any suggestions?

Marc
Svetlina Anati
Telerik team
 answered on 12 Jan 2011
1 answer
118 views
Hallo,
I have problem with spaces in urlI path.
I have Rad Grid with columns like this:
<telerik:GridHyperLinkColumn DataTextFormatString="Adres" ItemStyle-ForeColor="Orange"
 DataNavigateUrlFields="s_adresar" UniqueName="s_adresar" DataNavigateUrlFormatString="file://///SomeServer/Some Directory With Spaces/{0}" Target="_blank" HeaderText="Adres" DataTextField="s_adresar">
 </telerik:GridHyperLinkColumn>

I would like to open file from shared file system in Windows Explorer after click on link in RadGrid, but it doesn't work.
Right path to directory is //SomeServer/Some Directory With Spaces/
but rendered path is  //SomeServer/Some%20Directory%20With%20Spaces/
and  this path is for Windows Explorer unknown. I tried to replace spaces in path ( in DataNavigateUrlFormatString property) with some mark entity but without success.
Can anyone help me  please?
Thanks
Prangadj
Top achievements
Rank 1
 answered on 12 Jan 2011
6 answers
125 views
Hi,

I'm having trouble using IE6 when the Paste command is executed through the context menu but using the shortcut key CTRL+V works well and sees no problem with it. This problem occurs in all of our machines which have an IE6 installed including my development machine.I've tested this in Windows XP SP2 and Windows XP SP3. I'm using Telerik Version 2010.

To repro:
1. Copy an item(text/word)
2. Select a text in the editor (highlight a text)
3. Paste the copied content in the selected text through context menu

Do this several times(step 2-3)


Thank you and best regards,
Bong
Rumen
Telerik team
 answered on 12 Jan 2011
0 answers
93 views
hi
how i can show some grid items horizontally and some other vertically in grouped grid?
i want to show grouped items horizontally and other items vertically.
an image that define my purpose attached.
thanks in advance
m
Top achievements
Rank 1
 asked on 12 Jan 2011
5 answers
364 views
I'm using a PageMethod to update grid data on the server-side and then rebinding on the successful callback. During the PageMethod I have a LoadingPanel shown which I hide on the successful callback. However, the rebind also takes some time and I would like to hide the LoadingPanel AFTER the rebind is complete. Is there any way to have a callback function for rebind()? Or maybe some other way to know when it's complete? At the moment, I'm using a setTimeout to give it an arbitrary second or two to complete (which is not, obviously, always correct)
Veli
Telerik team
 answered on 12 Jan 2011
1 answer
74 views
I have a user control, DuplicateVinDisplay.ascx, which has a rad grid wtih a linkbutton column. The linkbutton column, when clicked, will call a javascript function that will open a radwindow and display another page. This all was working perfectly when I loaded the user control on page load.

But, I need to display the user control when the user tabs out of a textbox on the page the user control is hosted on. So, I added the following to my RadAjaxManager on the hosting page:

 

<telerik:AjaxSetting AjaxControlID="VINTextBox">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="DuplicateVINDisplay1" LoadingPanelID="defaultRadAjaxLoadingPanel"/>
</UpdatedControls>
</telerik:AjaxSetting>

 

This does what I need it to and the user control displays properly when the user tabs our of the VINTextBox control. However, now when I click the linkbutton in the grid, I get a javascript Object Expected error. I have even modified the javascript funtion that is being called to simply be an alert('hi'); but to no avail.

What might I be missing here?
Tsvetina
Telerik team
 answered on 12 Jan 2011
10 answers
255 views
I have created a web page in which I have placed a rad editor and in that when I write 3-4 lines, select any particular line and right align it or change the paragraph style. Then all the lines get right align instead of that particular line in IE browser only. In your rad editor demo also, the same problem appears in the IE. So please suggest some solution for the same as soon as possible. Thanks.

 
Nidhi
Top achievements
Rank 1
 answered on 12 Jan 2011
1 answer
256 views
How to add a linkbutton in RadGrid in Fly?

I had 3 columns in a table

In runtime ...
1)First Column should be linkbutton
2)Second column should be Label
3)Third Column should be same as in table

how to acheive the above one in runtime?

Is it possible..If yes please provide me a small example
Princy
Top achievements
Rank 2
 answered on 12 Jan 2011
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?