Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
665 views
In case this helps someone else: I was having difficulty with my column RadHTMLChart. There were no exceptions but it wouldn't display the data. I was binding to a dataview and setting the DataFieldY and DataLabelsField to columns in that dataview. Long story short, it seems that there are certain reserved words that the chart has trouble with. In my case, my dataview had a column named "count" and a column named "Category". I changed my SQL query to give the column names the aliases of "ErrCount" and "CategoryName", changed the chart's DataFieldY and DataLabelsField properties to use these new column names, and then the chart displayed correctly.

While I have solved my problem, I'm wondering if there is documentation which lists reserved keywords so I don't run into this again?
Pratik
Top achievements
Rank 1
 answered on 30 Jun 2016
1 answer
133 views

I have an aspx page with a master page and a css file set on the master page.  In my Rad grid I set the Heder Style to this

<HeaderStyle CssClass="Myheader" /> and in my .css file I added the following class:

.Myheader
{
    background-color:red !important
}

My Header still has a black background color

 

Can anyone see a problem here?

 

Eyup
Telerik team
 answered on 30 Jun 2016
5 answers
774 views
I have a RadCombBox and RadButton like this:

<telerik:RadButton runat="server" id="btnPlantName" OnClick="btnPlantName_Click" Text="Filter"/><br />
        <label for="" class="filterElement">Plant Name: </label>
        <telerik:RadComboBox
            ID="RadComboBoxPlantName"
            DataSourceID="SqlPlantNameList"
            DataTextField="PlantName"
            DataValueField="PlantName"
            AppendDataBoundItems="true"
            runat="server"
            OnClientSelectedIndexChanged="PlantIndexChanged"
            class="filterElement" EnableLoadOnDemand="false"
            CheckBoxes="true" EnableCheckAllItemsCheckBox="true">            
        </telerik:RadComboBox>

And my code behind is set up like this: 

protected void btnPlantName_Click(object sender, EventArgs e)
{
   FilterByComboBox(RadComboBoxPlantName, "PlantName");
}
 
private void FilterByComboBox(RadComboBox box, string columnName)
        {
            var selectedItems = box.CheckedItems;
            List<string> values = new List<string>();
 
            if (selectedItems.Count != 0)
            {
                foreach (var item in selectedItems)
                    values.Add(item.Text);
 
                FilterColumnByMultipleValues(columnName, values.ToArray());
            }           
        }

When I step through the code, the event is fired properly, but box.CheckItems is always zero.  Why is this?  I need to be able to get all the values.

Thanks!
Nencho
Telerik team
 answered on 30 Jun 2016
1 answer
180 views

hi,

I have a radpanelbar on our page, on one of the panels we have radgrid with client side databinding in HeaderTemplate of a panelitem. The grid has GridboundColumns. When data is bound, the grid shows empty values for all columns of all rows.However if I move the grid to content template of panelitem then there is no such issue.

 

What is causing this problem? Is there anyway we can resolve this issue?

 

Regards,

Kiran

Ivan Danchev
Telerik team
 answered on 30 Jun 2016
3 answers
598 views
Hi,
i am displaying a radwindow in my page and i just want to display the close button. All other buttons i need to hide. please help.

Thanks,
Teena
Marin Bratanov
Telerik team
 answered on 30 Jun 2016
1 answer
130 views

Hi , 

While changing a selected index of a Kendodropdownlist i am getting the below error .

Failed to load resource: net::ERR_CONTENT_DECODING_FAILED

when i see the network tab on the brower i'm getting the below error.

Status : Failed

Type : xhr

initiator : Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=scriptManager_TSM&compress=1&_TSM_CombinedScripts

And the grid in the next step unable to load. 

Kindly help me with this issue . 

Regards,
Rajiv

Nencho
Telerik team
 answered on 30 Jun 2016
1 answer
1.7K+ views
I am facing infinite loader spinning issue in Summit my application on testing environment. I have tried replicating the same on local and Dev environments and both are working good.

We found the issues to be replicating on testing environment only.

I am getting the below error Failed to load resource: net::ERR_CONTENT_DECODING_FAILED.

If possible, please provide your valuable inputs to enlighten us so that we can move ahead to resolve these issues.
Maria Ilieva
Telerik team
 answered on 29 Jun 2016
1 answer
103 views

Hi,

I am using RadScheduler, I would like to select multiple days in the year view just as I can select in a month view.

Is it possible to select multiple days in the year view of RadScheduler?

Thanks,

Jalil

Peter Milchev
Telerik team
 answered on 29 Jun 2016
3 answers
112 views

- 2 Grid on 1 Page it Work
- 3 Grid on 1 Page Not Work. 

>> RadGrid  working to Grid1_BatchEditCommand and Grid3_BatchEditCommand Not working to Grid2_BatchEditCommand <<

 

<head>
    <title>Test</title>
    <script type="text/javascript">
 
         function SaveGrid(sender, args) {
 
            var grid1 = $find('<%=RadGrid1.ClientID%>');
            var grid1changes = grid1.get_batchEditingManager()._extractChangesString(grid1.get_masterTableView());
            if (grid1changes.length > 0) {
                grid1.get_masterTableView().fireCommand("BatchEdit", grid1changes);
            }
 
            var grid2 = $find('<%= RadGrid2.ClientID%>');
            var grid2changes = grid2.get_batchEditingManager()._extractChangesString(grid2.get_masterTableView());
            if (grid2changes.length > 0) {
                 grid2.get_masterTableView().fireCommand("BatchEdit", grid2changes);
            }
 
            var grid3 = $find('<%= RadGrid3.ClientID%>');
            var grid3changes = grid3.get_batchEditingManager()._extractChangesString(grid3.get_masterTableView());
            if (grid3changes.length > 0) {
                grid3.get_masterTableView().fireCommand("BatchEdit", grid3changes);
            }
 
        }
 
    </script>
</head>
<body>
    <form id="Form1" runat="server">
        <telerik:RadScriptManager Runat="server"></telerik:RadScriptManager>
           
           
        <telerik:RadButton runat="server" ID="RadButton1" Text="SaveAllChanges" AutoPostBack="false" OnClientClicked="SaveGrid"></telerik:RadButton>
   
           
        <telerik:GridNumericColumnEditor ID="NumericEditor1" runat="server">
            <NumericTextBox ID="NumericTextBox1" runat="server" Width="60px" />
        </telerik:GridNumericColumnEditor>
           
        <telerik:GridTextBoxColumnEditor runat="server" ID="TextEditor">
            <TextBoxStyle Width="120px" />
        </telerik:GridTextBoxColumnEditor>
   
        <!--Grid1------------>
 
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource3"
            AllowPaging="True" AllowAutomaticUpdates="True" AllowAutomaticInserts="True"
            AllowAutomaticDeletes="true" AllowSorting="true" PageSize="3" >
            <PagerStyle Mode="NextPrevAndNumeric" />
            <MasterTableView DataSourceID="SqlDataSource3" AutoGenerateColumns="False"
                DataKeyNames="CustomerID" EditMode="Batch" CommandItemDisplay="Top">
                <Columns>
        
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" SortExpression="CustomerID"
                        UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
   
   
                   <telerik:GridTemplateColumn HeaderText="ContactName" HeaderStyle-Width="180px" UniqueName="ContactName" >
                        <ItemTemplate>
                            <%# Eval("ContactName") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" Text='<%# Bind("ContactName") %>' runat="server"></asp:TextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
   
   
                    <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" SortExpression="CompanyName"
                        UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ContactTitle" HeaderText="ContactTitle" SortExpression="ContactTitle"
                        UniqueName="ContactTitle">
                    </telerik:GridBoundColumn>
                
   
                       
                 <telerik:GridBoundColumn DataField="Phone" HeaderStyle-Width="135px" HeaderText="Quantity Per Unit"
                        SortExpression="" ColumnEditorID="TextEditor" UniqueName="QuantityPerUnit">
                    </telerik:GridBoundColumn>
   
   
                    <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
   
     
        <!--Grid2------------>
   
        <telerik:RadGrid ID="RadGrid2" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="3" Skin="Default" AllowAutomaticUpdates="True" AllowPaging="True"
            AutoGenerateColumns="False" Width="750px" DataSourceID="SqlDataSource1">
   
            <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="ProductID"
                DataSourceID="SqlDataSource1" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                <BatchEditingSettings EditType="Cell" />
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="ProductID" SortOrder="Descending" />
                </SortExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="ProductName" HeaderStyle-Width="210px" HeaderText="ProductName" SortExpression="ProductName"
                        UniqueName="ProductName">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Category" HeaderStyle-Width="180px" UniqueName="CategoryID" DataField="CategoryID">
                        <ItemTemplate>
                            <%# Eval("CategoryName") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="CategoryIDDropDown" DataValueField="CategoryID"
                                DataTextField="CategoryName" DataSourceID="SqlDataSource2">
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridNumericColumn DataField="UnitsInStock" HeaderStyle-Width="80px"
                        ColumnEditorID="NumericEditor1" HeaderText="Units In Stock" SortExpression="UnitsInStock"
                        UniqueName="UnitsInStock">
                    </telerik:GridNumericColumn>
                    <telerik:GridBoundColumn DataField="QuantityPerUnit" HeaderStyle-Width="135px" HeaderText="Quantity Per Unit"
                        SortExpression="QuantityPerUnit" ColumnEditorID="TextEditor" UniqueName="QuantityPerUnit">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Discontinued" HeaderStyle-Width="80px" HeaderText="Discontinued" SortExpression="Discontinued"
                        UniqueName="Discontinued">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridTemplateColumn HeaderText="UnitPrice" ColumnEditorID="NumericEditor1"
                        HeaderStyle-Width="80px" SortExpression="UnitPrice" UniqueName="TemplateColumn"
                        DataField="UnitPrice">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblUnitPrice" Text='<%# Eval("UnitPrice", "{0:C}") %>'></asp:Label>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <span>
                                <telerik:RadNumericTextBox Width="55px" runat="server" ID="tbUnitPrice">
                                </telerik:RadNumericTextBox>
                                <span style="color: Red">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                        ControlToValidate="tbUnitPrice" ErrorMessage="*Required" runat="server">
                                    </asp:RequiredFieldValidator>
                                </span>
                            </span>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="50px" ButtonType="ImageButton"
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
 
 
        <!--Grid3------------>
   
        <telerik:RadGrid ID="RadGrid3" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowAutomaticInserts="True" PageSize="3" Skin="Default" AllowAutomaticUpdates="True" AllowPaging="True"
            AutoGenerateColumns="False" Width="750px" DataSourceID="SqlDataSource1">
   
            <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="PersonID"
                DataSourceID="SqlDataSource1" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                <BatchEditingSettings EditType="Cell" />
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="PersonID" SortOrder="Descending" />
                </SortExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="PersonName" HeaderStyle-Width="210px" HeaderText="PersonName" SortExpression="PersonName"
                        UniqueName="PersonName">
                        <ColumnValidationSettings EnableRequiredFieldValidation="true">
                            <RequiredFieldValidator ForeColor="Red" Text="*This field is required">
                            </RequiredFieldValidator>
                        </ColumnValidationSettings>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Position" HeaderStyle-Width="180px" UniqueName="PositionID" DataField="PositionID">
                        <ItemTemplate>
                            <%# Eval("PositionName")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList runat="server" ID="PositionIDDropDown" DataValueField="PositionID"
                                DataTextField="PositionName" DataSourceID="SqlDataSource2">
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridNumericColumn DataField="PersonNickname" HeaderStyle-Width="80px"
                        ColumnEditorID="NumericEditor1" HeaderText="Nickname" SortExpression="Nickname"
                        UniqueName="Nickname">
                    </telerik:GridNumericColumn>
                    <telerik:GridBoundColumn DataField="PersonContract" HeaderStyle-Width="135px" HeaderText="Contract"
                        SortExpression="PersonContract" ColumnEditorID="TextEditor" UniqueName="PersonContract">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="PersonFundNumb" HeaderStyle-Width="80px" HeaderText="PersonFundNumb" SortExpression="PersonFundNumb"
                        UniqueName="PersonFundNumb">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="50px" ButtonType="ImageButton"
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
   
</form
</body
 
<!-----------Behind Code ----------->
 
 Protected Sub Grid1_BatchEditCommand(sender As Object, e As GridBatchEditingEventArgs) Handles Grid1.BatchEditCommand
        If e.Commands.Count > 0 Then
            '.............................................
        End If
    End Sub
 
<!-----------Not Working Grid2_BatchEditCommand  ----------->
    Protected Sub Grid2_BatchEditCommand(sender As Object, e As GridBatchEditingEventArgs) Handles Grid2.BatchEditCommand
        If e.Commands.Count > 0 Then
            '.............................................
        End If
    End Sub
 
    Protected Sub Grid3_BatchEditCommand(sender As Object, e As GridBatchEditingEventArgs) Handles Grid3.BatchEditCommand
        If e.Commands.Count > 0 Then
            '.............................................
        End If
    End Sub
Viktor Tachev
Telerik team
 answered on 29 Jun 2016
1 answer
224 views

Hi,

I am using a RadListBox and I would like to find if the items that are selected in this list when clicking on a search button. However, when doing the following I have no item selected (the Label text is = 0) and I do not see why?

 

In my Search.ascx:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Search.ascx.cs" Inherits="Controls.Search.Search" %>

<telerik:RadListBox ID="List1" runat="server" SelectionMode="Multiple" CssClass="rListBx"/>

 

In my Search.ascx.cs:

Label.Text = List1.SelectedItems.Count().ToString();

My Search_Click function is in a partial class that inherits from System.Web.UI.UserControl 

 

In my Search.ascx.designer.cs

protected global::Telerik.Web.UI.RadListBox List1;

 

An idea about what I am doing wrong here?

Thanks

 

 

Sophie
Top achievements
Rank 1
 answered on 29 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?