Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
257 views
Hello,

If you begin typing in the editor without selecting anything from the toolbar, no "default" formatting is applied. If you switch between Design and HTML mode you see just the text you typed. No HTML is applied.

I've tried setting default toolbar font options using the OnClientLoad event but these selections are not applied upon typing.

Any suggestions would be appreciated.

Thanks

Blair
Blair
Top achievements
Rank 1
 answered on 10 Mar 2015
12 answers
232 views
I notice that radribbonbutton does not have a NavigationUrl Property to navigate to a specific aspx. Is there a property to navigate to aspx from the radribbonbutton. If not, How would I do it in code from the .cs file.


 protected void RadRibbonBar1_ButtonClick(object sender, Telerik.Web.UI.RibbonBarButtonClickEventArgs e)
    {
        switch (e.Button.Text)
        {
            case "Calender":
                break;

            default:
                break;
        }
Ivan Danchev
Telerik team
 answered on 10 Mar 2015
5 answers
106 views
I created my own  Template column. Everything works ok. But when I add a child hierarchy and expand any row, the values of that column in the father grid are lost.

Any suggestions on this?

I added part of my code to show the situation.

Code:

public class MyGridTemplateColumn : GridTemplateColumn
{
    public override void Initialize()
    {
        base.Initialize();

        HeaderStyle.Width = Unit.Pixel(105);
        HeaderText = "State";
        UniqueName = "StateCol";

        DataField = "StateId";
        DataType = typeof(byte);

        var _dataSource = new List<KeyValuePair<int, string>>
        {
            new KeyValuePair<int, string>(1, "Active"),
            new KeyValuePair<int, string>(2, "Deleted"),
            new KeyValuePair<int, string>(3, "Inactive"),
            new KeyValuePair<int, string>(6, "Other")
        };

        ItemTemplate = new MyItemTemplate(this.DataField, _dataSource);
        EditItemTemplate = new MyEditItemTemplate(this.DataField, _dataSource);
    }

    public override GridColumn Clone()
    {
        var res = new MyGridTemplateColumn();
        res.CopyBaseProperties(this);

        return res;
    }

    private class MyItemTemplate : ITemplate
    {
        private readonly string _dataField;
        private readonly List<KeyValuePair<int, string>> _dataSource = new List<KeyValuePair<int, string>>();

        public MyItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var lControl = new LiteralControl { ID = _dataField + "_lControl" };
            lControl.DataBinding += lControl_DataBinding;
            container.Controls.Add(lControl);
        }

        private void lControl_DataBinding(object sender, EventArgs e)
        {
            var l = (LiteralControl)sender;
            var value = l.NamingContainer.GetFieldValue("DataItem." + _dataField);
            if (value != null)
                l.Text = _dataSource.FirstOrDefault(s=>s.Key == (int)value).Value;
        }
    }

    private class MyEditItemTemplate : IBindableTemplate
    {
        private readonly string _dataField;
        private readonly List<KeyValuePair<int, string>> _dataSource = new List<KeyValuePair<int, string>>();

        public MyEditItemTemplate(string dataField, List<KeyValuePair<int, string>> origenDatos)
        {
            _dataField = dataField;
            _dataSource = origenDatos;
        }

        public void InstantiateIn(System.Web.UI.Control container)
        {
            var rcBox = new RadComboBox
            {
                ID = _dataField + "_RadComboBox",
                DataTextField = "Value",
                DataValueField = "Key",
                DataSource = _dataSource
            };

            rcBox.DataBinding += rcBox_DataBinding;
            container.Controls.Add(rcBox);
        }

        public IOrderedDictionary ExtractValues(Control container)
        {
            var dictionary = new OrderedDictionary
            {
                {_dataField, (container.FindControl(_dataField + "_RadComboBox") as RadComboBox).SelectedValue}
            };
            return dictionary;
        }

        private void rcBox_DataBinding(object sender, EventArgs e)
        {
            var rcBox = (RadComboBox)sender;
            var value = rcBox.NamingContainer.GetFieldValue("DataItem." + _dataField);
            rcBox.SelectedValue = value != null ? value.ToString() : string.Empty;
        }
    }

Usage:

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1" AllowPaging="True" AutoGenerateColumns="False" Width="50%">
    <MasterTableView DataKeyNames="ENTUserAccountId" DataSourceID="LinqDataSource1" PageSize="5">
        <Columns>
            <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" UniqueName="UserName"/>
            <telerik:GridBoundColumn DataField="Email" HeaderText="Email" UniqueName="Email"/>
            <a:MyGridTemplateColumn />
        </Columns>
        <DetailTables>
            <telerik:GridTableView runat="server" DataSourceID="LinqDataSource2" DataKeyNames="ENTUserAccountId">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="ENTUserAccountId" MasterKeyField="ENTUserAccountId" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridTemplateColumn DataField="ENTRoleId" HeaderText="Rol" UniqueName="ENTRoleId">
                        <ItemTemplate>
                            <asp:Label ID="ENTRoleIdLabel" runat="server" Text='<%# Eval("ENTRole.RoleName") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>                 
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

<asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTUserAccount"/>
        
<asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="TelerikWebApp1.DataClasses1DataContext"
    EntityTypeName="" TableName="ENTRoleUserAccount" Where="ENTUserAccountId == @ENTUserAccountId">
        <WhereParameters>
            <asp:SessionParameter Name="ENTUserAccountId" Type="Int32" />
        </WhereParameters>
</asp:LinqDataSource>  



Kostadin
Telerik team
 answered on 10 Mar 2015
4 answers
119 views
Hi

I'm using add_show from Radwindow but sinds installing version UI for ASP.NET AJAX Q1 2015, I get following error :

Object doesn't support property or method 'add_show'


This is the javascript function I use it in it:

function openChildDialog(url, wndName, title) {
    if (!url)
        url = "errorPage.aspx";
    if (!wndName)
        wndName = "popup_" + Math.random();
    var currentWnd = GetRadWindow();
     
    var browserWnd = window;
    if (currentWnd)
        browserWnd = currentWnd.BrowserWindow;
    setTimeout(function () {
        browserWnd.add_show(returnDataToParentPopup);
        var wnd = browserWnd.radopen(url, wndName);
        wnd.__parentBackReference = window; //pass the current window object of the page that opens the dialog so it can be used later
 
        if (title)
            wnd.set_title(title);
    }, 0);


Can someone please help me? It is urgent because no window is opening in my production environment!

Kind regards

Suzy
Suzy
Top achievements
Rank 2
 answered on 10 Mar 2015
1 answer
162 views
Hi, I've got a grid where neither the client nor server side events are firing on row drop, the target grid:
         <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"   
                             EnableViewState="False" GridLines="None" Width="475px" AutoGenerateDeleteColumn="True"
                             AllowAutomaticDeletes="True"
                            AllowMultiRowSelection="true"
                             OnDeleteCommand="RadGrid1_DeleteCommand" 
                            OnRowDrop="RadGrid1_RowDrop" 
                            OnItemCreated="RadGrid1_ItemCreated">
                 <ClientSettings EnableRowHoverStyle="True" AllowRowsDragDrop="True">
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                            <ClientEvents  OnRowDropping="onRowDropping"></ClientEvents>
                </ClientSettings>
david
Top achievements
Rank 1
 answered on 10 Mar 2015
4 answers
84 views
I need to use a radwindow confirmation with an icontile just like you would with a button.   How would I accomplish this with javascript?
Marin Bratanov
Telerik team
 answered on 10 Mar 2015
2 answers
112 views
Hi Team,

I am using custom css file and showing few css classes with user friendly names in "Apply CSS Class" drop down box of RAD Editor Tool bar.
I used following code in ToolsFile.xml to show user-friendly names corresponding to custom css classes:

<classes>
    <class name="Clear Class" value="" />
    <class name="ContentLink" value="a.oc-rteElement-ContentLink" />
    <class name="ContentBody" value=".oc-rteStyle-ContentBody" />
    <class name="Arrow/Separator" value=".oc-rteStyle-ContentArrowSeparator" />
    <class name="ContentHeading" value=".oc-rteStyle-ContentHeading" />
    <class name="CorporateHeading" value=".oc-rteStyle-ContentHeadingCorporate" />
    <class name="PrivateEquityHeading" value=".oc-rteStyle-ContentHeadingPrivateEquity" />
    <class name="CovertiblesHeading" value=".oc-rteStyle-ContentHeadingCovertibles" />
    <class name="ListedEquityHeading" value=".oc-rteStyle-ContentHeadingListedEquity" />
....
....
</classes>

Initially in the RAD Editor Toolbar, user-friendly names are shown in “Apply CSS Class” drop down box as shown in below figure:



After we select a style and apply it to some content, then the internal css class name of the style gets displayed on the drop down as shown below:



Kindly suggest how can I resolve this issue that internal css class name not shown to user.

Thanks & Regards,
Lipi 
Ianko
Telerik team
 answered on 10 Mar 2015
4 answers
159 views
Hi,

We are using the following controls in our VS2005 project.

radiobuttonlist
RadWindowManager
RadGrid

We have converted that project from VS2005 to VS2010.
When we are running the project in 4.0 of the VS2010, we got the following error like "Parameter count mismatch."

After that I set enableViewState = "false" in web.config, it was loading well.

The expand of the Grid is fine but when we click on this symbol (-) to collapse, it produces the same error like

"Parameter count mismatch."

I have attached the screen shot.

Kindly do the needful.

aspx
******

<%@ Register Assembly="RadWindow.Net2" Namespace="Telerik.WebControls" TagPrefix="radW" %>
<%@ Register Assembly="RadCombobox.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<%@ Register TagPrefix="UserControl" TagName="Header" Src="header.ascx" %>
<%@ Register TagPrefix="UserControl" TagName="Footer" Src="footer.ascx" %>

<link href="hierarchy.css" rel="stylesheet" type="text/css" />
<UserControl:Header ID="myHeader" runat="Server"></UserControl:Header>
<table border="0" width="100%" cellpadding="5" cellspacing="0" height="390" style="border-right: silver 1px solid;
    border-top: silver 1px solid; border-left: silver 1px solid; border-bottom: silver 1px solid">
    <form id="Form1" method="post" runat="server">
        <tr>
            <td colspan="3" height="22" style="border-bottom: silver 1px solid;" align="left"
                valign="top">
                &nbsp;&nbsp;<font class="Bread"> Cycle :: Task Status</font>
            </td>
        </tr>
        <tr valign="middle" align="left">
            <td width="5%">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <div id="btnRefreshB" runat="server">
                                <input type="button" class="Button" value="Refresh" onclick='RadGridNamespace.AsyncRequest( "<%= RadGrid1.ClientID %>", "Rebind", "<%= RadGrid1.ClientID %>")' />
                            </div>
                            
                                                        
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                <table cellpadding="0" cellspacing="0" width="350" class="RadGrid" style="border: #cccccc 1px solid;">
                    <tr>
                        <td class="HeaderNew" align="center">
                            <label>
                                Select Site</label>
                        </td>
                    </tr>
                       
                    <tr>
                        <td class="Row">
                     
                            <asp:radiobuttonlist id="rbSites" runat="server" width="350" onselectedindexchanged="rbSites_SelectedIndexChanged"
                                autopostback="True" repeatdirection="Horizontal"><asp:ListItem Selected="True" Value="('B')">Billing</asp:ListItem>
</asp:radiobuttonlist>
                        </td>
                    </tr>
                </table>
            </td>
            
        </tr>
        <tr>
            <td width="820" colspan="3">
                <table cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td>
                            <radW:RadWindowManager ID="RadWindowManager1" runat="server">
                                <Windows>
                                    <radW:RadWindow ID="RadWindow1" runat="server" Left="" Title="XMS Admin" Top="" Height="550px"
                                        NavigateUrl="" VisibleStatusbar="False" Width="840px" EnableTheming="False" MinimizeMode="MinimizeZone"
                                        MinimizeZoneId="MinimizeZone" />
                                </Windows>
                            </radW:RadWindowManager>
                           
                           <radG:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" PageSize="100" CssClass="RadGrid"
                                HorizontalAlign="NotSet" EnableAsyncRequests="True" Width="930px" AllowSorting="True"
                                DataSourceID="XMS_CYCLE_TASK_B">
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="TASK_ID" DataSourceID="XMS_CYCLE_TASK_B">
                                    <EditFormSettings>
                                        <EditColumn UniqueName="EditCommandColumn">
                                        </EditColumn>
                                    </EditFormSettings>
                                    <Columns>
                                        <radG:GridBoundColumn DataField="TASK_ID" DataType="System.Decimal" HeaderText="Task ID"
                                            ReadOnly="True" SortExpression="TASK_ID" UniqueName="TASK_ID">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </radG:GridBoundColumn>
                                        <radG:GridHyperLinkColumn DataTextField="CYCLE_ID" DataType="System.Decimal" HeaderText="Cycle ID"
                                            DataNavigateUrlField="CYCLE_ID" DataNavigateUrlFormatString="javascript:function anon(){{window.radopen('dal_policy_detail.aspx?CycleId={0}','RadWindow1');}};anon();"
                                            SortExpression="CYCLE_ID" UniqueName="CYCLE_ID">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </radG:GridHyperLinkColumn>
                                        <radG:GridHyperLinkColumn DataTextField="STATUS_NAME" HeaderText="Status" DataNavigateUrlField="TASK_ID"
                                            DataNavigateUrlFormatString="javascript:function anon(){{window.radopen('log_viewer.aspx?AuditId={0}&amp;EventSourceID=3','RadWindow1');}};anon();"
                                            SortExpression="STATUS_NAME" UniqueName="STATUS_NAME_1">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </radG:GridHyperLinkColumn>
                                        <radG:GridBoundColumn DataField="STATUS_NAME" HeaderText="Status" ReadOnly="True"
                                            SortExpression="STATUS_NAME" UniqueName="STATUS_NAME_2">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </radG:GridBoundColumn>
                                        <radG:GridBoundColumn DataField="SYSTEM_NAME" HeaderText="System" SortExpression="SYSTEM_NAME"
                                            UniqueName="SYSTEM_NAME">
                                            <ItemStyle HorizontalAlign="Center" />
                                        </radG:GridBoundColumn>
                                        <radG:GridBoundColumn DataField="DOCUMENT_COUNT" HeaderText="T" SortExpression="DOCUMENT_COUNT"
                                            UniqueName="DOCUMENT_COUNT">
                                            <ItemStyle HorizontalAlign="Center" Width="16px" />
                                        </radG:GridBoundColumn>
                                        <radG:GridBoundColumn DataField="ERROR_COUNT" HeaderText="F" SortExpression="ERROR_COUNT"
                                            UniqueName="ERROR_COUNT">
                                            <ItemStyle HorizontalAlign="Center" Width="16px" ForeColor="Red" />
                                        </radG:GridBoundColumn>
                                        <radG:GridBoundColumn DataField="START_TIME" DataType="System.DateTime" HeaderText="Start Time"
                                            SortExpression="START_TIME" UniqueName="START_TIME">
                                            <ItemStyle HorizontalAlign="Left" Width="130px" />
                                        </radG:GridBoundColumn>
                                        <radG:GridBoundColumn DataField="END_TIME" DataType="System.DateTime" HeaderText="End Time"
                                            SortExpression="END_TIME" UniqueName="END_TIME">
                                            <ItemStyle HorizontalAlign="Left" Width="130px" />
                                        </radG:GridBoundColumn>
                                    </Columns>
                                    <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn">
                                        <HeaderStyle Width="19px" />
                                    </ExpandCollapseColumn>
                                    <DetailTables>
                                        <radG:GridTableView DataKeyNames="DEST_ID" DataSourceID="XMS_CYCLE_DEST_D" AutoGenerateColumns="False"
                                            runat="server" HierarchyDefaultExpanded="True">
                                            <ParentTableRelation>
                                                <radG:GridRelationFields DetailKeyField="TASK_ID" MasterKeyField="TASK_ID" />
                                            </ParentTableRelation>
                                            <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn">
                                                <HeaderStyle Width="19px" />
                                            </ExpandCollapseColumn>
                                            <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <Columns>
                                                <radG:GridBoundColumn DataField="DEST_ID" DataType="System.Decimal" HeaderText="Dest ID"
                                                    SortExpression="DEST_ID" UniqueName="DEST_ID">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                                <radG:GridBoundColumn DataField="STATUS_NAME" HeaderText="Status" SortExpression="STATUS_NAME"
                                                    UniqueName="STATUS_NAME">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                                <radG:GridBoundColumn DataField="PRINT_DEST" HeaderText="Jobs" SortExpression="PRINT_DEST"
                                                    UniqueName="PRINT_DEST">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                                
                                                <radG:GridBoundColumn DataField="POLICY_COUNT" HeaderText="Policies" SortExpression="POLICY_COUNT"
                                                    UniqueName="POLICY_COUNT">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                                <radG:GridBoundColumn DataField="START_TIME" DataType="System.DateTime" HeaderText="Start Time"
                                                    SortExpression="START_TIME" UniqueName="START_TIME">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                                <radG:GridBoundColumn DataField="END_TIME" DataType="System.DateTime" HeaderText="End Time"
                                                    SortExpression="END_TIME" UniqueName="END_TIME">
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </radG:GridBoundColumn>
                                            </Columns>
                                            <DetailTables>
                                                <radG:GridTableView runat="server" DataKeyNames="SUBTASK_ID" DataSourceID="XMS_CYCLE_SUBTASK_D"
                                                    AutoGenerateColumns="False" HierarchyDefaultExpanded="True">
                                                    <ParentTableRelation>
                                                        <radG:GridRelationFields DetailKeyField="DEST_ID" MasterKeyField="DEST_ID" />
                                                    </ParentTableRelation>
                                                    <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn">
                                                        <HeaderStyle Width="19px" />
                                                    </ExpandCollapseColumn>
                                                    <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                                        <HeaderStyle Width="20px" />
                                                    </RowIndicatorColumn>
                                                    <Columns>
                                                        <radG:GridBoundColumn DataField="SUBTASK_ID" DataType="System.Decimal" HeaderText="SubTask ID"
                                                            SortExpression="SUBTASK_ID" UniqueName="SUBTASK_ID">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                        <radG:GridBoundColumn DataField="STATUS_NAME" HeaderText="Status" SortExpression="STATUS_NAME"
                                                            UniqueName="STATUS_NAME">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                        <radG:GridBoundColumn DataField="SUBSYSTEM_NAME" DataType="System.Decimal" HeaderText="Sub System"
                                                            SortExpression="SUBSYSTEM_NAME" UniqueName="SUBSYSTEM_NAME">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                        <radG:GridBoundColumn DataField="POLICY_COUNT" DataType="System.Decimal" HeaderText="Policies"
                                                            SortExpression="POLICY_COUNT" UniqueName="POLICY_COUNT">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                        <radG:GridBoundColumn DataField="START_TIME" DataType="System.DateTime" HeaderText="Start Time"
                                                            SortExpression="START_TIME" UniqueName="START_TIME">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                        <radG:GridBoundColumn DataField="END_TIME" DataType="System.DateTime" HeaderText="End Time"
                                                            SortExpression="END_TIME" UniqueName="END_TIME">
                                                            <ItemStyle HorizontalAlign="Center" />
                                                        </radG:GridBoundColumn>
                                                    </Columns>
                                                    <DetailTables>
                                                        <radG:GridTableView runat="server" DataKeyNames="BATCH_ID" DataSourceID="XMS_CYCLE_BATCH_D"
                                                            AutoGenerateColumns="False">
                                                            <ParentTableRelation>
                                                                <radG:GridRelationFields DetailKeyField="SUBTASK_ID" MasterKeyField="SUBTASK_ID" />
                                                            </ParentTableRelation>
                                                            <ExpandCollapseColumn ButtonType="ImageButton" UniqueName="ExpandColumn" Visible="False">
                                                                <HeaderStyle Width="19px" />
                                                            </ExpandCollapseColumn>
                                                            <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                                                <HeaderStyle Width="20px" />
                                                            </RowIndicatorColumn>
                                                            <Columns>
                                                                <radG:GridBoundColumn DataField="BATCH_ID" DataType="System.Decimal" HeaderText="Batch ID"
                                                                    SortExpression="BATCH_ID" UniqueName="BATCH_ID">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </radG:GridBoundColumn>
                                                                <radG:GridBoundColumn DataField="STATUS_NAME" HeaderText="Status" SortExpression="STATUS_NAME"
                                                                    UniqueName="STATUS_NAME">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </radG:GridBoundColumn>
                                                                <radG:GridBoundColumn DataField="POLICY_COUNT" DataType="System.Decimal" HeaderText="Policies"
                                                                    SortExpression="POLICY_COUNT" UniqueName="POLICY_COUNT">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </radG:GridBoundColumn>
                                                                <radG:GridBoundColumn DataField="START_TIME" DataType="System.DateTime" HeaderText="Start Time"
                                                                    SortExpression="START_TIME" UniqueName="START_TIME">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </radG:GridBoundColumn>
                                                                <radG:GridBoundColumn DataField="END_TIME" DataType="System.DateTime" HeaderText="End Time"
                                                                    SortExpression="END_TIME" UniqueName="END_TIME">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </radG:GridBoundColumn>
                                                            </Columns>
                                                            <EditFormSettings>
                                                                <EditColumn UniqueName="EditCommandColumn">
                                                                </EditColumn>
                                                            </EditFormSettings>
                                                            <HeaderStyle CssClass="HeaderNewAlt" />
                                                        </radG:GridTableView>
                                                    </DetailTables>
                                                    <EditFormSettings>
                                                        <EditColumn UniqueName="EditCommandColumn">
                                                        </EditColumn>
                                                    </EditFormSettings>
                                                </radG:GridTableView>
                                            </DetailTables>
                                            <EditFormSettings>
                                                <EditColumn UniqueName="EditCommandColumn">
                                                </EditColumn>
                                            </EditFormSettings>
                                            <HeaderStyle CssClass="HeaderNewAlt" />
                                        </radG:GridTableView>
                                    </DetailTables>
                                    <RowIndicatorColumn UniqueName="RowIndicator" Visible="False">
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                </MasterTableView>
                                <ItemStyle CssClass="Row" HorizontalAlign="Center" />
                                <HeaderStyle CssClass="Headerwhitespacewrap" />
                                <PagerStyle CssClass="Pager" Mode="NextPrevAndNumeric" Position="TopAndBottom" />
                                <FilterMenu HoverBackColor="LightSteelBlue" HoverBorderColor="Navy" NotSelectedImageUrl="~/RadControls/Grid/Skins/Default/NotSelectedMenu.gif"
                                    SelectColumnBackColor="Control" SelectedImageUrl="~/RadControls/Grid/Skins/Default/SelectedMenu.gif"
                                    TextColumnBackColor="Window"></FilterMenu>
                                <ClientSettings AllowExpandCollapse="True">
                                </ClientSettings>
                                <AlternatingItemStyle CssClass="Row" />
                            </radG:RadGrid>
                            <asp:sqldatasource id="XMS_CYCLE_TASK_B" runat="server" connectionstring="<%$ ConnectionStrings:XMS %>"
                                providername="<%$ ConnectionStrings:XMS.ProviderName %>" selectcommand="SELECT A.TASK_ID, C.STATUS_NAME, A.SYSTEM_ID, B.SYSTEM_NAME,D.CYCLE_ID,A.START_TIME, A.END_TIME,D.DOCUMENT_COUNT,DECODE(D.ERRORF,NULL,'N','Y') ERROR_FLAG FROM XMS_CYCLE_TASK A,XMS_SYSTEM B,XMS_STATUS_CODES C,(SELECT BILL.CYCLE_ID,DOCUMENT_COUNT,ERR.CYCLE_ID AS ERRORF FROM (SELECT DISTINCT CYCLE_ID FROM CUSTOMER_DATA_SCHEMA.BILLING B,XMS_CYCLE_BATCH XCB WHERE XCB.BATCH_STATUS=2399 AND B.XMS_BATCH_ID=XCB.BATCH_ID) ERR, (SELECT CYCLE_ID,COUNT(1) DOCUMENT_COUNT FROM CUSTOMER_DATA_SCHEMA.BILLING GROUP BY CYCLE_ID) BILL WHERE ERR.CYCLE_ID(+)=BILL.CYCLE_ID) D WHERE D.CYCLE_ID = A.CYCLE_ID AND A.SYSTEM_ID = B.SYSTEM_ID AND A.TASK_STATUS = C.STATUS_CODE AND A.SYSTEM_ID IN SYSTEM_IDS ORDER BY TASK_ID DESC"
                                onselecting="XMS_CYCLE_TASK_B_Selecting">
                    </asp:sqldatasource>
                            <asp:sqldatasource id="XMS_CYCLE_DEST_D" runat="server" connectionstring="<%$ ConnectionStrings:XMS %>"
                                providername="<%$ ConnectionStrings:XMS.ProviderName %>" selectcommand="SELECT A.DEST_ID, B.STATUS_NAME, A.TASK_ID, A.PRINT_DEST, A.POLICY_COUNT, A.START_TIME, A.END_TIME FROM XMS_CYCLE_DEST A INNER JOIN XMS_STATUS_CODES B ON A.DEST_STATUS = B.STATUS_CODE AND (A.TASK_ID = :TASK_ID) LEFT JOIN XMS_IMAGELOAD_TASK C ON A.DEST_ID = C.CYCLE_DEST_ID ORDER BY A.DEST_ID">
                    <SelectParameters>
<asp:Parameter Type="Decimal" Name="TASK_ID"></asp:Parameter>
</SelectParameters>
</asp:sqldatasource>
                            <asp:sqldatasource id="XMS_CYCLE_SUBTASK_D" runat="server" connectionstring="<%$ ConnectionStrings:XMS %>"
                                providername="<%$ ConnectionStrings:XMS.ProviderName %>" selectcommand='SELECT A."SUBTASK_ID", B."STATUS_NAME", C."SUBSYSTEM_NAME", A."POLICY_COUNT", A."START_TIME", A."END_TIME" FROM "XMS_CYCLE_SUBTASK" A, "XMS_STATUS_CODES" B , "XMS_SUBSYSTEM" C WHERE A.SUBTASK_STATUS = B.STATUS_CODE AND A.SUBSYSTEM_ID = C.SUBSYSTEM_ID AND ("DEST_ID" = :DEST_ID) ORDER BY "SUBTASK_ID"'><SelectParameters>
<asp:Parameter Type="Decimal" Name="DEST_ID"></asp:Parameter>
</SelectParameters>
</asp:sqldatasource>
                            <asp:sqldatasource id="XMS_CYCLE_BATCH_D" runat="server" connectionstring="<%$ ConnectionStrings:XMS %>"
                                providername="<%$ ConnectionStrings:XMS.ProviderName %>" selectcommand='SELECT "BATCH_ID", "STATUS_NAME", "POLICY_COUNT", "START_TIME", "END_TIME" FROM "XMS_CYCLE_BATCH" A, XMS_STATUS_CODES B WHERE A.BATCH_STATUS = B.STATUS_CODE AND ("SUBTASK_ID" = :SUBTASK_ID) ORDER BY "BATCH_ID"'><SelectParameters>
<asp:Parameter Type="Decimal" Name="SUBTASK_ID"></asp:Parameter>
</SelectParameters>
</asp:sqldatasource>
                        &nbsp; &nbsp; &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="border-right: #e9e9e9 1px solid; border-left: #e9e9e9 1px solid; border-bottom: #e9e9e9 1px solid;">
                            <table class="radgrid" cellpadding="2" cellspacing="5" style="border-top-style: none;
                                border-right-style: none; border-left-style: none; border-bottom-style: none;">
                                <tr>
                                    <td>
                                        T - Total
                                    </td>
                                    <td>
                                        F - Failed
                                    </td>
                                    <td>
                                        P - Paper
                                    </td>
                                    <td>
                                        E - Electronic
                                    </td>
                                    <td>
                                        R - Replacements
                                    </td>
                                    <td>
                                        C - Cost Disclosures
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td id="MinimizeZone">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </form>
</table>
<UserControl:Footer ID="myFooter" runat="Server"></UserControl:Footer>

.cs
***

protected void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here

            if (PageUtility.CheckLevel2(this.Session))
            {
                RadGrid1.Columns.FindByUniqueName("STATUS_NAME_1").Visible = false;
                RadGrid1.Columns.FindByUniqueName("STATUS_NAME_2").Visible = true;                
            }
            else
            {
                RadGrid1.Columns.FindByUniqueName("STATUS_NAME_2").Visible = false;
                RadGrid1.Columns.FindByUniqueName("STATUS_NAME_1").Visible = true;            
            }

            if (!Page.IsPostBack)
            {
                Initialize();
            }
        }

        private void Initialize()
        {

            if (PageUtility.GetUserSite(this.Session) == "B")
            {
                rbSites.SelectedIndex = 0;
            }
           

            SiteSettings();

        }

        #region Web Form Designer generated code
        override protected void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
            base.OnInit(e);
        }
        
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {    

        }
        #endregion

        protected override void RaisePostBackEvent(IPostBackEventHandler sourceControl, string eventArgument)
        {
            base.RaisePostBackEvent(sourceControl, eventArgument);

            if (sourceControl == this.RadGrid1)
            {
                RadGrid1.Rebind();
            }

            
        }


        protected void rbSystems_SelectedIndexChanged(object sender, EventArgs e)
        {
            SiteSettings();

            RadGrid1.DataBind();
        }

        

        protected void XMS_CYCLE_TASK_B_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            string strArgValue = "";
            if (rbSites.SelectedValue == "('B')")
            {
                strArgValue = "('B')";
            }

           
            string strQuery = e.Command.CommandText.Replace("SYSTEM_IDS", strArgValue);

            e.Command.CommandText = strQuery;
        }

        protected void rbSites_SelectedIndexChanged(object sender, EventArgs e)
        {
            SiteSettings();

            RadGrid1.DataBind();
            
        }

        private void SiteSettings()
        {
            if (rbSites.SelectedValue == "('B')")
            {
                RadGrid1.Visible = true;
                btnRefreshB.Visible = true;
            }           

        }
Marin Bratanov
Telerik team
 answered on 10 Mar 2015
1 answer
112 views
When clicking through my images with the next/previous buttons it does not keep the selected item visible in the thumbnails. I am not sure when this changed as it used to. Is there something simple I am missing? http://23.254.144.244/Style-Finish/FinishSelection
Maria Ilieva
Telerik team
 answered on 10 Mar 2015
8 answers
223 views
I am working on an Asp .net project and i Am using RadSplitter to split me website. I want to remove the borders from the splitter. Here is my asp code below, i remove the borders but they are still appear.. Can anyone help me pleasE? 

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="webbetv1.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <html runat="server">
    <head >
    <style type="text/css">
 
    .RadSplitter .pane, 
.RadSplitter .paneHorizontal
{
    border: 0px  !important;
    padding: 0px !important;
}
        .style1
        {
            width: 100%;
            margin-bottom: 33px;
        }
    </style>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    </head>
     <form id="Form1" runat="server">
    <body>
 
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div  style="height:800px; width: auto;">
        <telerik:RadSplitter ID="MainSplitter" runat="server" Width="100%" Height="100%" ExpandMode="FullExpandItem"
            Orientation="Horizontal" LiveResize="false" BorderSize="0" BorderWidth="0px"  BorderStyle="None" CssClass="pane"   >
            <telerik:RadPane ID="TopPane" runat="server" Height="120" MinHeight="85" MaxHeight="150" BorderWidth="0px"  
                Scrolling="none" CssClass="pane" >
                <asp:PlaceHolder ID="PlaceHolder3" runat="server"></asp:PlaceHolder>
 
                <table class="style1">
                    <tr>
                        <td>
                             </td>
                        <td>
                             </td>
                    </tr>
                    <tr>
                        <td>
                            sadasd</td>
                        <td>
                             </td>
                    </tr>
                </table>
 
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" Height="100%" BorderWidth="0px" BorderStyle="None" />
            </telerik:RadSplitter>
            </div>
             </body>
            </form>
 
            </html>
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?