Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views
I call a database to populate my RadCombobox with ID, CategoryName, BackgroundColor, TextColor
how can I change each option in the drop down to use these options.
my current combobox is a listing of checkboxes.

I already have written out css classes for each one and possibly all I need to do is set each option's css class.
How to do?
Doug
Top achievements
Rank 1
 answered on 18 May 2017
0 answers
103 views

I have a datagrid that contains a column which has an editable drop down list.

I have filtering set to true, but when you place text in the filter box and click "Equal To" or whatever clause, it breaks/errors out

I get Unhandled Exception error.  Its a messing popup window with a bunch of jargon.

 

Anything I need to alter to make this work with that EditTemplate piece in there?

 

Here is the code

 

    <telerik:GridTemplateColumn HeaderText="ConfirmationType" ItemStyle-Width="240px" AllowFiltering="True" ShowSortIcon="True">
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem, "ConfirmationType")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" runat="server" ID="RadComboBox1" DataTextField="ConfirmationType" DataValueField="ConfirmationType" DataSourceID="ConfirmationType" SelectedValue='<%#Bind("ConfirmationType") %>'>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

Bryan
Top achievements
Rank 1
 asked on 18 May 2017
4 answers
349 views
Hi,

i have an issue with the grouping functionality of RadGrid.
There is a grid with several items.
Each element is custom object and is bind via "RadGrid.Datasource".
Everything works fine and all items are shown in the Grid if there is no grouping.
But after i am enabling grouping and set following SelectFields & GroupByFields only the first group and his first element is shown in the grid.
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldAlias="Bundle" FieldName="GroupName" HeaderValueSeparator="_" />
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="GroupName" SortOrder="None"/>
        </GroupByFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>

I use the debugger and search for an error but everything looks fine and all items are bind to the datasource.
But only the first group is shown in the grid and from this first group only the first item.
The title of the group is like "Bundle_Truck7546 (Showing 1 of 3 items. Group continues on the next page.)" but the PageSize is at 50 and there is no next page.

I hope anyone know what cause this problem and how i can solve it.

If you need further information please post.

best regards
sukhwinder
Top achievements
Rank 1
 answered on 18 May 2017
4 answers
178 views
Hi, i have a problem similar to a thread which was raised earlier last year (http://www.telerik.com/community/forums/aspnet-ajax/scheduler/radscheduler-in-ie8-compatibility-mode.aspx)

I currently have a problem displaying the scheduler on our local intranet website where the scheduler will be shown incorrectly only on internet explorer.

The page consists of one screen with a scheduler which should take up the whole space, but with Internet Explorer 9, it seems to get squished to the left hand side of the browser. After checking the internet tools, it seems that even though the document mode is forced to IE9, the browser mode is by default on "IE9 compatibility mode" which is what seems to be causing the problem.

I have done research to see if i can turn off the compatibility mode programmatically but to no avail.

One workaround i found was, even if the browser mode is on IE9 compatibility mode, if i had the document mode to be on IE7, the scheduler renders near correctly (the scheduler takes up the whole screen space but the grid lines are mis aligned with the dates on top) but the checkboxes i need are not rendered.

Is there any solution to fixing this problem or get a better working workaround? It is going to be difficult to explain to users to go into their internet explorer settings to stop forcing of compatiblity view on their browsers.

Peter Milchev
Telerik team
 answered on 18 May 2017
4 answers
585 views
Hello,

I have used HTML Editor , and all teh feature of this Working absolutly fine on IE Browser...But when i open the same HTML Editor on Fire Fox / Chrome , and enter some text, select that text and try to Do COPY by using Icon / Do Right click and try to Do copy ...

Its showing Unnecessary message “Use Ctrl-C” get displayed on clicking Copy Icon...

Same Problem i am facing in the Past Control...


Please help me out on this...

Regards
Samir
Pulaparthi
Top achievements
Rank 1
 answered on 18 May 2017
1 answer
127 views

I am using this example

 

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Filtering/radgrid-filtered-by-radcombobox

I want to choose the data for the grid by selecting an item in a drop down list.

I want to initialise the grid from the code behind.

How do I do this? My grid is not refreshing at the moment.

This is the code for my aspx page

 

<div class="panel panel-primary">
<div class="panel-heading">
Your Notes
</div>
</div>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanelN"></telerik:RadAjaxLoadingPanel>
<telerik:RadDropDownList runat="server" ID="RadDropDownStudents" DefaultMessage="Select a student" DropDownWidth="300px" Width="350px"
DataValueField="student_id" DataTextField="Studentname" OnItemSelected="RadDropDownStudents_ItemSelected"
OnSelectedIndexChanged="RadDropDownStudents_SelectedIndexChanged" AutoPostBack="true">
</telerik:RadDropDownList>
<telerik:RadGrid runat="server" ID="RadGridNotes" ShowFooter="false" Width="100%" enableajax="true" ShowStatusBar="true" OnItemCommand="Grid_RowSelect"
allowaddingrecords="false" AutoGenerateColumns="false" AllowSorting="false" allowpagesizeselection="False" OnItemDataBound="OnItemDataBoundHandler" Autobind="false"
AllowPaging="True" Skin="Bootstrap" PageSize="5" OnNeedDataSource="RadGridNotes_NeedDataSource" OnPreRender="RadGridNotes_PreRender" CssClass="table table-striped">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="note_ref" TableLayout="Auto" EditMode="EditForms">
<Columns>
<telerik:GridButtonColumn CommandName="View" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" Text="View" UniqueName="View">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="note_ref" DataType="System.Int32" HeaderText="note_ref" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_ref" Display="false" runat="server" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="course" HeaderText="code" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="course" Display="false" runat="server" ItemStyle-Width="10px" HeaderStyle-Width="10px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="courseName" HeaderText="Subject" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="qualname" HeaderStyle-Width="200px" ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="NewNoteType" HeaderText="Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="noteType" Display="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="typeDesc" HeaderText="Note Type" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="typeDesc" ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="true">
</telerik:GridBoundColumn>
<telerik:GridDateTimeColumn DataField="created" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created" DataFormatString="{0:dd/MM/yyyy}">
</telerik:GridDateTimeColumn>
<telerik:GridBoundColumn DataField="created_by" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="created_by" Display="false" ItemStyle-HorizontalAlign="Left">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="note_content" HeaderText="Created" HeaderStyle-BackColor="#428bca" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Center" HeaderStyle-VerticalAlign="Middle" UniqueName="note_content" Display="false" ItemStyle-HorizontalAlign="Center">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<EditColumn UniqueName="View">
</EditColumn>
<FormTemplate>
<table style="width: 100%" border="0">
<tr>
<td><b>Details</b><br /><br />
<asp:Label ID="LabelDetails" runat="server" Text='<%# Bind("note_content") %>'></asp:Label>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
<PagerStyle Mode="NextPrev" Position="Bottom" PageSizeControlType="RadComboBox"></PagerStyle>
</MasterTableView>
<ClientSettings EnablePostBackOnRowClick="True">
<Selecting AllowRowSelect="True" />
<ClientEvents OnRowDblClick="RowDblClick" OnRowSelected="RowSelected" />
</ClientSettings>

 

Marin Bratanov
Telerik team
 answered on 18 May 2017
4 answers
191 views

Hi,

I am creating a multiple ComboBox. RadComboBox1 for region and the other RadComboBox2 for product. Both controllers have a checkbox option. Sample data as per below;

RadComboBox1;
A
B
C

RadComboBox2;
1
2
3

What do I need are, when user choose Region [A,C] and product [1,2,3], the result would be [A1,A2,A3,C1,C2,C3]. Please help.

 

Thanks.

 

 

 

Vessy
Telerik team
 answered on 18 May 2017
2 answers
81 views

To whoever cares:

Why don't  you just get rid of the Telerik name and quit moving incrementally in that direction. The need to stamp Progress on everything is now literally moving useful information out of sight.

 

 

John S.
Top achievements
Rank 1
 answered on 18 May 2017
4 answers
167 views

Unable to get property 'trackChanges' of undefined or null reference in IE 9 and above and chrome.   No issues in IE 8.  Using jQuery on page load. 

var resultsDropDowlist = Terlerk.web.UI.RadComboBox.ComboBoxes[2];

resultsDropDownlist.trackChanges();

//To Clear the Selected Item

resultsDropDownList.get_items().clear();

thomas
Top achievements
Rank 1
 answered on 17 May 2017
0 answers
194 views

Hello!

I try to create dynamic url like https://mylink.com/?parameter1={0}&parameter2={1}, but I can get only single parameter  from field DataNavigateUrlFields="myfield".

Any ideas?

After that, I tried to resolve my issue dynamically with code:

protected void OrdersRadGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;

                TableCell tb = item["item1"];
                HyperLink lnk = new HyperLink();
                lnk.ID = "routeId";
                lnk.Text = item["item1"].Text;
                string str1 = item["item2"].Text;
                string str2 = item["item3"].Text;
                lnk.NavigateUrl = string.Format("https://mylink.com/?parameter={0}{1}", str1, str2);
                tb.Controls.Clear();
                tb.Controls.Add(lnk);

}

}

But, I get an interesting bug: in construction item["item"].Text not all fields displays correct. In debugger, i can see in the item all the fields with their correct values. But some of them (right these I need to use!), give me '&nbsp' value. Thus, expression siring str=item["item1"].Text returns me value '&nbsp' (not in all text type fields, but only in several in the same item). May it be encoding problem? Or any other ideas?

               

 

 

Олег
Top achievements
Rank 1
 asked on 17 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?