Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
552 views
Hi there,

I'm looking for a way to clear a RadMaskedTextBox on the client side.  Although the Clear() method is not listed in the documentation, it does work on the masked textbox.  See below:

function RemovePhone(which)  
{  
   var radInput = window["<%= phoneRadMaskedTextBox0.ClientID %>"];  
   radInput.Clear();  

However, i'm looking for a way to pass in the element id "which" and clear only that text box:

function RemovePhone(which)  
{  
   var radInput = document.getElementById("ctl00_ContentPlaceHolder2_phoneRadMaskedTextBox" + which);  
   radInput.Clear(); // doesn't work  
   radInput.text = ''; // doesn't work  
   radInput.value = ''; // doesn't work  
Revital Keren
Top achievements
Rank 1
 answered on 28 Sep 2008
4 answers
184 views
I trying to create an animation that re-sizes two DIV on a page. When you click on the first DIV it gets re-sized to larger size. When you click on second it shrinks the First Div to its original size and makes the the Second DIV Larger, and so on.

I first looked into using the tool tip but i did not make much progress. Would anybody have a suggestion in how I should proceed?

I appreciate any input!
-matt
Chase Florell
Top achievements
Rank 1
 answered on 28 Sep 2008
7 answers
573 views
I am evaluating RadEditor for use in a product we are creating. One key feature I need is as follows. We want the user to be able to call on a set of "canned phrases" that they can include into the editor text as they are typing. The user should be able to include canned phrases by typing a special code into the editor. This code should be replaced with the corresponding canned phrase on-the-fly while the user continues to type the rest of their text.

So for example, the user can type something like "~N" in their text editor, and this will be replaced with "A bag of nails", or they type "~T" and it is replaced by "A set of new tires". They could therefore type the sentence: "The customer bought ~N on Thursday" and this would be expanded in the editor to "The customer bought a bag of nails on Thursday".

A key point is that it should happen automatically, instantly, and with no disruption to the user.

Any idea how I can achieve this please? I'm using IE6 or 7, and ASP.net2
Christian
Top achievements
Rank 1
 answered on 26 Sep 2008
0 answers
52 views
What is the equivalent way to set the image and category in a TreeView using DataBind like NodeBound for ASP.NET?

http://www.telerik.com/help/aspnet/treeview/tree_nodebound.html
Stephen
Top achievements
Rank 1
 asked on 26 Sep 2008
6 answers
385 views
I'm experimenting with the drag and drop functionality of the 2008 Q1 AJAX RadGrid release.  I'm looking at the example here:

http://www.telerik.com/demos/aspnet/prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx

As I understand it, when reordering a grid, I can drop a row on another row.  And as I'm about to drop an row on another row, a dashed line appears above the row that will be dropped on to indicate that the dropped row will end up above the row that's dropped on.  But how can I move a row to the end of the grid?

For example, on the demo page, how do I move the first row (10248) to the position after the last row (10257)?  If I drop on 10257, it will appear before 10257, and there's no drop target below 10257.

Vlad
Top achievements
Rank 1
 answered on 26 Sep 2008
6 answers
189 views
I  have a Treeview in a combobox that was working fine until I installed the latest version of the controls.  Now the treeview just looks like a list (no clickable expand images, etc...) 

it basically looks like:
  • Node1
  • Node2
  • Node3
  • Node4

Nothing in the code changed, and the treeview works fine outside of the combo box, but not inside..

Any idea where to start looking for the problem?

Lance
Top achievements
Rank 1
 answered on 26 Sep 2008
3 answers
184 views
I'm using GroupPanel for grouping and it's on the client side.I just want to limit one column at a time to group. For the second column header drag and drop should clear the first grouping and add do the second column .
jo
Top achievements
Rank 1
 answered on 26 Sep 2008
1 answer
176 views
Greetings,

I have a RadGrid that fits in a space larger than the height of the rendered grid itself and add empty rows to it to fill in the background area to make it visually look more appealing (like a spreadsheet).

I use the following bit of code to add the empty rows to the end of the data table that I use as a source of data.

 Dim remainder As Integer 
 Math.DivRem(dt.Rows.Count, GridPageSize, remainder) 
 If remainder <> 0 Then 
     For i As Integer = 1 To GridPageSize - remainder 
         dt.Rows.Add(dt.NewRow()) 
     Next 
 End If 

The GridPageSize can vary, but for this example, let's say that it is set to 30 and that I only retrieve 4 records from the database.

This serves the purpose of rendering the Grid in the following way:

Column Headers
Filter Row
4 Rows with Data
26 Empty Rows
CommandItems
Pager

When I apply a filter on the table, my empty rows are hidden.
When I sort the table by a column, my empty rows are included in the sort.

For the Filter, which functions and/or events do I have to work with to show my empty rows after the filter is applied?

For a Sort, which functions and/or events do I have to work with to temporarily remove my empty rows and add back after the sort is complete?

Thanks in advance,

Matt


Jason
Top achievements
Rank 2
 answered on 26 Sep 2008
1 answer
120 views
I am using a linq to entities data source where the columns are determined run time, and uses a library called DynamicQuery.  This library creates a dynamic assembly.

Even with EnableViewState="false" the datasource definition seems to be stored in viewstate, and is attempting to be deserialized.  When it tries to deserialize an error is thrown that the assembly that was previously used is no longer available.

Is there any way to prevent the datasource object from being saved into viewstate?

Note: When I completely turn ViewState off at the control level, the page works, but the Paging and event processing is broken with the grid when this is done.
Nicholas Walker
Top achievements
Rank 1
 answered on 26 Sep 2008
2 answers
224 views
hi guys
panelbar
    item
        panelitem
            item
                panleitem
                    itemtemplate
         panelitem
            item
                panleitem
                    itemtemplate

so my panel bar has 2 items now and inside these items are aspx controls like dropdown list and next button. lets say i am in the first panel item, and now want to click the next button, this next button will take me to the second panel item. so it will collapse the first panel item and expand the second one. how do i do this in javascript so that i don't have to do the postback. thank you very much.
appdev
Top achievements
Rank 1
 answered on 26 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?