Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
65 views
If I download the zip file directly from the Style Builder application, then upload it straight into the Skin Assembly application, it works fine, but if I unzip the file and rezip it without changing anything, Skin Assembly will go to the "Server Error" page.
Danny
Top achievements
Rank 1
 answered on 27 May 2015
2 answers
222 views

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.

Bin
Top achievements
Rank 1
 answered on 27 May 2015
1 answer
44 views

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

Ivan Danchev
Telerik team
 answered on 27 May 2015
8 answers
800 views
Hi,
In reading the documentation here:

http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html

I see this:
 CautionWhen setting the EditMode to Batch multi-row editing is not supported as only one editor is initialized for a given column(for performance purposes).

This caution would seem to defeat the purpose of batch (Excel-like) editing.

I'm trying to find a way to save the new values for all rows and all cells that have the red triangle on them as the result of batch editing. As it is now, I can only retrieve the values from the cell that is currently having an edit made. 

Here is the start of my code. Perhaps it's not firing on the proper event.

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

Thanks in advance.
Supachai
Top achievements
Rank 1
 answered on 27 May 2015
1 answer
572 views

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

 

 

Vessy
Telerik team
 answered on 27 May 2015
6 answers
159 views
Hello,

I'm working on a project with controls that are updated by Ajax.

The project requirement is that the user may cancel a running request by clicking a button, and also fire the cancel event to the server.

How can I do this?

Thanks,
Daniel.
Brett
Top achievements
Rank 1
 answered on 27 May 2015
7 answers
554 views
Is there any reason you can't do an empty field alias in a group by expression? This seems like a very common thing to do as the field name clutters up the group by caption. Is there any clean way to do this? Also how do i put an alias on the actual field name that shows up in the group by header. I tried adding it after the field name as you do for the first field in the expression, but this did not seem to have any effect.

Thanks!
Levi
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 27 May 2015
2 answers
95 views

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.

 

 

 

 

Roxane
Top achievements
Rank 1
 answered on 27 May 2015
2 answers
144 views

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

avner
Top achievements
Rank 1
 answered on 27 May 2015
2 answers
73 views

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

Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 27 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?