Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
Hi,

I managed to use the ImageManager and DocumentManager in stand-alone configuration.

Bu is it also possible to use the LinkManager as a stand alone popup window?

Thank you

Marc
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 02 Oct 2009
8 answers
175 views
Could anyone tell me how to "hide" or Close the context menu when the mouse leaves the context menu?
I have the context menu appear onmouseover an image, but you have to click somewhere else on the screen for it to dissapear.
Is this a property setting?
Thanks!
Yana
Telerik team
 answered on 02 Oct 2009
2 answers
124 views
I have control with 2 elements - Editor and Limiter

 

protected override void CreateChildControls()

 

{

 

base.CreateChildControls();

 

editor =

new RadEditor();

 

editor.Editable =

true;

 

 

//editor.StripFormattingOnPaste = EditorStripFormattingOptions.MSWordRemoveAll;// "All";

 

editor.ToolsFile =

"/radcontrols/editor/ToolsDataFile.xml";

 

editor.RadControlsDir =

"/radcontrols/";

 

 

//UseFixedToolbar=false;

 

editor.ShowPreviewMode =

false;

 

editor.ShowSubmitCancelButtons =

false;

 

editor.SaveInFile =

false;

 

editor.ImagesFilters =

new string[] { "*.gif", "*.jpg", "*.png" };

 

editor.MaxDocumentSize = 5120000;

editor.ShowHtmlMode =

false;

 

editor.EnableContextMenus =

true;

 

editor.ConvertToXhtml =

false;

 

editor.Width =

new Unit(100, UnitType.Pixel);

 

editor.Height =

new Unit(200, UnitType.Pixel);

 

editor.ShowHtmlMode =

true;

 

editor.ID =

string.Concat(ID, "_Editor");

 

 

//editor.ClientID = this.ClientID + "_Editor";

 

editor.StripFormattingOnPaste =

EditorStripFormattingOptions.All;

 

 

//editor.ContextMenus.

 

 

 

//editor.OnClientLoad = "onEditorload";

 

Controls.Add(editor);

limiter =

new CharLimitValidator();

 

limiter.ID =

string.Concat(ID, "_Limiter");

 

limiter.ControlToValidate = editor.ID;

Controls.Add(limiter);


I need to give get_html value outside this control.
I try to following :

 

 

HtmlGenericControl js = new HtmlGenericControl("script");

 

js.Attributes.Add(

"language", "javascript");

 

js.InnerHtml +=

"var editor" + ClientID + " = $find('" + editor.ClientID + "');";

 

js.InnerHtml +=

this.ClientID + ".get_html = function () { return editor" + ClientID + ".get_text(); }";

 

 

//js.InnerHtml = this.ClientID + ".get_html = function () { return 'fff'; }";

 

 

 

 

 

Controls.Add(js);

but this code can't find this editor. Why? Please, help me

Rumen
Telerik team
 answered on 02 Oct 2009
7 answers
149 views
Hello,

Using RadProgressManager to monitor a custom process, I would appreciate being able to start it only when necessary.
My page works like an expert and the progress monitoring should be done only when pressing a button in last step (tab), this button doing a full postback, not an ajaxcall back.
It works but I discovered that during all the previous ajax callback, the progress area is sending unecessary requests to its handler.
How to supress them, using radprogress manager for last step only.
I thought setting its 'enabled' status during a previous call, pb is that all previous steps are ajaxified, only last one is a postback.


Thanks for help.
CS
Genady Sergeev
Telerik team
 answered on 02 Oct 2009
1 answer
130 views


does this not exist anymore... i cant find it anywhere in the documentation yet it still appears in a datepicker client side demo



Kevin
Daniel
Telerik team
 answered on 02 Oct 2009
8 answers
438 views
Hi..

I have ascx file with RadDatePiker inside it, this ascx is used in tooltip (all is based on example from online demos). When tooltip is show date picker is rendered correct but when I click on it nothing happens.

Regards
Tsvetie
Telerik team
 answered on 02 Oct 2009
1 answer
108 views
froms = new string[] { "Craig", "Lowell", "Richard" }; 
rcbFromFilter.DataSource = froms; 
rcbFromFilter.DataBind(); 
rcbFromFilter.Items.Add(new RadComboBoxItem("All", "-1")); 

Using the above code the "All" option is added to the bottom of the list. I need it at the top. I realize I could put it into the array but I will be binding to a database table so that isn't an option.

Thanks.
Helen
Telerik team
 answered on 02 Oct 2009
1 answer
145 views
I need to validate a GridDateTimeColumn to check for future dates.  I need to validate another GridDateTimecolumn to validate dates that fall within a certain BeginDate and EndDate.  What is the best way to accomlish this.  I have been searching all over. Here is how my grid is set up:

<

 

telerik:GridDateTimeColumn

 

 

DataField="LastVisitDate"

 

 

PickerType="DatePicker"

 

 

HeaderText="Date of Last Visit"

 

 

UniqueName="LastVisitDate"

 

 

DataType="System.DateTime"

 

 

DataFormatString="{0:MM/dd/yyyy}">

 

 

</telerik:GridDateTimeColumn>

We are using RadControls For ASPNET AJAX Q2 2008.
I would like to be able to do this on the client, however, will accept best method.

Thanks you,
Chris

 

Pavlina
Telerik team
 answered on 02 Oct 2009
2 answers
224 views

On a majority of my forms I Pre-Bind RadGrids on the Server, but after the form is loaded I use WebServices (asmx) and Client side binding to update the RadGrid using Client Side Binding.

My problem is Pagination does not working (or isn't visible) after a client side bind if the Radgrid was already bound to a list on the Server with a datasource <= to the radgrids pagesize. 

For Example 
My grid has a pagesize of 10. 
It was bound to Six records on the Pageload.
Then after the page has loaded the User proceeds to change the Search Criteria and invoke the WebService which returns 10 records with a Total Virtual count of 140. The 10 Records show up fine, column sorting works but no Pagingation is Visible.

If what is bound on the Server is greater then the Radgrids PageSize pagination works for future Client side binds.

Here is what my client side bind looks like:

var tableView = $find('<%= grdWorkItems.ClientID %>').get_masterTableView();                           
        tableView.set_virtualItemCount(result.TotalRecordCount);  
        tableView.set_dataSource(result.Records);                
        tableView.dataBind();                     
        tableView.clearSelectedItems();           

Have you guys seen this before am I missing something.

Thanks,
Marc

Tsvetoslav
Telerik team
 answered on 02 Oct 2009
1 answer
477 views
Hi,

In my web application, i need to give an option to user to save the Image in his client side by selecting the drives/path and give the file name and save it  at the client side.

Currently i am able to save it in the default path on the client side but i need to have the Dialog box open and prompt the user to choose the path and file name.

How to do this ?  Can you explain ?


i tried with the following code.

            System.IO.MemoryStream ms = new System.IO.MemoryStream();

            this.chartBar.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
            this.Page.Response.Clear();
            this.Page.Response.ClearHeaders();
            this.Page.Response.AddHeader("Content-disposition", "attachment; filename=BarChart.png");

            this.Page.Response.AddHeader("Content-type", "image/png");
            this.Page.Response.BinaryWrite(ms.ToArray());

            this.Page.Response.End();

In this code, i hardcoded the filename.Client Browser will give him a message for save/open etc... and if clicks on Save, it will save it to default Download location that already set by the user.



Thanks for your valuable points






Ves
Telerik team
 answered on 02 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?