Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
I have a multi-selectable, sortable, paged grid. I'm able to retain the user's selections after a sort/page operation. However, I haven't found a way to jump to the page which contains the user's selected item on a sort operation. For example, if I select a given row on page 1 of the grid and then sort by a given column, I would like to do the following:
  1. sort the grid
  2. jump from page 1 to page n (which now contains the previously selected item)
  3. reselect that item
  4. scroll to that item
How is this accomplished w/ RadGrid?

-K
Shinu
Top achievements
Rank 2
 answered on 16 Oct 2008
1 answer
67 views
I am using the rad grid to add/remove records to/from a table. I need to ensure that an Insert Row (with the insert controls, three dropdowns and a date picker) and the Header are always displayed regardless of whether the underlying table contains any records or not. I am sure this is something really obvious, but havent been able to find anything so far.
Any and all help is appreciated.
Thanks
Princy
Top achievements
Rank 2
 answered on 16 Oct 2008
2 answers
110 views
Am I totally missing something or is there no way to put the tree into a mode where we can check nodes using the checkboxes but not select nodes by clicking the name.
SLADS
Top achievements
Rank 1
 answered on 15 Oct 2008
2 answers
1.1K+ views

Having trouble working this one out, below is the DOM view of my Tree view.

I need to search all 'li' elements within the whole tree for some text, then I need to click the "rtPlus" (+) element inside the the li element that contains the matched text.

div id="TreeView1" class="RadTreeView RadTreeView_Default explorertree>
        <ul class="rtUL rtLines">
                <li class="rtLI rtFirst">
                <li class="rtLI">
                <li class="rtLI">
                        <div class="rtMid">
                        <span class="rtSp"/>
                        <span class="rtPlus"/> **click this when test matched **
                        <img class="rtImg">
                        <span class="rtIn">
                                #text **This is the matching text**
                <li class="rtLI">
                <li class="rtLI">
                <li class="rtLI">
                <li class="rtLI rtLast">

I'm sure that this can be done with a single XPath query to locate the correct "rtPlus" button and would really appreciate someone suggesting the right approach to this or some sample selenium tests for this component would be good.

Thanks.
bill
Top achievements
Rank 1
 answered on 15 Oct 2008
1 answer
169 views
If I put a RadNumericTextBox, using the Web20 skin, in a table cell that is right aligned, the spin buttons do seem to render properly in IE:

 <table> 
        <tr> 
          <td align="right"
            <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server"  
        Culture="English (United States)" ShowSpinButtons="True" Skin="Web20"  
        Width="125px"
    </telerik:RadNumericTextBox> 
          </td> 
        </tr> 
      </table> 


Any suggestion for getting the spinbuttons to display properly?


Serrin
Top achievements
Rank 1
 answered on 15 Oct 2008
1 answer
243 views
Hi,

I am using RadEditor for ASP.NET Ajax. I use the pasteHtml command to paste html on clicking a couple of buttons outside the editor in the same page.

However, when the user does a ctrl-v or drag/drops some html in the editor, or chooses Paste from the context menu, i want it to paste plain text only.   I need it to work on IE 7.0, and FF.  How do i do this.

Thanks,
Raj
Serrin
Top achievements
Rank 1
 answered on 15 Oct 2008
7 answers
235 views
Hi,

I wanted to create a function that determine the value when inserting the value to the sqldatasource. I have a checkbox in radgrid which the user will check the checkbox. If the checkbox is checked then the current date and time value will be inserted. Previously i can do it using the code as below:

Dim

checkbox1 As CheckBox = GridView1.FooterRow.FindControl("checkbox1")

 

 

If checkbox1.Checked = True Then

 

e.InputParameters(

"endapps0") = DateTime.Now()

 

 

End If

How can i do this in RadGrid?
Thanks

 

Daniel
Telerik team
 answered on 15 Oct 2008
1 answer
105 views
I've used some code that was provided by telerik to make it so users can only select a rows using the GridClientSelectColumn. Here is the javascript event.

function CancelNonInput(sender, args)    
            {    
                alert(1); 
                var e = args.get_domEvent();   
                //IE - srcElement, Others - target   
                var targetElement = e.srcElement || e.target;   
                             
                //is the clicked element an input checkbox? <input type="checkbox"...>   
                if(targetElement.tagName.toLowerCase() != "input" &&    
                    (!targetElement.type || targetElement.type.toLowerCase() != "checkbox"))  
                {                       
                    //cancel the event   
                    args.set_cancel(true);   
                }   
            }  

I'm using this on the OnRowSelecting and OnRowDeselecting with this event and it has worked in the past. However, for some reason, when I use it now, it works fine when checking the checkbox, but when I deselect the box, it clears the box and reselects it again, firing off the CancelNonInput event twice. Why is it all of a sudden reselecting the column after deselecting the column.

Thanks,

Adam
Adam
Top achievements
Rank 1
 answered on 15 Oct 2008
3 answers
173 views
hello,

i am using the RadFormDecorator control on my app on checkboxes only. i like the images for the checkboxes, but i do not like that the text color becomes gray.
 
to change this i thought id use the ForeColor property, like so:

<Telerik:RadFormDecorator id="radFormDecorator" DecoratedControls="CheckBoxes" ForeColor="black" Skin="Web20" runat="server" /> 


...yet, this produces no visible result in IE7.

how can i accomplish this?


thanks,
matt
matt
Top achievements
Rank 1
 answered on 15 Oct 2008
2 answers
144 views
Hello,

I find the following:

atServiceProxy.AjaxSettings.AddAjaxSetting(EmployeeBasicControl1.DDLDossier, EmployeeContractControl1, EmployeeLoadingPanel);

where EmployeeContractControl1 is a WebUserControl, setting a usercontrol as updatecontrol will not show the loadingpanel.

What is the logic behind this??

The Sofim-team (Belgium)

Geert
Top achievements
Rank 1
 answered on 15 Oct 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?