Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
117 views
Is there a good example of Telerik controls replacing the generic Dynamic Data page templates? I can't seem to find anything online, and the examples out there aren't specifically what I'm looking for. From what I can tell there doesn't seem to be an equivalent of the DynamicDataManager in the Telerik controls, and there's no good explanation or equivalent on how it all works together. Do you guys have any sort of walkthrough on how that can be done? All the examples I've found so far are old and don't seem to be supported any more.
Helen
Telerik team
 answered on 24 Aug 2015
5 answers
198 views

When my users select a file to upload, the File Select box closes then immediately re-opens again for each previously selected file.  For example, if I select one file, it works fine.  When a second file is selected, the file select box closes, but then opens again with the name of the first file selected.  If I select a third file, the File Select box opens twice more, once for each of the previously selected files.

In my implementation, I display the selected files myself and then trigger the upload after the files are selected.  The upload of the selected files works fine.  Any ideas??

My RadAsyncUpload control is defined this way:

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" style="display:none;" MultipleFileSelection="Disabled" Skin="Silk" TargetFolder="uploads" HideFileInput="true" ManualUpload="true" EnableInlineProgress="false" OnClientFileSelected="RadUpload_OnClientFileSelected" OnClientFilesUploaded="RadUpload_OnClientFilesUploaded" OnClientFileUploaded="RadUpload_OnClientSingleFileUploaded" OnClientFileUploading ="RadUpload_OnClientFileUploading" OnClientFileUploadFailed="RadUpload_OnUploadFailed" OnClientValidationFailed ="RadUpload_OnClientValidationFailed" UploadedFilesRendering="BelowFileInput" HttpHandlerUrl="~/Handler.ashx" DisablePlugins="true" OnClientFileUploadRemoving="RadUpload_FileRemoving">


I start the selection by clicking a button which calls this javascript function:

function RadUpload_StartSelection(sender, args) {

   $telerik.$(".ruFileInput").click();

}

function RadUpload_OnClientFileSelected(sender, args) {

//fired for each file that was selected. We add the file to our list

//with a "[X]" link to remove it (which calls RadUpload_removeFile)

$telerik.$(args.get_row()).addClass("ruUploading"); //adding this css class to the row prevents it from displaying under the control

//now add the filename and [X] anchor to our file list

var $List = $("#divFileList");

if ($List.html().length>0) $List.html($List.html()+" + ");

$List.html($List.html()+args.get_fileName()+" <a href='#' id='" + args.get_row()._mapIndex + "' onclick='RadUpload_removeFile(this);return false;'>[X]</a>");

}


 
 
 
Ivan Danchev
Telerik team
 answered on 24 Aug 2015
6 answers
220 views

Hello

We are wishing to replace a couple google maps with the Telerik map control with openstreet tiles.  In most cases this has been a straight forward effort.  

In one instance, we have a pin that we can drag and drop on the map to identify a location.  Is this possible with the Telerik control?  If so, can you provide some sample code using openstreet that includes also capturing the lat/lon of the dropped pin?

 

Thanks in advance

Ianko
Telerik team
 answered on 24 Aug 2015
7 answers
284 views

Hello,

I have couple of things 

1. I require to customize "Upload" dialog box - Need to add text where it says "Max file size.." - How should I do it?

2. I am using "ItemCommand" for "UploadFile" to check file type etc. When I am performing following actions, it shows wired result!

1) Upload file - for e.g. "Test01.jpg"

2) Delete file - for e.g. "Test01.jpg"

3) Refresh entire page (F5/Ctrl F5) it will perform "Upload" action and says "Test01.jpg" file uploaded successfully.

If you can please suggest appropriate solution for it! 

Thank you,

Jeff.

Vessy
Telerik team
 answered on 24 Aug 2015
1 answer
95 views

I noticed a small bug when a RadGrid with a particular skin (in my case WebBlue), has, for example, a datetime column ...

If you want, in the datetime column, to change the skin of the single control input (in the ItemDataBound event), for example by choosing Bootstrap, then control RadDateInput (or whatever your control) does not change the skin.

 Is there a​n "escamotage" to walk aroud this behavior?

 Merci!

 

 

Eyup
Telerik team
 answered on 24 Aug 2015
1 answer
244 views

I can easily create a databound chart if it’s a simply scenario like totals by month and I’ve already provided the high level grouping in the SQL. But I want to do something like, totals by month by app, and have it be a stacked chart w/ the apps as the series, I don’t know how to do that. I specify from my sql data source the column for the app name (app), and I specify the label (ie Outlook). How in the Category series Item section can I get it to recognize my datafield, and also have it filter on values that only = ‘Outlook’? The example below for the series item sets the values  to a static value.

                    <telerik:ColumnSeries DataFieldY="app" Name="Outlook" Stacked="false" Gap="1.5" Spacing="0.4">

<Appearance>

<FillStyle BackgroundColor="#d5a2bb"></FillStyle>

</Appearance>

<LabelsAppearance DataFormatString="{0}" Position="OutsideEnd"></LabelsAppearance>

<TooltipsAppearance DataFormatString="{0}" Color="White"></TooltipsAppearance>

<SeriesItems>

<telerik:CategorySeriesItem Y="25000"></telerik:CategorySeriesItem>

<telerik:CategorySeriesItem Y="12000"></telerik:CategorySeriesItem>

<telerik:CategorySeriesItem Y="39000"></telerik:CategorySeriesItem>

</SeriesItems>

</telerik:ColumnSeries>


//snippet for the below chart
<telerik:ColumnSeries Name="Lounge">

<Appearance>

<FillStyle BackgroundColor="#850071"></FillStyle>

</Appearance>

<LabelsAppearance DataFormatString="{0} sales" Position="OutsideEnd"></LabelsAppearance>

<TooltipsAppearance DataFormatString="{0} sales" Color="White"></TooltipsAppearance>

<SeriesItems>

<telerik:CategorySeriesItem Y="15000"></telerik:CategorySeriesItem>

<telerik:CategorySeriesItem Y="23000"></telerik:CategorySeriesItem>

<telerik:CategorySeriesItem Y="10000"></telerik:CategorySeriesItem>

</SeriesItems>

</telerik:ColumnSeries>
My dataset looks like this:

day       app              avg

Tue       Outlook       10

Tue       Word             4

Tue       Excel            7

Wed     Outlook        2

etc..

I want this chart to look like online demo example, but instead of Wooden Table, Lounge, etc, it would list the values in the ‘app’ column of my dataset.

Danail Vasilev
Telerik team
 answered on 24 Aug 2015
3 answers
573 views

I'm creating a very generic table editor and would like to set the readonly property of a grid column at run time. The select and update SQL commands are being generated at runtime and they work perfectly with AutoGenerateColumns="true", but I need to set some columns to readonly. I was hoping to simply enumerate the columns after data binding or on the grid's pre_render, but the column count is always 0 for auto generated columns. 

I looked at grid.MasterTableView.RenderColumns, but each column's IsEditable property is read-only.

Anyone know how to accomplish this? I'm trying to avoid dynamically creating each column in code and then appending them to the collection.

Viktor Tachev
Telerik team
 answered on 24 Aug 2015
1 answer
70 views

 

When i am trying to Update a data, I should verify that data already available in radgrid or not.

 

Note - I need to throw error message or alert message if that data already available in grid

Viktor Tachev
Telerik team
 answered on 24 Aug 2015
1 answer
143 views

I have a RadTextbox inside a <telerik:GridBoundColumn>

By default Radgrid gets loaded with database data.  After dataload when i type search text in RadTextbox,  the input string should search value in SQL datasource.

My Issue:

I am not able to pass the RadTextbox string to sql select query via Code behind.

 

Please help!

 

 

 

 

Viktor Tachev
Telerik team
 answered on 24 Aug 2015
7 answers
526 views
We're using the radalert, radprompt and radconfirm windows to replace the browser's default dialogs. The problem we're experiencing is when providing  text to these windows that is larger then expected. The windows do size nicely vertically. The trouble is that the windows do not get centered correctly. When calculating the height of the window, it seems that the default given size is used instead of the actual size of the windows.

So let's say I open a radalert with width=300 and height=200. Due to the large content provided to the radalert window, the height of the window in effect becomes larger than 200, say 350. As a result the radalert gets centered correctly horizontally, but it's off-centre vertically. It looks like the calculation of the position still uses a height of 200 instead of the actual 350. I have digged into the code and tried to manually fix this, but I can't figure out how to do it. Any suggestions?
Eyup
Telerik team
 answered on 24 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?