Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
89 views
Hi, 

I want to have a custom form editor with some control, instead of creating a new asp page and calling it when the user click on edit.

Anyone can point me to a good tutorial or documentions?

Thanks
Shinu
Top achievements
Rank 2
 answered on 22 Feb 2012
1 answer
137 views
I want to use RadGrid on many of my web app pages and I want the settings on all to be the same so I create a Grid in a UserControl. Below is my basic setup and issue:

Site Master
All pages share the same site master so in the site master I have a scriptManager and an RadAjaxManager. All the pages also share the same grid filters, start and end date, so there are two text boxes and a submit button, plus an export button.

Content Pages
Each content page only has the user control with a parameter that references a table in my database and in the code behind I have a list of the columns that I wish to have from that table.

UserControl
In my UserControl I build a RadGrid, create the NeedDataSource event, define export settings, and attach some javascript for certain functions. I also attach some ajaxSettings in the Page_Load event so the page does not do a full postback and some javascript clientEvents. This all works perfect until I export. Since the export requires a full postback, I have to turn off the ajax like so on the RequestStart event:

if (args.get_eventTarget().indexOf("DownloadExcel") != -1) {
     args.set_enableAjax(false);
}
else {
     args.set_enableAjax(true);
}

Again this works and I get my export, but then the rest of the Ajax shuts down. If I change the date and submit, the grid does not rebind. I know the RequestStart and RequestEnd event still work because I put alerts in them, however, the grid does not refresh. And if I click export again, I receive this message:

This webpage is not available

The webpage at http://localhost:61219/pages/data/HourDetailed.aspx might be temporarily down or it may have moved permanently to a new web address.
Error 103 (net::ERR_CONNECTION_ABORTED): Unknown error.

Two things that I have tried
  • I recreated my grid without the UserControl by just using an asp:PlaceHolder instead and then transferred all my UserControl code to the page and everything works normal. No issues with postback.
  • I added a regular asp:Button to the UserControl that has UseSubmitBehavior="true" and another to the page to use as a manual postbacks. Both have the same exact symptoms as the export button. The problem appears to lie somewhere in the postback.

I'm running out of things to try so if anyone has solved a similar issue, your help would be appreciated! 
Robert
Top achievements
Rank 1
 answered on 22 Feb 2012
8 answers
135 views
Hi,
Currently I have some code present in a webform, I would like to call re-use this code and display the webform when "edit" button is clicked in RadGrid. I can use webusercontrolform option; but, for which I will have to duplicate the code and create a new user control.

So in summary, below are the requirements:
1) How to call existing webform when "Edit" is pressed on RadGrid?
2) I do not want to create new usercontrol and duplicate the same functionality.

Can you please advice whether this is possible in RadGrid??
Ram
Top achievements
Rank 1
 answered on 22 Feb 2012
2 answers
69 views
Hello,

can someone provide me with an example of creating a RibbonBarItemTemplate from the Code Behind (C#)?
Thnx.

Regards,
  Jos Meerkerk
RvdGrint
Top achievements
Rank 1
 answered on 21 Feb 2012
2 answers
217 views
I'm using the RadEditor with a ContentTypeProvider that uploads images to the Amazon S3 service. That works great, but the imageManager sets the src of the image as src='S3FileSystemHandler.ashx?path=yourFolder/yourImage.jpg'. I'd rather not have the ashx page handling the images, and would prefer the src just be src='http://s3.amazonaws.com/yourBucket/yourFolder/yourImage.jpg'. Is this possible? Is there a reason I'm missing to set the src to include the ashx page and have the ashx page handle the images rather than just hitting the image directly?

Thanks for any help.
Jim
James
Top achievements
Rank 1
 answered on 21 Feb 2012
2 answers
237 views
Can somone please show me an example of how can I hide the all day check box in Rad Scheduler.
I believe i found the problem

protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)  
{  
    if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))  
    {  
        CheckBox allDayCheckBox = (CheckBox)e.Container.FindControl("AllDayEvent");  
        allDayCheckBox.Visible = false;  
 
        TextBox subjectTextBox = (TextBox)e.Container.FindControl("Subject");  
        subjectTextBox.Visible = false;  
    }  

thanks

Jose
Top achievements
Rank 1
 answered on 21 Feb 2012
1 answer
53 views
Hi,
 When I drop a RadDatePicker control onto a webpage, it never vertically aligns properly with other controls on the rendered page (looks just fine via VS design view):

 See Attached picture and notice the Rad date picker input box is several pixels aboe all the rest.

This can be easily reproduced by dropping a RadTextBox, then drop a RadDatePicker, view the page in a browser and see they don't align vertically.

What can I do to properly align this control with other controls?

Thanks,
~Patrick
Patrick
Top achievements
Rank 1
 answered on 21 Feb 2012
1 answer
159 views
Please look at the screen shot attached. I want to hide this from the header without hiding the whole header.
Plamen
Telerik team
 answered on 21 Feb 2012
4 answers
282 views
Hi,
    How can i loop through all the controls in a grid(in all rows) and find the type of the control(eg: Radio button or check box) from client side using javascript

 Rahul R
Richard
Top achievements
Rank 1
 answered on 21 Feb 2012
5 answers
175 views
Hello!

i've 3 slider in my page. 1 is none item style and two others are with item style.
with item style "none", drag handle starting exactly from first point of track. but with item style draghandle starting between middle of the first and second tick  place of slider. (you can check from attachament.) i want that, all of my my slider are displaying same size. (width and height) and starting from same place even i selected "item" style..is it possible? 

Regards
Omer
Slav
Telerik team
 answered on 21 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?