Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
582 views
HI!

Here is my problem:

I have a List of objects. My objects contain multiple data fields, and I want to browse and edit them with a telerik RadGrid control. The grids datasource is the list of the objects. The objects have an integer data field, what I'd like to replace in the grid with something else.
So if the fields value is 0 then a "No" string should appear in the grid in place of the number. In other cases the "Yes" would be the text in the grid. Checked and unchecked checkboxes would be also perfect.
Sorry for my bad English,
Thanks
Gábor
Top achievements
Rank 1
 answered on 07 Aug 2012
2 answers
92 views
I am trying to bind an aditiional date in the AdvancedInsertTemplate....I get " Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object" which points back to the bind. For an extra int I had to use str(intname) in the SQL to get that to work. But for the extra date no matter what I try will not work, I am using the AdvanceForm usercontrol.
Ken
Top achievements
Rank 1
 answered on 07 Aug 2012
0 answers
49 views

I figured it out.

Jill-Connie Lorentsen
Top achievements
Rank 1
 asked on 07 Aug 2012
1 answer
94 views
Hi all,

I am showing date in a cell using BoundColumn. I would like to display a text for some date(conditional).

thanks
Shinu
Top achievements
Rank 2
 answered on 07 Aug 2012
1 answer
59 views
You have 
</telerik:RadPplitter>
Instead of 
</telerik:RadSplitter>

http://www.telerik.com/help/aspnet-ajax/splitter-layout-orientation.html 

Thanks
Marin Bratanov
Telerik team
 answered on 07 Aug 2012
3 answers
193 views
I have downloaded the ASP.NET AJAX controls (RadControls_for_ASP.NET_AJAX_2010_1_415_dev.msi) but I cannot locate the RadEditorMOSS.wsp as specified in the instructions http://www.telerik.com/help/aspnet-ajax/installing-radeditor-in-moss-2007-farm.html. Any clues??

TIA
Rumen
Telerik team
 answered on 07 Aug 2012
6 answers
736 views
I am trying to refresh the parent aspx page on 'OnClientClose' of Radwindow.
I have tried the below code.But it is reloading/refreshing the page and all the data entered in the parent page also gets refreshed.I need to retain all the values in the parent page and reflect all the changes done in radwindow.

<telerik:RadWindow ID="NationalityDialog" Title="Nationality Data" runat="server" Behaviors="Close" Height="550px" Width="450px"
                Left="150px" OnClientClose="NationClientClose" />

function NationClientClose(sender, args) {
                    window.location.reload();
//window.location.href = window.location.href; 
                }

Thanks,
Soumya
rdmptn
Top achievements
Rank 1
 answered on 07 Aug 2012
1 answer
53 views
I'm working on implementing a tristate tree in our app, and everything is going pretty well, except for one issue.

When you have a mid-level node and check/uncheck that, the OnClientNodeChecked event fires without a problem and I can do everything I need to do in there.. However, it appears the event isn't being fired for any children under that mid level node that also got checked/unchecked.  OnClientNodeChecking seems to have the same behavior.

Is there something I'm missing, or will I have to do a recursive walk down the tree from the checked node in javascript, mimicking a check/uncheck on each node, to run my logic?

Ivana
Telerik team
 answered on 07 Aug 2012
1 answer
566 views
Hi Team,

I understand that a column will sort alpha when DataType String, and numerically when DataType Int, Double.
Is there a way for me to change my DataType string to Int in my SortCommand EventHandler? (I need to have column initially as DataType String for values <10, I display '< 10'.   How can I make this column sort numerically?

Here is my current SortCommand Event Handler and my Initial RadGrid Sort settings

 
public virtual void AssignSortSettingsAndSortCommandEvent()
        {
            GridAdapter.AllowSorting = GlobalConstantsSharedWebUI.RadControls.RadGridAllowSorting;
            GridAdapter.MasterTableView.SortExpressions.AllowNaturalSort = GlobalConstantsSharedWebUI.RadControls.AllowNaturalSort;
             
            GridAdapter.AddGridSortCommandEventHander(OnGridSortCommand);
        }
 
        public virtual void OnGridSortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)
        {
            GridSortExpression sortExpr = new GridSortExpression();
            var radGrid = (source as RadGrid);
 
            var col = radGrid.MasterTableView.GetColumn(string.Concat(e.SortExpression, "_UniqueName")) as GridBoundColumn;
            col.DataFormatString = "{0:N}";
            col.DataType = typeof(Double);
             
            switch (e.OldSortOrder)
            {
                case GridSortOrder.None:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = GridSortOrder.Descending;
                     
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
                case GridSortOrder.Ascending:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = radGrid.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
 
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
                case GridSortOrder.Descending:
                    sortExpr.FieldName = e.SortExpression;
                    sortExpr.SortOrder = GridSortOrder.Ascending;
 
                    e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
                    break;
            }
 
            e.Canceled = true;
            radGrid.Rebind();
        }

 

 

 

 

 

 




Maria Ilieva
Telerik team
 answered on 07 Aug 2012
1 answer
93 views
Hi,
I have written code for selecting List Item.But it is not selecting the Items from DropDown.

I used following code

AFTSCL.myManager.ActiveBrowser.Find.ByExpression<HtmlListItem>("TagIndex=li:67").Click();

How can select Items from DropDown List.

Thanks,
Chandrakant.
Ivaylo
Telerik team
 answered on 07 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?