Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
492 views
When editing HTML content and switching from Design to HTML I'm finding the attribute 'abp' is being added to each element for example...
<p abp="219"><img title="Redhill" alt="Redhill" src="/Image/7/en-GB/0/0" abp="220" /></p><h1 abp="221">Welcome to</h1>

Can anyone help in identifying where these come from and how I can get rid of them?

Many thanks,

David
Danail Vasilev
Telerik team
 answered on 25 Jun 2013
5 answers
165 views
Hi,

I am trying to apply an image and repeat that as background for the apply button, I am using the same CSS which I used for regular buttons.

.button 
{
background:url("design/nav.gif") 0 0 repeat-x;
color: #fff;
border: solid 1px #DFDFDF;
font-weight: bold;
padding:5px 10px;
width:auto;
cursor:pointer;
}

But I am not getting my image repeated, any suggestions would be very helpful.

Thanks,
Vasu
Venelin
Telerik team
 answered on 25 Jun 2013
1 answer
76 views
Is is possible to change the grouping from the client?

I have a data source of shipments that I would like to be able to show as either Quarter, Month or Day. I had considered adding all three as columns, but that seems sloppy. I would like to put either a radio button or drop down on the page that would allow me to display the transaction time as quarter, month or day.

Is this possible or should I just add the additional columns and then hide the ones I don't need at the moment?

Thanks
Randy Miller
Pavlina
Telerik team
 answered on 25 Jun 2013
2 answers
100 views
How can I get a GridDropDownList to work with entity framework. Specifically how can I attach a field to the DataTextField property and another field to the DataValueField property? Please see the example below.  
 
protected void rgDPR_ItemDataBound(object sender, GridItemEventArgs e)
{
    DbSet<SICCode> sicCodes = DB.SICCodes;
    var query = (from codes in sicCodes
                 orderby codes.Industry ascending
                 select codes.Industry, codes.ID).ToList();
 
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem editedItem = e.Item as GridEditableItem;
        GridEditManager editMan = editedItem.EditManager;
        GridDropDownListColumnEditor editor = editMan.GetColumnEditor("SICCodeOverride") as GridDropDownListColumnEditor;
        editor.DataSource = query;
        
        editor.DataTextField = ""// codes.Industry should go here
        editor.DataValueField = ""; // codes.ID should go here
 
        editor.DataBind();
    }
}

Thanks in advance.


Jorge
Jorge
Top achievements
Rank 1
 answered on 25 Jun 2013
1 answer
174 views
I'm having issues with a grid that is displaying data using columns I create server side based on the folder selected.
Example, a folder for Photographs would have different columns than one for Invoices, etc.

So here's the workflow:
1. Without selecting an item in the grid, click the NOTIFY button (attachment: step1.png)
2. Nothing is selected so I add an alert to the RadAjaxManager like so: (attachment: step2.png)
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("alert('NOTHING SELECTED. Please select the document for which you want to send a notifcation.');")

3. Clicking the 'OK' button to dismiss the alert returns you to the page with incorrect grid columns and odd data displaying. (attachment: step3.png)

I'm not sure how to get the grid to rebind and paint correctly after going client side with the alert?
Jason
Pavlina
Telerik team
 answered on 25 Jun 2013
1 answer
136 views
Hi,
When inserting an image which is having width and height larger than the editor's width and height, the coordinate are showing outside the editor as shown in the attached image, how can I show the coordinates inside the editor?

regards
Jiju
Vessy
Telerik team
 answered on 25 Jun 2013
1 answer
83 views
Hallo Telerik Team,

if i'm uploading with the AsyncUpload, i'm able to check the preview Option of the FileDialog to see, what i'm about to upload.

Is it possible to set this option as default behavier for every upload on this page?

Thanks a lot!
Hristo Valyavicharski
Telerik team
 answered on 25 Jun 2013
3 answers
115 views
Hello... so I'm struggling with something here. I really want to manually "start" the upload process, so I am trying to use ManualUpload=true. As I understand it though, this takes away the advantage of using SL or Flash. Why was this done? Why do both of those have to be automatic all of the time?

At any rate, the problem I have now is that whenever I am in Manual mode, I have no progress (either inline progress or progress using the RadProgressArea). When I simply flip to automatic mode, progress works fine.

Any ideas?

Thanks,
-Brian

The following code works fine with ManualUpload false, but not with Manual Upload true:

<telerik:RadAsyncUpload ID="AsyncUpload1" 
                            ClientIDMode="Static"
                            MultipleFileSelection="Disabled"
                            ManualUpload="true"
                            UploadedFilesRendering="BelowFileInput" 
                            InputSize="50"
                            OnClientFileSelected="AsyncUpload1_OnClientFileSelected"
                            UseApplicationPoolImpersonation="true"
                            runat="server">
                            <Localization Select="Select File" />
                        </telerik:RadAsyncUpload>
Brian Azzi
Top achievements
Rank 2
 answered on 25 Jun 2013
2 answers
218 views
hi

i need help i had a radmenu and i am dynamically adding the radmenuitems (each has subitems) but i need to sort the items into alphabetical order and i cant find any working way to do it.

i have tried both articles found and neither work when you are working with radmenuitems that also have sub items.

can anyone suggest a way of sorting radmenuitems inside a radmenuitem

i cant sort the items before i put them in due to data structure constraints.

thanks alot.,

Peter
Top achievements
Rank 1
 answered on 25 Jun 2013
6 answers
256 views
I have a page with several RadEditors and also RadTabStrip with RadPageViews.

I want paste plain text to be the default for all editors so I have added the following JavaScript to all RadEditor OnClientLoad events.
function OnClientLoad(editor, args) {
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "paste", function (e) {
editor.fire("PastePlainText");
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
return false;
});
}

Problem is that this only works if the RadEditor is outside the TabString/PageView or in the first tab -- if it's in another tab the code doesn't work.

Is there a solution to this problem?
Vessy
Telerik team
 answered on 25 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?