Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
I am using RadDateTimePicker. I have set a mindate and maxdate. Also it shows todays date. When I open the calender it shows the month of mindate. How do I get it to open current month. In .cs file,

((

RadDateTimePicker)this.FindControl("FromDatePicker")).SelectedDate = DateTime.Now;

 

 Is not working.

<telerik:GridBoundColumn DataField="DateCreated" HeaderText="Date Created"  
            UniqueName="DateCreated" FilterListOptions="VaryByDataTypeAllowCustom">
            <FilterTemplate>
                        From
                        <telerik:RadDateTimePicker ID="FromDatePicker" runat="server" Width="185px" Skin="WebBlue" DateInput-EmptyMessage="MinDate"
                            MinDate="01-01-2010" MaxDate="12-31-2011"  DbSelectedDate='<%# startDate1 %>'>
                            <TimeView ID="TimeView1" OnClientTimeSelected="DateSelected" runat="server">
                            </TimeView>
                             <ClientEvents OnDateSelected="DateSelected1" OnPopupOpening="PopupOpening" />
                             <Calendar runat="server"
                             <SpecialDays> <telerik:RadCalendarDay Repeatable ="Today" ItemStyle-BackColor="Red"
                             </telerik:RadCalendarDay></SpecialDays>
                             </Calendar>
                        </telerik:RadDateTimePicker>
                        to
                        <telerik:RadDateTimePicker ID="ToDatePicker" runat="server" Width="185px" MinDate="01-01-2010" Skin="WebBlue" DateInput-EmptyMessage="MinDate"
                            MaxDate="12-31-2011"  DbSelectedDate='<%# endDate1 %>'>
                            <TimeView ID="TimeView2" OnClientTimeSelected="DateSelected" runat="server" >
                            </TimeView>
                             <ClientEvents OnDateSelected="DateSelected1"  OnPopupOpening="PopupOpening" />
                             <Calendar ID="Calendar1" runat="server">
                             <SpecialDays> <telerik:RadCalendarDay Repeatable ="Today" ItemStyle-BackColor="Red">   
                             </telerik:RadCalendarDay></SpecialDays>
                             </Calendar>
                        </telerik:RadDateTimePicker>
                        <telerik:RadScriptBlock ID="RadScriptBlock111" runat="server">
  
                            <script type="text/javascript">
                                function DateSelected(sender, args) {
                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                    tableView.filter("DateCreated", "", "Between");
                                }
                                var isDateToBeSet = true;
                                function DateSelected1(sender, args) {
                                    if (isDateToBeSet) {
                                        sender.get_timeView().setTime(00, 01, 0, null);
                                    }
                                }
                                function PopupOpening(sender, args) {
                                    isDateToBeSet = args.get_popupControl().get_id().indexOf("timeView") != -1 ? false : true;
  
                                }
                            </script> </telerik:RadScriptBlock>
                    </FilterTemplate>
            <HeaderStyle Font-Bold="True" />
            <ItemStyle Width="31%" />
        </telerik:GridBoundColumn>
Please help.
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2011
1 answer
96 views
I am using GridClientSelectColumn and I have to call ClientEvents on checkbox click not onRowSelected.

<ClientEvents OnRowSelected="onSelected" OnRowDeselected="OnDeselected" />

Client events takes two arguments sender, args. If i add attribute on checkbox on server side then how can i pass (sender, args) parametes to get  args._dataKeyValues.

GridDataItem dataitem = (GridDataItem)e.Item;
CheckBox checkbox = (CheckBox)dataitem["column"].Controls[0];
checkbox.Attributes.Add("onclick", "onselect()");

How can i do this?
Princy
Top achievements
Rank 2
 answered on 06 Jan 2011
1 answer
184 views
I  have a complex scenario where I have a RadGrid that contains a GridTableView, and that GridTableView needs a RadComboBox in the CommandItemTemplate whose item list needs to load dynamically based on the selected item in the parent grid.  When an item is selected in the combo, it needs to insert a record into the GridTableView.  The grid looks something like:

<telerik:RadGrid ID="MeetingRoomsGrid" runat="server" OnDetailTableDataBind="MeetingRoomsGrid_DetailTableDataBind">
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Id" EditMode="InPlace" InsertItemPageIndexAction="ShowItemOnFirstPage">
        <CommandItemSettings ShowExportToWordButton="true" ShowExportToExcelButton="true" ShowExportToPdfButton="true" ShowExportToCsvButton="true" />
        <DetailTables>
            <telerik:GridTableView DataKeyNames="Id" Name="Aggregates" Width="100%" AllowSorting="true" AllowFilteringByColumn="true" CommandItemDisplay="Top">
                <CommandItemTemplate>
                    <div style="float: right;">
                        <telerik:RadComboBox  ID="AggregateRoomCombo" runat="server" AutoPostBack="true" OnSelectedIndexChanged="AggregateRoomCombo_SelectedIndexChanged">
                            <Items>
                                <telerik:RadComboBoxItem Text="foo" />
                                <telerik:RadComboBoxItem Text="bar" />
                            </Items>
                        </telerik:RadComboBox>

                    </div>
                    <div class="clearfix">&nbsp;</div>
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="ChildName" DataType="System.String" UniqueName="ChildName" SortExpression="ChildName" />
                    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton">
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridEditCommandColumn>
            <telerik:GridTemplateColumn DataField="Name"
                DataType="System.String"
                UniqueName="Name"
                SortExpression="Name"
                DefaultInsertValue="New Meeting Room"
                ItemStyle-Width="210">
                <ItemTemplate>
                    <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>' />
                </ItemTemplate>
           </telerik:GridTemplateColumn>
       </Columns>
    </MasterTableView>
</telerik:RadGrid>

(I have stripped out a bunch of stuff to try to pare it down to the essential essence)

So on the MeetingRoomsGrid_DetailDataBind() event I need to find the AggregateRoomCombo and load items into it based on the Id of the selected data item in the grid, and on the AggregateRoomCombo_SelectedIndexChanged() event I need to insert a new record into the detail table based on the Id of the selected data item in the grid.

Can anyone tell me how to traverse the grid object model to 1) find the AggregateRoomCombo object in the detail table, and 2) traverse backwards from the AggregateRoomCombo up to the grid to find the Id of the selected data item?
Ron Miles
Top achievements
Rank 1
 answered on 06 Jan 2011
4 answers
178 views
I am using the RadEditor in the admin section of an application that uses ASP.NET 4 routing. I am having some problems getting the editor to work correctly with the routes. I have made some progress resolving the problems following the instructions in this blog post: http://www.scottfindlater.co.uk/blog/net-4-routing-and-telerik-editor-dialogue-handlers, however, I still get the following error when I attempt to access any of the resource manager dialogues (eg ImageManager). Please can you tell me what is causing the problem and how to solve it. Details of Editor implementation below the error trace.

Exception Trace
[TypeAccessException: Attempt by method 'DynamicClass.lambda_method(System.Runtime.CompilerServices.Closure)' to access type 'Telerik.Web.UI.GridDataTableFromEnumerable+GridGenericEnumerable`1<System.Data.DataRowView>' failed.]
lambda_method(Closure ) +22
System.Linq.EnumerableExecutor`1.Execute() +94
System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23
System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +94
Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +143
Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +216
Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +758
Telerik.Web.UI.GridResolveEnumerable.Initialize() +35
Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +24
Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +203
Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +76
Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +98
Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +151
Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
Telerik.Web.UI.GridTableView.PerformSelect() +4
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
Telerik.Web.UI.GridTableView.DataBind() +259
Telerik.Web.UI.RadGrid.DataBind() +87
Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2342
Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +132
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146

RadGrid use in page:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

        <telerik:RadEditor ID="editContent" runat="server">
        </telerik:RadEditor>

Skin file:
<telerik:RadEditor runat="server" Width="100%" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx" />

Programatic configuration of editor in codebehind:

        Private Sub SetupPage()
            editContent.MediaManager.ViewPaths = New String() {Config.MediaDirectory}
            editContent.MediaManager.UploadPaths = New String() {Config.MediaDirectory}
            editContent.MediaManager.DeletePaths = New String() {Config.MediaDirectory}
            editContent.ImageManager.ViewPaths = New String() {Config.ImageDirectory}
            editContent.ImageManager.UploadPaths = New String() {Config.ImageDirectory}
            editContent.ImageManager.DeletePaths = New String() {Config.ImageDirectory}
            editContent.FlashManager.ViewPaths = New String() {Config.FlashDirectory}
            editContent.FlashManager.UploadPaths = New String() {Config.FlashDirectory}
            editContent.FlashManager.DeletePaths = New String() {Config.FlashDirectory}
            editContent.DocumentManager.ViewPaths = New String() {Config.DownloadDirectory}
            editContent.DocumentManager.UploadPaths = New String() {Config.DownloadDirectory}
            editContent.DocumentManager.DeletePaths = New String() {Config.DownloadDirectory}
            Dim templateDirectory As String = String.Format("{0}/Editor", Config.TemplateDirectory)
            editContent.TemplateManager.ViewPaths = New String() {templateDirectory}
            editContent.TemplateManager.UploadPaths = New String() {templateDirectory}
            editContent.TemplateManager.DeletePaths = New String() {templateDirectory}
        End Sub
Paul Taylor
Top achievements
Rank 1
 answered on 05 Jan 2011
1 answer
110 views

Greetings,

I am able to get a reference to the radGrid,

 

But in the VS Immediate Window:

 

 

radGrid.MasterTableView.Items.count

 

returns zero,

but I have several rows of data in grid.

On Postback what am I missing here?

 

Thanks

 

Dave G / Ft. Worth Tx.



   protected void btnNext_Click(object sender, ImageClickEventArgs e)

        {

 

 

 

            RadGrid radGrid = FindControl("rdTinExcel") as RadGrid;

 

            foreach (GridDataItem dataItem in radGrid.MasterTableView.Items) 

           {

 

                // push Rowa that are not Checked in the Grid  

                if (!(dataItem.FindControl("cbSelectColumn") as CheckBox).Checked)

                {

 

Do something here…..

 

}

Todd Anglin
Top achievements
Rank 2
 answered on 05 Jan 2011
2 answers
145 views
I have a RadListBox with checkboxes.  I would like the user to be able to select an item in the listbox and click on an Edit link to open up a popup in which the user can edit the information based on the selected item.  So I need to pass the selected value as an id (key) in the LoadContentFrom on my Telerik Window.  I am not sure as to how to do this.  I tried creating a hidden field and setting it using the OnClientItemChecked, but I am having difficulty actually getting the selected item and its value.  The listbox is not being found - please see the code below.

    <script language="javascript" type="text/javascript">
  
        function setSelectedUser() {
            var listBox = $find('<%= UsersLB.ClientID %>_ClientState');
            var selectedItem = listBox.get_selectedItem();
            document.getElementById("selectedUser").value = selectedItem.get_value());
        }
    </script>
    <%  UsersLB.DataSource = Model.userList
        UsersLB.DataValueField = "Value"
        UsersLB.DataTextField = "Text"
        UsersLB.DataBind()
          
        UserGroupsLB.DataSource = Model.userGroupList
        UserGroupsLB.DataValueField = "Value"
        UserGroupsLB.DataTextField = "Text"
        UserGroupsLB.DataBind()
    %>
    <div id="mainright">
        <asp:HiddenField ID="selectedUser" runat="server"/>
        <div>
            <telerik:RadListBox ID="UsersLB" runat="server" CheckBoxes="true" Height="300px" OnClientItemChecked="setSelectedUser()">
            </telerik:RadListBox>
            <a href="#" id="newUser">New</a>       <a href="#" id="editUser">Edit</a>
            <%  Html.Telerik().Window().Name("CreateWindow") _
                .LoadContentFrom("Create", "User") _
                .Buttons(Function(buttons) buttons.Refresh().Maximize().Close()) _
                .Draggable(True) _
                .Height(450) _
                .Width(500) _
                .Resizable() _
                .Title("Create New GMC Web User") _
                .HtmlAttributes(New With {.class = "windows7"}) _
                .Visible(False) _
                .Render()
             %>
            <%  Html.Telerik().Window().Name("EditWindow") _
                .LoadContentFrom("Edit", "User") _
                .Buttons(Function(buttons) buttons.Refresh().Maximize().Close()) _
                .Draggable(True) _
                .Height(450) _
                .Width(500) _
                .Resizable() _
                .Title("Edit GMC Web User") _
                .HtmlAttributes(New With {.class = "windows7"}) _
                .Visible(False) _
                .Render()
             %>
        </div>
        <div>
            <telerik:RadListBox ID="UserGroupsLB" runat="server" CheckBoxes="true" Height="300px">
            </telerik:RadListBox>
        </div>
  
    </div>
    <%  Html.Telerik().ScriptRegistrar().OnDocumentReady("$('#newUser').bind('click', function openWindow(e){ $('#CreateWindow').data('tWindow').center().open().refresh();})")
            .OnDocumentReady("$('#editUser').bind('click', function openWindow(e){$('#EditWindow').data('tWindow').center().open()>refresh();})")
%>


 Can you please point me in the right direction as to how to do what I need?

Thank you very much,
Donna
Donna Stewart
Top achievements
Rank 1
 answered on 05 Jan 2011
3 answers
261 views
I'm using Version=2009.3.1314.35 because the latest version seems to mess up my grid skins which I don't feel like dealing with right now.

Anyway in this version, is there an easy way to show an excel icon like in the latest? Something like showExcelIcon = true?

Also, if I don't supply a command item template, a default one renders with input elements of type submit with <a> tags.
Is there an example of how I can do this manually in the command item template?
If I just put an input element in the command item template and set runat to server, it doesn't get acknowledged by the Command Item clicked event like link buttons do. 
How do I successfully implement my own <a> tag for an input element in the command item template?

I need something like the following but i'm confused by the autogenerated $ctl00$ctl02$ctl00$ text
<a href="javascript:__doPostBack('InactiveUnitGrid$ctl00$ctl02$ctl00$RebindGridButton','')" id="InactiveUnitGrid_ctl00_ctl02_ctl00_RebindGridButton">Refresh</a>

What is this RebindGridButton that gets referenced in the doPostBack method?
Should I be able to just reference the RebindGridButton without the InactiveUnitGrid_ctl00_ctl02_ctl00_ prefix? 
Matt
Top achievements
Rank 1
 answered on 05 Jan 2011
2 answers
541 views

I am trying to add an .net button dynamically to the radgrid footer with the following code.  The button gets displayed correctly.
However, the btn_Click event does not get fired when the button is clicked.
Am I missing something in the code?

Thanks for your help.

  protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)  
{  
        if (e.Item is GridFooterItem)  
        {  
            GridFooterItem footerItem = (GridFooterItem)e.Item;  
            RadScriptManager1.RegisterAsyncPostBackControl(btn);
            Button btn = new Button();  
            btn.Text = "Button";  
            btn.Click += new System.EventHandler(btn_Click);
            footerItem.Cells[2].Controls.Add(btn);  
        }  
    }  

weezie
Top achievements
Rank 1
 answered on 05 Jan 2011
2 answers
255 views

Hi Telerik team;

Currently we have a web page in our site which is using radcombobox and after we upgraded to Q2 2010, the arrow cell image is getting cut off.  We upgraded to .net 4.0 and the telerik to Q2 2010.  Could you please take a look and let me know what the problem is?  I tried setting EnableEmbeddedBaseStyleSheet = "false" and that did not fix it.

Here is the way the radcombobox is declared on the page:

 

<

 

 

telerik:RadComboBox ID="cmbRegion" runat="server" AllowCustomText="false" MarkFirstMatch="false" DropDownWidth="222" Width="185" EnableVirtualScrolling="false" EnableEmbeddedBaseStylesheet="false">
</telerik:RadComboBox>

 

 

 

 


I have attached images of the radcombobox before upgrade and after upgrade which shows the arrow being cut off.

Please see the stylesheet we are using for the radcombobox below:

Thanks a lot in advance for your help,

Meera

 

.RadComboBox_Response

 

 

*

 

 

 

 

 

{

 

 

margin:0;

 

 

 

padding:0;

 

}

 

 

 

.RadComboBox_Response

 

 

,

 

 

 

 

.RadComboBox_Response

 

 

.rcbInput,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

 

 

{

 

 

font:12px arial,verdana,sans-serif;

 

 

 

color:#000;

 

}

 

 

 

/* combobox */

 

 

 

 

.RadComboBox_Response

 

 

 

 

{

 

 

vertical-align:bottom;

 

 

 

text-align: left;

 

}

 

 

 

.RadComboBox_Response

 

 

table

 

 

 

 

 

{

 

 

border:0;

 

}

 

 

 

.RadComboBox_Response

 

 

td.rcbInputCell

 

 

 

 

 

{

 

 

background: url('ComboBox/rcbBg.gif') no-repeat 0 0;

 

 

 

height:19px;

 

 

 

line-height:20px;

 

 

 

vertical-align:top;

 

 

 

padding:0;

 

 

 

border:0;

 

}

 

 

 

.RadComboBox_Response

 

 

td.rcbInputCellRight

 

 

 

 

 

{

 

 

background-position: 100% 0;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbDisabled .rcbInputCell .rcbInput

 

 

 

 

 

{

 

 

color: #999;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbHovered .rcbInputCell { background-position: 0 -21px; }

 

 

 

 

.RadComboBox_Response

 

 

.rcbHovered .rcbInputCellRight { background-position: 100% -21px; }

 

 

 

 

.RadComboBox_Response

 

 

.rcbFocused .rcbInputCell { background-position: 0 -42px; }

 

 

 

 

.RadComboBox_Response

 

 

.rcbFocused .rcbInputCellRight { background-position: 100% -42px; }

 

 

 

 

.RadComboBox_Response

 

 

td.rcbInputCell,

 

 

 

 

.RadComboBox_Response

 

 

.rcbInputCell .rcbInput

 

 

 

 

 

{

 

 

padding: 0 0 0 2px;

 

}

 

 

 

.RadComboBox_Response_rtl

 

 

td.rcbInputCell,

 

 

 

 

.RadComboBox_Response_rtl

 

 

.rcbInputCell .rcbInput

 

 

 

 

 

{

 

 

padding: 0 2px 0 0;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbInputCell .rcbInput

 

 

 

 

 

{

 

 

width:100%;

 

 

 

background:transparent;

 

 

 

vertical-align:top;

 

 

 

height: 16px;

 

 

 

border: 0;

 

 

 

margin-top: 2px;

 

 

 

outline: 0;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbInputCell .rcbEmptyMessage

 

 

 

 

 

{

 

 

color: #ccc;

 

 

 

font-style: italic;

 

}

 

 

 

.RadComboBox_Response

 

 

td.rcbArrowCell

 

 

 

 

 

{

 

 

width:24px;

 

 

 

padding:0;

 

 

 

border:0;

 

 

 

background:transparent url('ComboBox/rcbArrowCell.gif') no-repeat 0 0;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbArrowCellRight

 

 

 

 

 

{

 

 

background-position: 0 0;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbArrowCellLeft

 

 

 

 

 

{

 

 

background-position: 0 -21px;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbArrowCell a

 

 

 

 

 

{

 

 

line-height:21px;

 

 

 

width:24px;

 

 

 

height:21px;

 

 

 

text-decoration:none;

 

 

 

text-indent: -9999px;

 

 

 

font-size: 0;

 

}

 

 

 

.RadComboBox_Response

 

 

td.rcbArrowCellHidden,

 

 

 

 

.RadComboBox_Response

 

 

.rcbArrowCellHidden a

 

 

 

 

 

{

 

 

background: url('ComboBox/rcbBg.gif') no-repeat top right;

 

 

 

width: 1px;

 

}

 

 

 

.RadComboBox_Response_rtl

 

 

.rcbArrowCell a

 

 

 

 

 

{

 

 

text-indent: 9999px;

 

}

 

 

 

.RadComboBox_Response

 

 

.rcbDisabled .rcbArrowCell a

 

 

 

 

 

{

 

 

cursor:no-drop;

 

}

 

 

 

/* dropdown */

 

 

 

 

.rcbSlide

 

 

 

 

{

 

 

position:absolute;

 

 

 

overflow:hidden;

 

 

 

display:none;

 

 

 

_height:1px;

 

 

 

float:left;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

 

 

{

 

 

position:absolute;

 

 

 

background:#fff;

 

 

 

border: 1px solid #8b9cac;

 

 

 

cursor:default;

 

 

 

font-size:11px;

 

 

 

text-align: left;

 

}

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

 

 

{

 

 

text-align: right;

 

 

 

direction: rtl;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbScroll

 

 

 

 

 

{

 

 

overflow:auto;

 

 

 

position:relative;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbList

 

 

 

 

 

{

 

 

list-style:none;

 

 

 

margin:0;

 

 

 

padding:0;

 

 

 

zoom:1;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbHeader,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbFooter

 

 

 

 

 

{

 

 

background:#dfeeff;

 

 

 

color:#000;

 

 

 

padding:4px;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbHeader

 

 

 

 

 

{

 

 

border-bottom: 1px solid #a7c0df;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbFooter

 

 

 

 

 

{

 

 

border-top: 1px solid #a7c0df;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbNoWrap .rcbItem,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbNoWrap .rcbHovered,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbNoWrap .rcbDisabled,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbNoWrap .rcbLoading

 

 

 

 

 

{

 

 

white-space:nowrap;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbItem,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbHovered,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbDisabled,

 

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbLoading

 

 

 

 

 

{

 

 

padding:4px 20px 4px 4px;

 

 

 

border-top: 1px solid #f0f2f3;

 

 

 

min-height: 14px;

 

}

 

 

 

*

 

 

html .RadComboBoxDropDown_Response .rcbItem,

 

 

 

 

*

 

 

html .RadComboBoxDropDown_Response .rcbHovered,

 

 

 

 

*

 

 

html .RadComboBoxDropDown_Response .rcbDisabled,

 

 

 

 

*

 

 

html .RadComboBoxDropDown_Response .rcbLoading

 

 

 

 

 

{

 

 

height: 14px;

 

}

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

.rcbItem,

 

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

.rcbHovered,

 

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

.rcbDisabled,

 

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

.rcbLoading

 

 

 

 

 

{

 

 

padding:4px 4px 4px 20px;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbImage

 

 

 

 

 

{

 

 

vertical-align: middle;

 

 

 

margin: 0 6px 2px 0;

 

}

 

 

 

.RadComboBoxDropDown_Response_rtl

 

 

.rcbImage

 

 

 

 

 

{

 

 

margin: 0 0 2px 6px;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

em

 

 

 

 

 

{

 

 

font-style: normal;

 

 

 

font-weight: bold;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbItem em

 

 

 

 

 

{

 

 

background: #e5e5e5;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbHovered

 

 

 

 

 

{

 

 

background:#f0f2f4;

 

 

 

color:#000;

 

 

 

border-top: 1px solid #d8dde0;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbSeparator

 

 

 

 

 

{

 

 

color: #222;

 

 

 

background: #F4F4F4;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbDisabled

 

 

 

 

 

{

 

 

color:#808080;

 

 

 

cursor:no-drop;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbLoading

 

 

 

 

 

{

 

 

background:#f0f0f0;

 

 

 

text-align:center;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbMoreResults

 

 

 

 

 

{

 

 

clear:both;

 

 

 

background:#E0E3E6;

 

 

 

border-top: 1px solid #c7c7c7;

 

 

 

padding:4px;

 

 

 

text-align:center;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbMoreResults a

 

 

 

 

 

{

 

 

display:block;

 

 

 

width:9px;

 

 

 

height:6px;

 

 

 

background:url('ComboBox/rcbMoreResults.gif') no-repeat transparent;

 

 

 

margin:0 auto 4px;

 

 

 

text-indent:-3333px;

 

 

 

overflow:hidden;

 

 

 

text-decoration:none;

 

 

 

cursor:pointer;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbMoreResults a:hover

 

 

 

 

 

{

 

 

background-position:0 -6px;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbMoreResults span

 

 

 

 

 

{

 

 

display:block;

 

 

 

text-align:center;

 

}

 

 

 

.RadComboBoxDropDown_Response

 

 

.rcbScroll

 

 

 

 

 

{

 

 

scrollbar-face-color: #e9e9e9;

 

 

 

scrollbar-highlight-color: #ffffff;

 

 

 

scrollbar-shadow-color: #e9e9e9;

 

 

 

scrollbar-3dlight-color: #dbdbdb;

 

 

 

scrollbar-arrow-color: #787878;

 

 

 

scrollbar-track-color: #f5f5f5;

 

 

 

scrollbar-darkshadow-color: #aeaeae;

 

}

 

 

 

/*hacks*/

 

 

 

 

/*Opera start*/

 

 

 

 

@media

 

 

screen and (min-width:550px)

 

{

 

 

.RadComboBoxDropDown_Response_rtl .rcbItem,

 

 

 

.RadComboBoxDropDown_Response_rtl .rcbHovered,

 

 

 

.RadComboBoxDropDown_Response_rtl .rcbDisabled,

 

 

 

.RadComboBoxDropDown_Response_rtl .rcbLoading

 

 

 

 

 

{

 

 

padding:4px 20px 4px 4px;

 

 

 

zoom:1;

 

}

}

 

 

 

/*Opera end*/

 

 

 




m chotu
Top achievements
Rank 1
 answered on 05 Jan 2011
6 answers
165 views
Hello,
I'd like to save with GridSettingsPersister http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx the settings of a radgrid.

Is it possible to save also the filter width? How?

It is possible to save the column width without the automatic resize of grid's width shown in the example. I want the grid to be scrolled beyond the viewed part.
David
Top achievements
Rank 1
 answered on 05 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?