hi,
I am running into a style issue for multi-column combo box with selections. The checkbox and corresponding item are in two lines. (see attached). Here is my code:
<%@ Page AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="ComboBox.Examples.Functionality.MultiColumnCombo.DefaultCS"
Language="c#" MasterPageFile="~/MasterPage.master" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link rel="stylesheet" type="text/css" href="styles.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceholder1" runat="Server">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Button1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="Label1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<div class="demo-container size-narrow">
<h2>Grid-like multi-column:</h2>
<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="190px" Width="460px" CheckBoxes="true"
MarkFirstMatch="true" DataSourceID="SessionDataSource1" EnableLoadOnDemand="true"
HighlightTemplatedItems="true" OnClientItemsRequested="UpdateItemCountField"
OnDataBound="RadComboBox1_DataBound" OnItemDataBound="RadComboBox1_ItemDataBound"
OnItemsRequested="RadComboBox1_ItemsRequested" DropDownCssClass="exampleRadComboBox">
<HeaderTemplate>
<ul>
<li class="col1">Contact Name</li>
<li class="col2">City</li>
<li class="col3">Title</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="col1">
<%# DataBinder.Eval(Container.DataItem, "ContactName") %></li>
<li class="col2">
<%# DataBinder.Eval(Container.DataItem, "City") %></li>
<li class="col3">
<%# DataBinder.Eval(Container.DataItem, "ContactTitle") %></li>
</ul>
</ItemTemplate>
<FooterTemplate>
A total of
<asp:Literal runat="server" ID="RadComboItemsCount" />
items
</FooterTemplate>
</telerik:RadComboBox>
<br />
<br />
<h2>Multiple rows and columns:</h2>
<telerik:RadComboBox ID="RadComboBox2" runat="server" Height="190px" Width="460px"
DropDownCssClass="multipleRowsColumns" DropDownWidth="460px" />
<telerik:RadButton runat="server" ID="Button1" Text="Select" OnClick="Button1_Click"></telerik:RadButton>
<asp:Label runat="server" ID="Label1" />
</div>
<asp:SqlDataSource ID="SessionDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString35 %>"
SelectCommand="SELECT * FROM [Customers]"></asp:SqlDataSource>
<telerik:RadScriptBlock runat="server">
<script type="text/javascript">
function UpdateItemCountField(sender, args) {
//Set the footer text.
sender.get_dropDownElement().lastChild.innerHTML = "A total of " + sender.get_items().get_count() + " items";
}
</script>
</telerik:RadScriptBlock>
</asp:Content>
Your help will be greatly appreciated.
HiI am currently running my application in IE11 and set the content mode to IE8
<add name="X-UA-Compatible" value="IE=8" />
So now in IE 11, expand functionality of radpanelitem is not displaying the expanded
itemitem.expand();
It is rendering it as -Not Working
Refer notworking.jpg snapshot
But displaying correctly in below mentioned scenarios
Browser IE11 Content Mode:Edge
<add name="X-UA-Compatible" value="IE=Edge" />
Refer working.jpg snapshot
Browser IE8 Content Mode:IE8
<add name="X-UA-Compatible" value="IE=8" />
Refer working.jpg snapshot
Protected
Sub
RadGrid1_ItemCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
RadGrid1.UpdateCommand
Dim
argument
As
Telerik.Web.UI.GridBatchEditingEventArgument = TryCast(e.CommandArgument, Telerik.Web.UI.GridBatchEditingEventArgument)
Dim
oldValues
As
Hashtable = argument.OldValues
Dim
newValues
As
Hashtable = argument.NewValues
Hi,
I would like to insert an image and text from the code behind once user has uploaded a photo with ability to re-position both (inserted image and text).
Currently I have followed this Demo to achieve uploaded image and showing into rad image editor correctly but same time i would like to insert an overlay image (e.g. water mark/company logo) and some text before showing it into rad image editor from the code behind (or may be from the client side - if possible).
Also both (inserted image and text) should be allowed to re-position once it is shown in rad image editor.
Any help would be really appreciated.
Regards,
Chintan
Hello,
we generated DockZones and Docks dynamically in the Code Behind (Page_Init):
RadDock radDock = new RadDock()
{
ID = "dock_" + dock.Id,
ClientIDMode = ClientIDMode.Static,
UniqueName = dock.Id,
DockMode = DockMode.Docked,
BorderWidth = new Unit(0),
EnableRoundedCorners = true,
DefaultCommands = DefaultCommands.ExpandCollapse,
CommandsAutoPostBack = true,
};
dockZoneControl.Controls.Add(radDock);
Our Problem is, that nothing happend by clicking the Collapse-Button.
I hope someone can help me.
Hi,
Can you clarify if/when support for this framework version has ended? The page http://www.telerik.com/aspnet-ajax/tech-sheets/net-support says its in Limited support yet the description of support policy suggests that it should be in Extended or not supported at all.
thanks
I encouter a strange behavior when I try to de-duplicate a grid with this code:
Protected Sub dtgProducts_ItemCreated(sender As Object, e As GridItemEventArgs)
If (TypeOf (e.Item) Is GridDataItem) Then
Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
Response.Write(ProductMem & "-" & item.GetDataKeyValue("ProductCode") & "<
br
>")
If item.GetDataKeyValue("ProductCode") = ProductMem Then 'ontdubbelen voor de zoekfunctie
item.Display = False
End If
ProductMem = item.GetDataKeyValue("ProductCode")
End If
End Sub
With four data items with ProductCode 106901AS404, the output is:
106901AS404-106901AS404
106901AS404-106901AS404
106901AS404-106901AS404
106901AS404-106901AS404
So how could ProductMem already be set on '106901AS404' in the first loop when no preceding item exists?
Please reply soonest, this is an urgent one...
Thanks,
Marc