Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
234 views
I can't seem to bind data to a drop down tree.

Markup:
<telerik:RadDropDownTree runat="server" ID="radGrades" DefaultMessage="Grade"></telerik:RadDropDownTree>

Code Behind:
RadDropDownTree gradeTree = item.FindControl("radGrades") as RadDropDownTree;
var grades = Grade.GetVGradeTypes();  //returns List<v_grade_type>, 6 items in list
gradeTree.Entries.Clear();
gradeTree.DataFieldID = "grade_id";
gradeTree.DataFieldParentID = "grade_type_id";
gradeTree.DataTextField = "grade";
gradeTree.DataSource = grades;
gradeTree.DataBind();

I should also note, this is being called from the "ItemDataBound" event on a RadGrid [adding a new item, haven't looked at editing an existing item].  The markup lives in the EditFormTemplate of the grid. 
Any ideas?
Mike
Top achievements
Rank 1
 answered on 28 Apr 2014
1 answer
102 views
Hello

Why in my version 2014.1.225.45, DropDownWidth="200px" or DropDownWidth="200"
doesn't work

The width it's ok : Width="240" but not the DropDownWidth

If i use the css , it's work , but i want to understand why the attributes DropDownWidth don't work


<telerik:RadComboBox runat="server" ID="PlaComboBox1" Width="240" DataSourceID="WbTA" DataTextField="TA_LIBELLE" DataValueField="TA_ID" DropDownWidth="200"></telerik:RadComboBox>

thanks
for you help
Ivan Zhekov
Telerik team
 answered on 28 Apr 2014
1 answer
79 views
Hello!

I can't seem to find a way to implement custom paging in the RadFileExplorer control. I have created my own ContentProvider and I have tried to enable custom paging on the internal grid, but no paging events seems to occur. I really need custom paging since our database contains a lots of object and I don't want to retrieve all of them at once (some folders even time out). 

Is there a way to do this or must I create my own FileExplorer?

Best regards,
Patrik Edberg
Dobromir
Telerik team
 answered on 28 Apr 2014
1 answer
88 views
Hello, I have a problem. 
Is there any way to select a button with one week.

Maria Ilieva
Telerik team
 answered on 28 Apr 2014
1 answer
87 views
I am using the file explorer control and in some of the child folders there is a folder titles Deleted that I do not want to show.  How do I hide specific sub folders from view
Frank
Top achievements
Rank 1
 answered on 28 Apr 2014
1 answer
133 views
Hi,

i'm very new for telerik controls.

i have studied for the custom handler function using asyncUpload Control, to get image preview with the link (http://demos.telerik.com/aspnet-ajax/asyncupload/examples/imageuploader/defaultcs.aspx).

the above demo link showing how to get preview image automatically saving and database and retrieving from that database. and i'm quite confused.

i have  scenario for new user profile registration

i have fields example( name,email, photo)

so user will upload profile image and able to see the preview of the Image.

i want to save image in tempfolder and get preview. and  finally when i click on submit button, it should save image on original path folder and also save Filename with other fields data into database. and Finally delete file from temporary folder

Please some can post the script to match my scenario

Appreciated for better response

Yasin
Peter Filipov
Telerik team
 answered on 28 Apr 2014
5 answers
291 views
Hi,

Currently I have a Kendo Grid that list all users and I was able to add a column called "Reset". When admin click the "Reset" it will route to an action called "ResetPwd".

The code is as following:
{
title: 'Reset Password',
width: 100,
template: '<a href="/contacts/resetpwd/#= Email #" data-contact-id="#= Email #" title="Reset Password">Reset</a>',
filterable:false,
encoded: false
},

The action code is like following:

[Route("resetpwd/{Email}")]
 public JsonResult ResetPwd(string email)
 {
 if (ModelState.IsValid)
 {
   //Update password code here 

   //send email notification code here
   FormMailer.ForgotPassword(model).Send(); 

    return Json(new { result = 1, message = "success" }, JsonRequestBehavior.AllowGet);
 } 

    return Json(new { result = 0, message = "failed" }, JsonRequestBehavior.AllowGet);
}

I want to add code to the view so it will show a popup window to indicate if success or failed but I don't know how to do it. 

Can anyone send me some sample code or kindly shed some lights on it?

Thanks,

Winson
Vladimir Iliev
Telerik team
 answered on 28 Apr 2014
1 answer
101 views
I have a grid on a screen that the user can filter using a RadComboBox in a FilterTemplate and everything works great.  I will persist this information so if the user leaves the screen and then comes back the will start with their last filter. 
The issue I am having is if for some reason a user eliminates the record that the grid was filter on.  If the user goes back to the page the screen errors because
SelectedValue='<%# Container.OwnerTableView.GetColumn("ClientName").CurrentFilterValue %>' is looking for a value that does not exist anymore.  How can I alter the code so that it would clear there previous filter.
Shinu
Top achievements
Rank 2
 answered on 28 Apr 2014
4 answers
111 views
Hi,

Can I restrict lines in RadGridColumn's ItemTemplte text? If yes,how?

Shinu
Top achievements
Rank 2
 answered on 28 Apr 2014
1 answer
164 views
I have a RadSkinManager definition like this:

<telerik:RadSkinManager runat="server" ID="RadSkinManager1" ShowChooser="True" Skin="Default" >
    <TargetControls>
        <telerik:TargetControl ControlsToApplySkin="RadComboBox"
            Skin="Glow"  Enabled="true"  />
        <telerik:TargetControl ControlsToApplySkin="RadButton"
            Skin="Black"  Enabled="true"  />
    </TargetControls>
</telerik:RadSkinManager>

Instead of using MasterPages the site is built on Controls (ascx) dynamically loaded depending on requested service. When using the definition above, all controls have the Default skin applied except RadComboBoxes and RadButtons that are statically defined on the default.aspx page (so far, so good). RadComboBoxes and RadButtons on dynamically loaded controls have the Default skin applied until the first postback, at which time they get their explicitly assigned skins applied.

I have tried to add the following line to the Page_PreRender method on the default.aspx page:

this.RadSkinManager1.Skin = "Default";

But this doesn't make any difference.

Is something else required in order to get dynamically loaded controls to get the assigned skin on first load instead of on first postback?

I have also noted that if the SkinChooser is displayed, All RadComboBoxes are correctly styled after the first postback. If the SkinChooser is not displayed (and no other changes made), all RadComboBoxes lose their styling altogether after first postback.
Maria Ilieva
Telerik team
 answered on 28 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?