Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
384 views
I have a div that has a certain width (may vary). I'm trying to put a (vertical) menu in this div. All the items in the first level (the ones that are visible by default) should stretch to 100% of the container (in this case a div).

Setting the width for the RadMenu to 100% makes the menu stretch, but the items are not following along (they remain the same width as before, I'm guessing the width set by the item's text content).

If I add RadMenu_Default .rmVertical .rmItem { width:100%; ... }it works in IE, but in FF it grows maybe 3 times as much as it should. If I use a fixed with, let's say 200px, it works in both, but that's not going to be useful for me because the containing div (the width) may change and I need it to stretch.

Thanks.

P.S. I'm using a custom skin so changing the css would be OK, but I need to know what to change.
Peter Zolja
Top achievements
Rank 1
 answered on 10 Apr 2008
6 answers
374 views
Hi

Is there any way to set the cursor position from javascript? ie, when a button is clicked move the cursor from position 10 to position 20?

I've tried using the standard text input selection range, however without success.

Thanks
David
Rumen
Telerik team
 answered on 10 Apr 2008
4 answers
353 views
I would like my sliding panes to auto-dock when opened.  I have the code below fire when the pane opens, but the still the pane is not docked after the code executes:

function OnClientExpandedHandler(sender, args)
{
var splitter = $find("RadSplitter1");
var pane = splitter.GetPaneById("RadPane1");

var slidingZone = $find("SlidingZone1");
var paneID = slidingZone.GetPaneById("RadSlidingPane1");
slidingZone.DockPane(paneID);
// dock the pane
alert('but yet it is not docked');

Svetlina Anati
Telerik team
 answered on 10 Apr 2008
1 answer
453 views
Hi!

I tried to search for proper suggestion forum, but figured out this is the best place for the topic.

I'm waiting to the control vendors to come up with proper Workflow Designer for Windows Workflow Foundation (.NET 3.0 and above).

Now that you have good lineup with next generation ASP.NET control toolkit I'd really like to see the following implemented (and I'm sure all the people out there working with workflows would as well):

1. Support for running sequential and state machine workflows as ASP.NET applications with little code directly. The workflows initially include the application logic and basically could be in generic way wrapped within a controlset that would provide the input/output connectivity.

There are already general .NET community examples available for workflows as-is as ASP.NET applications with page transitions described as state changes in state-machine workflow.


2. Workflow designer customization. For either Windows Forms or even for ASP.NET (would be superb).

The existing Visual Studio used Workflow designer is good start, however customizing its looks and behaviour could use some general best-practices control vendor touch.


I'm sure these will be added to some component vendors products within reasonable time, but I'd be darn glad to see them in yours.

Br,

Kalle Launiala
Ivo
Telerik team
 answered on 10 Apr 2008
12 answers
557 views
Hi,

Can you give a simple code sample using the showEvent="FromCode" property?  I didn't find any documentation on using showEvent with this option and  I don't see any method called show().

In my app, when some data changes, I want to show a tooltip informing the user of the change (kind of like a new mail alert from outlook).  So I need to programatically show the tooltip as opposed to the user focusing on a control.

Thanks,
Lina
Georgi Tunev
Telerik team
 answered on 10 Apr 2008
3 answers
226 views
Error: $get(this.get_id() + "SpellChecked") has no properties

Getting that error when the spell check is complete.

I pretty much verbatim copied the multi-spell check demo, except my fields have different names and I have 2 fields instead of 3.
I have no idea why I would be getting this error.

If I use the buttons from the spell checker it works fine. Any help would be appreciated.

I cut the code to the appropriate lines because the file is pretty big.

<textarea id="situation1" style="width: 100%;" class="textInput" rows="4"></textarea> 
<telerik:RadSpell ID="rsSpellCheck_situation" ButtonType="LinkButton" runat="server" ControlToCheck="situation1" IsClientID="False" FragmentIgnoreOptions="All" SpellCheckProvider="PhoneticProvider" SupportedLanguages="en-US,English" WordIgnoreOptions="None" DictionaryPath="~/App_Data/RadSpell" /> 
 
            <script type="text/javascript"> 
            /*<![CDATA[*/
            function MultipleTextSource(sources)
            {
                this.sources = sources;
                
                this.get_text = function()
                {
                    var texts = [];
                    for (var i = 0; i < this.sources.length; i++)
                    {
                        texts[texts.length] = this.sources[i].get_text();
                    }
                    return texts.join("<controlSeparator><br/></controlSeparator>");
                }
                
                this.set_text = function(text)
                {
                    var texts = text.split("<controlSeparator><br/></controlSeparator>");
                    for (var i = 0; i < this.sources.length; i++)
                    {
                        this.sources[i].set_text(texts[i]);
                    }
                }
            }
            function startSpell()
            {
                var sources =
                    [
                    new Telerik.Web.UI.Spell.HtmlElementTextSource($get('situation1')),
                    new Telerik.Web.UI.Spell.HtmlElementTextSource($get('newNote1'))
                    ];

                var spell = GetRadSpell('<%= rsSpellCheck_situation.ClientID %>');
                spell.set_textSource(new MultipleTextSource(sources));
                spell.startSpellCheck();
            }
            /*]]>*/ 
            </script>
<input id="btnSpellCheck" type="image" src="~/Images/Buttons/spellCheck.gif" onclick="startSpell();" causesvalidation="false" runat="server" /> 

 

Nate Pinchot
Top achievements
Rank 1
 answered on 10 Apr 2008
6 answers
234 views
Hi guys, I have the following issue when working with RadNumericTextbox.

I have a repeater control in my page which loads many radnumerictextboxes at runtime. These radnumerictextboxes are created based on a skin that I have defined previously.
Once I have loaded the page, the whole set of radnumerictextbox controls appears without format (for a while) and after a couple of seconds they are showed correctly.

Do you have any idea what's going on here ?

Thanks,

François.

plamen
Top achievements
Rank 1
 answered on 10 Apr 2008
1 answer
172 views
Hi,
we have a requirement to have the following language dictionaries in our product with RAD spell.
Can you please provide details if the following are available or not?

Chinese (Simplified)

Chinese (Traditional)

English (U.K.)

English (U.S.)

French (Canada)

French (France)

German

Italian

Japanese

Portuguese (Brazil)

Spanish


Also, I was unable to find the elist of languages that RAD spell has dictionaries for. Can you please provide this list?

Regards,
Manu.
Rumen
Telerik team
 answered on 10 Apr 2008
1 answer
321 views
I have two decimal fields and am using EditForms in RadGrid Prometheus, with AutomaticUpdates/Insert/Delete enabled.

The insert and delete work fine, but on update I get an "Input String not in correct format error"  It seems to have to do with the decimal fields.  I have posted my Stack Trace.  Please advise what I am doing wrong.

Execution Error
Input string was not in a correct format.
  at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
  at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
  at System.Decimal.Parse(String s, NumberStyles style, IFormatProvider provider)
  at System.Convert.ToDecimal(String value, IFormatProvider provider)
  at System.String.System.IConvertible.ToDecimal(IFormatProvider provider)
  at System.Convert.ChangeType(Object value, TypeCode typeCode, IFormatProvider provider)
  at System.Web.UI.WebControls.Parameter.GetValue(Object value, String defaultValue, TypeCode type, Boolean convertEmptyStringToNull, Boolean ignoreNullableTypeChanges)
  at System.Web.UI.WebControls.SqlDataSourceView.AddParameters(DbCommand command, ParameterCollection reference, IDictionary parameters, IDictionary exclusionList, String oldValuesParameterFormatString)
  at System.Web.UI.WebControls.SqlDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
  at System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback)
  at Telerik.Web.UI.GridTableView.PerformUpdate(GridEditableItem editedItem, Boolean suppressRebind)
  at Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source)
  at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
  at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
  at Telerik.Web.UI.GridEditFormItem.OnBubbleEvent(Object source, EventArgs e)
  at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
  at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e)
  at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
0.0221968155170559 0.000909
Brett
Brett
Top achievements
Rank 2
 answered on 10 Apr 2008
1 answer
163 views

Hi

I know I can replace HTML text as follows:

var theSelectionObject = editor.getSelection();
editor.pasteHtml('<span class="myNewClass">' + theSelectionObject.getHtml() + '</span>')


However, if I want to replace the text of the parent element, how would I do it? I know I can get a reference to the parent element as follows, but cant find a setHTML method?

var theSelectionObject = editor.getSelection();
var theSelectedElement = theSelectionObject.getParentElement();

theSelectedElement.setHTML('blah blah');

Can somebody point me in the right direction.
Rumen
Telerik team
 answered on 10 Apr 2008
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?