Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
I'm trying to implement client-side binding to a JSON array via the following JS:

var tableView = $find("<%= gridView.ClientID %>").get_masterTableView();
tableView.set_dataSource(GridData);
tableView.dataBind();

My columns are dynamic since they are controlled via configuration, so I have to create them on the server during Page_Load by creating GridBoundColumn instances and adding them to the grid's Columns collection (see simplified example):

GridBoundColumn column = new GridBoundColumn();
gridView.Columns.Add(column);
column.DataField = fieldBinding;
 column.UniqueName = uniquename;
column.SortExpression = fieldBinding;
column.HeaderText = fieldLabel;
gridView.Columns.Add(column);

I've found that to get any data to show up, I also have to do a preliminary data binding on Page_Load:
gridView.MasterTableView.DataSource = new string[] { };
gridView.DataBind();

Overall this works and my binding does populate, but I end up with an extra "Items" column on the right side that I cannot hide.  Getting rid of the server-side preliminary binding eliminates the extra column, but at the cost of preventing the client-side binding from occurring.  There doesn't seem to be any way to hide this extra column since it doesn't show up in the Columns collection during the lifespan of Page_Load.

Any ideas? 
David
Top achievements
Rank 1
 answered on 20 Feb 2013
1 answer
157 views
I've got two asp panels, one visible at any given time.  Visibility is toggled between the two by clicking the "Show/Hide Report" button.  Pretty straightforward but I'd like to add some visual flair.  The second panel should "slide" in from the right when Show Report is clicked (which also populates the ReportViewer) and slide back and disappear when Hide Report is clicked.  I looked at various controls but they all have UI chrome I don't need.  Is there a control that fits my needs?
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 20 Feb 2013
7 answers
138 views
I use grid in rtl mode whith resizible columns and AllowScroll=true.
When horizontal grid's scroll is visible it is impossible to do any action with columns - grouping , resizing,reordering - nothing working.
Any suggestion?
Pavlina
Telerik team
 answered on 20 Feb 2013
2 answers
259 views
I need to implement a control which looks like a good fit for PanelBar with the exception that it has to stack horizontally as opposed to vertically.  Is it possible to do this?

Thanks
Wadigzon
Top achievements
Rank 1
 answered on 20 Feb 2013
1 answer
114 views
Hi,

If I try and re-order grid columns by dragging IE8 freezes when in compatibility mode.  In normal mode its fine.  This also affects IE7.  This happens for both client and server side reordering - it seems there is some begin-drag stuff firing which kills the browser.  Has anyone alse experienced this issue?  I wouldnt care except that we have a big user base still on Ie7 - if I cant resolve this I cant use the telerik grid.  Thanks
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 20 Feb 2013
3 answers
163 views
I am using custom buttons on the Rotator and would like to know how I can get the buttons to look like the default buttons when there are no items to scroll through. Basically I have my rotator wrapframes property set to false so when I reach the last item it should disable/fade the right side button. The same should happen if there are no items on the left side of the viewing frame.

Does anyone have any suggestions?

Thanks,

Jaime
Slav
Telerik team
 answered on 20 Feb 2013
2 answers
105 views
Hi,

I've changed the localization for a few of the operators ('IsNull' to 'Is Absent' etc) - is there any way to then display these in the Expression Preview?

If possible, an example would be much appreciated.

Thanks
Allan
Top achievements
Rank 1
 answered on 20 Feb 2013
2 answers
110 views
Hi,

We've been using Telerik Ajax Asp.net version 2010 for a while.
We upgraded to 2012 a few days ago and we are facing an issue whit the Editor Tool Group associated to our radEditor.
The background of the docked editor buttons seems to have diseapear as you can see on the attached file.

I give you the code used to create this UserControl :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucIndiceTextBox.ascx.cs"
    Inherits="RBCVTransCVN.UserControls.ucIndiceTextBox" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<style type="text/css">
    #<%= indiceTextBox.ClientID %>_contentDiv
    {
        min-height: 29px !important;
        overflow: hidden;
    }
    .reContentCell
    {
        border-style: none !important;
    }
</style>
<div style="float: left; margin-right: 3px;">
    <telerik:RadEditor ID="indiceTextBox" runat="server" EditModes="Design" EnableResize="False"
        onpaste="fnTrimPaste(event)" Width="200px"
        Height="29px" StripFormattingOptions="AllExceptNewLines">
    </telerik:RadEditor>
</div>
<div id="rightDock" style="float: left; width: 56px; height: 27px;" runat="server">
</div>


protected void Page_Init(object sender, EventArgs e)
        {
            toolgroup = new EditorToolGroup();
            toolgroup.Attributes["DockingZone"] = rightDock.ClientID;
            indiceTextBox.Tools.Add(toolgroup);
            toolgroup.Tools.Add(new EditorTool("Superscript"));
            toolgroup.Tools.Add(new EditorTool("Subscript"));
            toolgroup.Attributes["ShowIcon"] = "True";
            toolgroup.Attributes["ShowText"] = "False";
             
        }

Is there any way to make those buttons to back as they were before ?

Thanks,

Guillaume
Guillaume
Top achievements
Rank 1
 answered on 20 Feb 2013
3 answers
115 views
I seem to be having a little trouble with this. I would like to create a RadWindow with a Content Template that Contains another RadWindow, such that I get a parent child relation ship with outer RadWindow being the container for the inner one (i.e. if I move the outer window the inner window moves along with it, the inner window is completely confined to the space of the outer window, etc.). Is this possible? and if so does anyone have a working example?

Marin Bratanov
Telerik team
 answered on 20 Feb 2013
1 answer
204 views
Hi,

I have a RadGrid in which a column represents the status. I display a label for the status.
When the user clicks on the column I want the data to be sorted on a field (priority) that is not displayed. This priority-field is part of the datatable attached to the grid.
Is this possible and how do I achieve this?

Paul
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 20 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?