Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
I need have a RadRibbonBar with four main tabs. I cannot seem to find any documentation about adding images on the tab itself. The RadTabStrip has an ImageURL property. Would I have to use a TemplateControl to achieve this?
Ivan Danchev
Telerik team
 answered on 30 May 2016
3 answers
466 views
I would like to set the height of the listbox to show 5 rows of data.  The rows are simple text entries using RadListBoxItem.  In order to set the height, it seems like I would have to calculate the height of one item and multiple that by the number of rows that I want to show.  Then, set the height of the listbox to this value.

The "height" property for the RadListItem is blank before adding to a listbox, after adding to a listbox, and after adding to an update panel on the page.  I kind of figured this was the case given that the style sheet may cause the size to change.

So, how should I set the height of a listbox assuming I want to show 5 items at a time?  Do I calculate it on the server side using best guess at the row size?  How well does that work for cross browser implementations?  Do I calculate it on the client side in javascript?

What would be the best approach to this?

Thanks

Michael
Ivan Danchev
Telerik team
 answered on 30 May 2016
3 answers
134 views
Hi all,

I'm running RAD Editor full featured on a MOSS 2007 env (RAD 5.7.1.0), and I've added some custom file extension to be allowed in the Media Manager:
<property name="MediaFilters">
   <item>*.wmv</item>
   <item>*.avi</item>
   <item>*.mpeg</item>
   <item>*.mpg</item>
   <item>*.mov</item>
   <item>*.flv</item>
   <item>*.m4v</item>
   <item>*.mp3</item>
   <item>*.mp4</item>
 </property>

I'm having troubles for some files of thoses extensions. If I upload a mp4 file, the upload works fine but after the media manager refreshes the content of my document library it does not shows my mp4 file.

And I don't have this problem for mov or flv files...

Any clue on this ?
Sandeep
Top achievements
Rank 1
 answered on 30 May 2016
1 answer
340 views

Hi,

When a document is uploaded through document manager in telerik editor, Is it possible to

              Save the document in different server shared folder path?

              Save a uploaded document in two different path at the same time ?

 

Currently we are save the uploaded files in same server as below,

                       editor.SetPaths(new string[] { "~/users/downloads"}, EditorFileTypes.Documents, EditorFileOptions.All);

 

Thanks

 

Marin Bratanov
Telerik team
 answered on 30 May 2016
1 answer
149 views

I have received the data in json format as follows:

var mydata = [
{
"Title":"My Grid Example",
"NumberOfColumns":4,
"DatasetHeader":{"items":[
{"Name":"FullName","Type":"System.String"},
{"Name":"Age","Type":"System.Int32"},
"Name":"Address","Type":"System.String"},
{"Name":"Cost","Type":"System.Double"}
]},
"Rows":["items":[
{"Rohan","12","Arab","234"},
{"Radha","11","Texas","123"},
{"Haris","22","NPL","344"},
{"Christine","23","Arab","674"},
{"Tot","22","UK","434"},
{"Terry","21","LA","334"},
{"Savana","19","SA","224"}
]}
}];

Now, I want to generate the dynamic grid with the above data with 4 columns and 7 rows (for this case) . The columns can varies during runtime (from 2-3 to 14-15)

Something like this is expected:

<script>

$(document).ready(function () {

generateGrid(mydata);

}

function generateGrid(receiveddata) {

$("#table-grid").kendoGrid({

dataSource: { data: receiveddata.Rows.Items},

height: 400,
scrollable: true,

schema: {
        model: receiveddata.DatasetHeader.items
      },

title: receiveddata.title

});

} //end of javascript function

</script>

<div id="table-grid"></div>

Konstantin Dikov
Telerik team
 answered on 30 May 2016
1 answer
176 views

Hi,

I'm having a problem with a RadEditor that I have on a RadWindow. When I set the height above about 140px, The editable part only fills up the first 140px, but the frame is the size I've defined. See that attached image for a better description than I can give.

Here's the markup:

<telerik:RadEditor ID="redLogText" runat="server" EditModes="Design"
    MaxTextLength="4000" SkinID="DefaultSetOfTools" ContentAreaMode="Div" OnClientInit="CharCountInit"
    Height="255px" Width="70%" Style="background-color: White; display: inline-block;"
    Skin="Default">
    <Tools>
        <telerik:EditorToolGroup>
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="Cut" />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorSplitButton Name="Undo" />
            <telerik:EditorSplitButton Name="Redo" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="Underline" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="JustifyLeft" />
            <telerik:EditorTool Name="JustifyRight" />
            <telerik:EditorTool Name="JustifyCenter" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorDropDown Name="FontName" />
            <telerik:EditorDropDown Name="FontSize" />
            <telerik:EditorSeparator Visible="true" />
            <telerik:EditorTool Name="AjaxSpellCheck" />
        </telerik:EditorToolGroup>
    </Tools>
    <Modules>
        <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true"></telerik:EditorModule>
    </Modules>
</telerik:RadEditor>

 

 

Marin Bratanov
Telerik team
 answered on 30 May 2016
3 answers
417 views

Hi... I use my document management system project radasyncupload. But when upload pdf file with radasyncupload after client download pdf file has problem. When clients open pdf file Failed to load PDF document error display in screen... 

 

<telerik:RadAsyncUpload ID="doc_upload" runat="server"
                                    ChunkSize="13000" Skin="MetroTouch" MultipleFileSelection="Automatic" Width="100%" PostbackTriggers="bt_accept">
                                    <Localization Select="..." Remove="Clear" />
                                    <FileFilters>
                                        <telerik:FileFilter Extensions="zip,xls,xlsx,doc,docx,pdf,jpg" />
                                    </FileFilters>
                                </telerik:RadAsyncUpload>

Ivan Danchev
Telerik team
 answered on 30 May 2016
1 answer
306 views

I have a grid that I have setup to dynamically change the pageSize based on the window size. When the browser window size changes I call the following code:

var grid = $("#grid").data("kendoGrid");

var currentPage = grid.dataSource.page();
var currentPageSize = grid.dataSource.pageSize();

if (currentPageSize !== newPageSize) {
    grid.dataSource.pageSize(newPageSize);
}

This works fine, but I noticed that the call to .pageSize(x) triggers a POST request to the server to fetch new data. Whenever I fetch new data from the server I need to run code based on whether or not the call to the server is successful or a failure. For example, when I want to refresh this grid manually (without changing the pageSize) I call:

grid.dataSource.read().then(function () {
    doStuffOnSuccess();
}).fail(function () {
    doStuffOnFailure();
});

Unfortunately there is no promise returned from the pageSize() method that would allow me to hook into the actual result of the POST request sent. As a result I have to call both the pageSize(x) and the manual grid.dataSource.read() methods together, and this generates two POST requests that degrades performance.

Is there some way of passing a new pageSize in the grid.dataSource.read() method? Or some way of seeing if the POST request triggered by pageSize(x) was successful or failed?

Rosen
Telerik team
 answered on 30 May 2016
6 answers
829 views
If there exists any possibility to make ajax reload of one PageView from RadMultiPage without reloading content of others pages ?

For example.
I'd like to load controls to RadMultiPage only after user select the corresponding Tab. My page is look like browser with many pages. Each PageView contains <frame>.  But after new page loads content of all other's pages reloading :(.
Nencho
Telerik team
 answered on 30 May 2016
2 answers
77 views

Hello,

I am writing a number of custom shortcut commands activated by button clicks.  While the commands are firing properly, most of them are not being recognized in the undo stack - i.e. user cannot press the undo button to reverse the command.  When they do press it, they undo a command prior to running the custom command, stepping back to a document version they were not expecting.  My question is, how do I have the undo stack recognize my custom commands and allow the user to undo them?  Here's an example of a function with this issue.

            Telerik.Web.UI.Editor.CommandList["DoubleBottomBorder"] = function(commandName, editor, args) {
                         var elem = editor.getSelectedElement();
                         elem.style.borderBottom = "3px double #000000";
            };

Most of my functions are setting the style attribute of an element and are not using the pasteHtml() method (use of pasteHTML() method seems to work fine with the undo function).

Thanks,

Andrew

Andrew
Top achievements
Rank 1
 answered on 27 May 2016
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?