Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
54 views
Can RadGrid columns be declaratively bound to sub-objects (i.e. DataFieldName="Property.SubObjectProperty") when taking a client-side databinding approach?  We're currently configured to use a declarative WCF client datasource and have noticed that no data is being returned for our columns bound to sub-objects.  The databinding was working as expected when previously taking a server-side databinding approach.  Any insight would be appreciated since this isn't necessarily listed as a client-side databinding limitation. 

Thanks!

Austin
Austin Jones
Top achievements
Rank 1
 answered on 19 Oct 2010
4 answers
508 views
Dear Sirs!
I have the the RadGrid inside modal dialog window (I open it when calling the showModalDialog from javascript).
I want to export the data in this grid to Excel. For this:
1. I did the button and code behind window I write:
2. dgv.ExportSettings.IgnorePaging = true;

    dgv.MasterTableView.ExportToExcel();

 


When clicking on tgeh button NOTHING happen.

Of course this works OK when working with the grid in regular page, not modal window

I want to know:
If there is any possibility to use exporting in Excel inside modal dialog?

Thank you very much in advance.

Boris
Boris
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
105 views
Hello;

I already use Rad-Scheduler with RADAJAX uner PageView container, everything works fine but when I clisck the appointment in order to edit or view its details it is not responding ( after I publish the project, but before I publish in it works fine)

here is my page code
(RadAjaxManager Code)
 <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                   </UpdatedControls>
            </telerik:AjaxSetting>

(RadScheduler Code)
 <telerik:RadPageView ID="Graphic_Pp" Runat="server" Height="441px" Width="100%">
                                                    &nbsp;<table class="style39" width="100%">
                                                        <tr>
                                                            <td>
                                                                <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime" 
                                                                    DataKeyField="sn" DataSourceID="Daily_operation" DataStartField="StartTime" 
                                                                    DataSubjectField="File_name" Width="100%">
                                                                    <ResourceTypes>
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Kind" TextField="Kind" />
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Car" TextField="Car" />
                                                                        <telerik:ResourceType DataSourceID="Daily_operation" ForeignKeyField="sn" 
                                                                            KeyField="File_number" Name="Rep" TextField="Rep_Name_1" />
                                                                    </ResourceTypes>
                                                                </telerik:RadScheduler>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </telerik:RadPageView>


please Advice


Peter
Telerik team
 answered on 19 Oct 2010
1 answer
76 views
Hi,

I am using rad scheduler with my MVC framework. I have been implemened but i want some my own links in context menu. When user will click on my link from context menu then a popup will open where user will select client name. selected client will be show in selected date.

Please help me is it possible or not?



Waiting for your reply


Thanks

Ranjan Srivastav
Peter
Telerik team
 answered on 19 Oct 2010
2 answers
52 views
When grabbing a new skin template I saw Widgets.Default.css in the Skins directory

New control?
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 19 Oct 2010
2 answers
521 views
Hello,

I'm using a RadGrid bound to an ASP.Net ObjectDataSource.

I want it to put all its rows in Edit Mode by clicking on a command button.

When the user has entered all values, he has to click on another command button to save the data.

In the code behind, I want each edited item to call the Update method defined in the ObjectDataSource.

But I get a GridException :
"Only items with IsInEditMode set to true can be updated"

I don't know why.

Here is the ASPX code for the DataSource + RadGrid:

<asp:ObjectDataSource runat="server" ID="ODS_FaceShoulderLength"
    SelectMethod="GetFaceShoulderLengthsForOneValue"
    TypeName="VAMTestsDB.TestsManagement.MachiningInfoManager">
</asp:ObjectDataSource>
<asp:ObjectDataSource runat="server" ID="ODS_Values"
    onselecting="ODS_Values_Selecting" SelectMethod="GetMachiningInfoValues"
    TypeName="VAMTestsDB.TestsManagement.MachiningInfoManager"
    OldValuesParameterFormatString="{0}"
    UpdateMethod="UpdateMachiningInfoValues">
    <UpdateParameters>
        <asp:Parameter Name="PTPId" Type="Int32" />
        <asp:Parameter Name="SpecimenId" Type="Int32" />
        <asp:Parameter Name="ThreadInterference1ValuePer100" Type="Decimal" />
        <asp:Parameter Name="SealInterference1ValuePer100" Type="Decimal" />
        <asp:Parameter Name="PinTaper1ValuePer100" Type="Decimal" />
        <asp:Parameter Name="BoxTaper1ValuePer100" Type="Decimal" />
        <asp:Parameter Name="ThreadInterference2ValuePer100" Type="Decimal" />
        <asp:Parameter Name="SealInterference2ValuePer100" Type="Decimal" />
        <asp:Parameter Name="PinTaper2ValuePer100" Type="Decimal" />
        <asp:Parameter Name="BoxTaper2ValuePer100" Type="Decimal" />
        <asp:Parameter Name="D1" Type="String" />
        <asp:Parameter Name="D2" Type="String" />
        <asp:Parameter Name="ThreadAxialGap" Type="String" />
        <asp:Parameter Name="W" Type="String" />
        <asp:Parameter Name="FaceShoulderLengthId" Type="Int32" />
        <asp:Parameter DbType="Guid" Name="UserId" />
    </UpdateParameters>
    <SelectParameters>
        <asp:Parameter Name="keys" Type="Object" />
    </SelectParameters>
</asp:ObjectDataSource>
<telerik:RadGrid runat="server" ID="RG_Values" DataSourceID="ODS_Values" AllowAutomaticUpdates="true"
    GridLines="None" AllowMultiRowEdit="true" AutoGenerateColumns="False"
    onitemcreated="RG_Values_ItemCreated"
    onitemcommand="RG_Values_ItemCommand" onprerender="RG_Values_PreRender">
    <MasterTableView DataSourceID="ODS_Values" EditMode="EditForms" DataKeyNames="PTPId,SpecimenId" CommandItemDisplay="TopAndBottom">
    <EditFormSettings EditFormType="Template">
        <FormTemplate>
                <tr>
                    <td colspan="5"> </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_TI1" MinValue="-50" MaxValue="150" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("ThreadInterference1ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.1" />
                            <NumberFormat AllowRounding="true" DecimalDigits="1" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_SI1" MinValue="-50" MaxValue="150" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("SealInterference1ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.1" />
                            <NumberFormat AllowRounding="true" DecimalDigits="1" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td colspan="3"> </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_PT1" MinValue="0" MaxValue="100" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("PinTaper1ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.01" />
                            <NumberFormat AllowRounding="true" DecimalDigits="2" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_BT1" MinValue="0" MaxValue="100" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("BoxTaper1ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.01" />
                            <NumberFormat AllowRounding="true" DecimalDigits="2" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td colspan="2"> </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_TI2" MinValue="-50" MaxValue="150" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("ThreadInterference2ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.1" />
                            <NumberFormat AllowRounding="true" DecimalDigits="1" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_SI2" MinValue="-50" MaxValue="150" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("SealInterference2ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.1" />
                            <NumberFormat AllowRounding="true" DecimalDigits="1" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td colspan="3"> </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_PT2" MinValue="0" MaxValue="100" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("PinTaper2ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.01" />
                            <NumberFormat AllowRounding="true" DecimalDigits="2" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                        <telerik:RadNumericTextBox runat="server" AllowOutOfRangeAutoCorrect="true" ButtonsPosition="Right" DataType="System.Decimal" ID="NTB_BT2" MinValue="0" MaxValue="100" ShowSpinButtons="true" Type="Number" DbValue='<%#Bind("BoxTaper2ValuePer100") %>'>
                            <IncrementSettings InterceptArrowKeys="true" InterceptMouseWheel="true" Step="0.01" />
                            <NumberFormat AllowRounding="true" DecimalDigits="2" DecimalSeparator="." />
                            <ClientEvents OnKeyPress="onNumericKeyPress" />
                        </telerik:RadNumericTextBox>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="TB_D1" TextMode="MultiLine" Rows="5" cols="20" Text='<%#Bind("D1") %>' />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="TB_D2" TextMode="MultiLine" Rows="5" cols="20" Text='<%#Bind("D2") %>' />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="TB_TAG" TextMode="MultiLine" Rows="5" cols="20" Text='<%#Bind("ThreadAxialGap") %>' />
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="TB_W" TextMode="MultiLine" Rows="5" cols="20" Text='<%#Bind("W") %>' />
                    </td>
                    <td>
                        <asp:DropDownList ID="DDL_FaceShoulderLength" runat="server"
                            DataSourceID="ODS_FaceShoulderLength" DataTextField="Name" DataValueField="Id"
                            SelectedValue='<%# Bind("FaceShoulderLengthId") %>'>
                        </asp:DropDownList>
                    </td>
                </tr>
        </FormTemplate>
    </EditFormSettings>
    <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="PTPReference" HeaderText="PTP"
                ReadOnly="true" SortExpression="PTPReference" UniqueName="PTPReference">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PinName" HeaderText="Pin" ReadOnly="true"
                SortExpression="PinName" UniqueName="PinName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BoxName" HeaderText="Box" ReadOnly="true"
                SortExpression="BoxName" UniqueName="BoxName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ThreadInterference1Type" HeaderText="TI1"
                HeaderTooltip="Thread Interference 1" ReadOnly="true"
                SortExpression="ThreadInterference1Type" UniqueName="ThreadInterference1Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SealInterference1Type" HeaderText="SI1"
                HeaderTooltip="Seal Interference 1" ReadOnly="true"
                SortExpression="SealInterference1Type" UniqueName="SealInterference1Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ThreadInterference1Value"
                DataType="System.Decimal" HeaderText="TI1 Value"
                HeaderTooltip="Thread Interference 1 Value" DataFormatString="{0:###.#%}"
                SortExpression="ThreadInterference1Value" UniqueName="ThreadInterference1Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SealInterference1Value" DataFormatString="{0:###.#%}"
                DataType="System.Decimal" HeaderText="SI1 Value"
                HeaderTooltip="Seal Interference 1 Value"
                SortExpression="SealInterference1Value" UniqueName="SealInterference1Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PinTaper1Type" HeaderText="PT1"
                HeaderTooltip="Pin Taper 1" ReadOnly="true" SortExpression="PinTaper1Type"
                UniqueName="PinTaper1Type">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="PinDoubleThreadTaper1"
                DataType="System.Boolean" HeaderText="PDTT 1 ?"
                HeaderTooltip="Pin Double Thread Taper 1 ?" ReadOnly="true"
                SortExpression="PinDoubleThreadTaper1" UniqueName="PinDoubleThreadTaper1">
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="BoxTaper1Type" HeaderText="BT1"
                HeaderTooltip="Box Taper 1" ReadOnly="true" SortExpression="BoxTaper1Type"
                UniqueName="BoxTaper1Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PinTaper1Value" DataType="System.Decimal" DataFormatString="{0:###.##%}"
                HeaderText="PT1 Value" HeaderTooltip="Pin Taper 1 Value"
                SortExpression="PinTaper1Value" UniqueName="PinTaper1Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BoxTaper1Value" DataType="System.Decimal" DataFormatString="{0:###.##%}"
                HeaderText="BT1 Value" HeaderTooltip="Box Taper 1 Value"
                SortExpression="BoxTaper1Value" UniqueName="BoxTaper1Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ThreadInterference2Type" HeaderText="TI2"
                HeaderTooltip="Thread Interference 2" ReadOnly="true"
                SortExpression="ThreadInterference2Type" UniqueName="ThreadInterference2Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SealInterference2Type" HeaderText="SI2"
                HeaderTooltip="Seal Interference 2" ReadOnly="true"
                SortExpression="SealInterference2Type" UniqueName="SealInterference2Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ThreadInterference2Value" DataFormatString="{0:###.#%}"
                DataType="System.Decimal" HeaderText="TI2 Value"
                HeaderTooltip="Thread Interference 2 Value"
                SortExpression="ThreadInterference2Value" UniqueName="ThreadInterference2Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SealInterference2Value" DataFormatString="{0:###.#%}"
                DataType="System.Decimal" HeaderText="SI2 Value"
                HeaderTooltip="Seal Interference 2 Value"
                SortExpression="SealInterference2Value" UniqueName="SealInterference2Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PinTaper2Type" HeaderText="PT2"
                HeaderTooltip="Pin Taper 2" ReadOnly="true" SortExpression="PinTaper2Type"
                UniqueName="PinTaper2Type">
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="PinDoubleThreadTaper2"
                DataType="System.Boolean" HeaderText="PDTT 2 ?"
                HeaderTooltip="Pin Double Thread Taper 2 ?" ReadOnly="true"
                SortExpression="PinDoubleThreadTaper2" UniqueName="PinDoubleThreadTaper2">
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="BoxTaper2Type" HeaderText="BT2"
                HeaderTooltip="Box Taper 2" ReadOnly="true" SortExpression="BoxTaper2Type"
                UniqueName="BoxTaper2Type">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PinTaper2Value" DataType="System.Decimal" DataFormatString="{0:###.##%}"
                HeaderText="PT2 Value" HeaderTooltip="Pin Taper 2 Value"
                SortExpression="PinTaper2Value" UniqueName="PinTaper2Value">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="BoxTaper2Value" DataType="System.Decimal" DataFormatString="{0:###.##%}"
                HeaderText="BT2 Value" HeaderTooltip="Box Taper 2 Value"
                SortExpression="BoxTaper2Value" UniqueName="BoxTaper2Value">
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="D1" UniqueName="D1">
                <ItemTemplate>
                    <div class="autocut" title='<%#Eval("D1") %>'><%#Eval("D1") %></div>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="D2" UniqueName="D2" ItemStyle-Width="50px">
                <ItemTemplate>
                    <div class="autocut" title='<%#Eval("D2") %>'><%#Eval("D2")%></div>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="ThreadAxialGap" DataType="System.String"
                HeaderText="TAG" HeaderTooltip="Thread Axial Gap"
                SortExpression="ThreadAxialGap" UniqueName="ThreadAxialGap">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="W" DataType="System.String" HeaderText="W"
                SortExpression="W" UniqueName="W">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="FSL"
                HeaderTooltip="Face Shoulder Length" DataField="FaceShoulderLength" DataType="System.String" SortExpression="FaceShoulderLength" UniqueName="FaceShoulderLength">
            </telerik:GridBoundColumn>                       
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

And the code behind:

protected void RG_Values_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridCommandItem)
    {
        GridCommandItem cmdItem = e.Item as GridCommandItem;
 
        cmdItem.Controls.Clear();
 
        TableCell commandCell = new TableCell();
        cmdItem.Controls.Add(commandCell);
        if (!this.IsInEditMode)
        {
            Button editButton = new Button();
            editButton.Text = "Edit";
            editButton.CommandName = "EditAll";
            commandCell.Controls.Add(editButton);
        }
        else
        {
            Button saveButton = new Button();
            saveButton.Text = "Save";
            saveButton.CommandName = "SaveAll";
            commandCell.Controls.Add(saveButton);
        }
    }
}
 
protected void RG_Values_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "EditAll")
    {
        this.IsInEditMode = true;
    }
    else if (e.CommandName == "SaveAll")
    {
        foreach (GridDataItem item in this.RG_Values.EditItems)
        {
            if (item.Edit)
            {
                item.FireCommandEvent("Update", null);
                item.Edit = false;
            }
        }
    }
}
protected void RG_Values_PreRender(object sender, EventArgs e)
{
    foreach (GridItem item in this.RG_Values.Items)
    {
        item.Edit = this.IsInEditMode;
    }
    this.RG_Values.Rebind();
}

Any help would be appreciated !

Thanks

Vince


DEWISME Vincent
Top achievements
Rank 1
 answered on 19 Oct 2010
3 answers
126 views
I am new to Telerik controls.  I am attempting to bind data to a rad grid using the NeedDataSource event.  I am using a MySql database.
My current C# code is. 

        protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {

            long ll_error;

            CommandType CommandType = CommandType.Text;

            dbConn = System.Configuration.ConfigurationManager.AppSettings["MYSQLDBConn"].ToString();

            MySqlConnection connection = new MySqlConnection(dbConn);

            connection.Open();

            MySqlCommand command = new MySqlCommand("SELECT * FROM syslookup;", connection);

            command.CommandType = CommandType;

            MySqlDataAdapter _DataAdapter = new MySqlDataAdapter();
            _DataAdapter.SelectCommand = command;

            DataTable myDataTable = new DataTable();

            ll_error = _DataAdapter.Fill(myDataTable);

            RadGrid1.DataSource = myDataTable;
           
        }

In the debugger I can see that the datasource has rows in it, but the grid will not show anything.  It just says no records to display.  Is there something I am missing or some property that needs to be set that I do not know about.  Thanks.
Michael
Top achievements
Rank 1
 answered on 19 Oct 2010
1 answer
131 views
Hello,

1. I have a listbox with checkboxes items.
    lets say i have added a header template and inside i put a button and call it "CheckAll".
    From the client side (JS) i would like to click on the button and then to check all the items, another click on the same button will uncheck all the items.
It is very important to me do it from a button in the header of the listbox and not from a checkbox named "All" like in your demo
whether it's a problem to do it from a button in the header, how to do it from a button out of the listbox controll?

JS examples will be appreciate.

Regards,
Oren
Yana
Telerik team
 answered on 19 Oct 2010
1 answer
216 views
I have created RadListBox controls with checkboxes on a web page, but the styling of the rendered list elements shows the items on two lines, as in the attached graphic.  Here is the markup:

<

 

 

telerik:RadListBox ID="lstStandards" runat="server"

 

 

 

CssClass="RadListBox" CheckBoxes="true" Height="200" Width="200" />

 


How can I get the entries to display on one line per entry?

Several other listbox questions:

1. There are code examples of automatically checking the checkbox when a list item is selected, but I would like to see how the code should be called from the control.

2. How could I set the properterties of the control so that only the checkboxes can be used to select/unselect items?

Rich Sorensen
Lenny_shp
Top achievements
Rank 2
 answered on 19 Oct 2010
4 answers
222 views
Hi all!

I would like to create a filter for checkbox of RadGrid (it's on the left column of RadGrid which controlled by Telerik)
For example, the customer selected some of CARS in my RadGrid.
If there's a filter upon the Checkbox column, he/she can choose "Filter Selected"
Then, just all the selected Cars are displayed in the RadGrid.

Thanks!

Andy.
Andy
Top achievements
Rank 1
 answered on 19 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?