Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
38 views

I'm having an issue where on some of the clients when they type in the RadAutoComplete the last character they type isn't registering. I'll attach screen shots from two machines with the same search term and different results. Has anybody else reported this behavior? I'm just loading the search list in code behind it is really straight forward.

<telerik:radautocompletebox runat="server" Style="width: 200px;" id="acbInsured" MaxResultCount="20" DataTextField="CompanyName"     DataValueField="ClientKey">
</telerik:radautocompletebox>

 public void SetInsuredSearchDatasource(IEnumerable<Contact> searchResults)
        {
            acbInsured.DataSource = searchResults.ToArray();
            acbInsured.DataBind();
        }

 

public override void OnLoad()
        {
            SetInsuredSearchDatasource(_reportService.GetInsuredNameSearchResults());

...

 

I'm at a bit of a loss as to why it happens on some but not others (Same browser).

 

 

 

 

 

 

Sean
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
83 views
Hello there, I manually added Telerik winform controls in VS2015. I can use all the controls when I add and then when I close vs all telerik controls disappear from toolbox and again I have to add manually all the controls when I starts to work next time. Help needed ASAP.

Thank You!
sunil
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
202 views

Hello,

i use a split button, which has a RadContextMenu attached to it. Inside the RadContextMenu, there is one RadMenuItem which contains an ItemTemplate with multiple RadCheckBoxes.

How is it possible that the RadCheckBoxes inside the ContentTemplate uses the full available width? So there should be no padding/margin in the ContextMenu and the Checkbox stretches horizontally to use all of the existing space. I uploaded an example of how it looks like right now in the attachments of this post.

 

 

Code:

<telerik:RadButton EnableSplitButton="true" ID="btn4" AutoPostBack="true"runat="server" Text="Example Button Text" OnClientClicked="OnClickedRadButton" CommandName="cmdBt4"   OnClick="btn4_Click" CausesValidation="true">
</telerik:RadButton>
<telerik:RadContextMenu id="rcmBtn4" runat="server">
   <Items>
      <telerik:RadMenuItem>
         <ItemTemplate>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb1" CausesValidation="false" Checked="true" Text="als Excel-Datei (.xlsx) exportieren" AutoPostBack="false" />
            </p>
            <p>
               <telerik:RadCheckBox runat="server" ID="rcb2" CausesValidation="false" Checked="true" Text="Checkbox Text 2" AutoPostBack="false" />
            </p>
         </ItemTemplate>
      </telerik:RadMenuItem>
   </Items>
</telerik:RadContextMenu>
Steffen
Top achievements
Rank 1
 answered on 27 Jul 2017
1 answer
347 views
I have a requirement to put multiple series into a chart. Each series should have a label & the item in the series should also have a label on the x-axis.
 I cannot find any samples that would help me with this and have been banging my head at it for the day.

 I've attached a sample of what our graph should look like. Any help on this would be great!


Thanks
Marin Bratanov
Telerik team
 answered on 27 Jul 2017
2 answers
92 views
I have the following grid defined, but the insert dialog is showing the title twice.  How do I suppress the second iteration of this (see picture)?
 
<telerik:RadGrid
    AllowCustomPaging="true"
    AllowFilteringByColumn="true"
    AllowPaging="true"
    AllowSorting="true"
    AutoGenerateEditColumn="true"
    CellSpacing="-1"
    GridLines="Both"
    GroupPanelPosition="Top"
    Height="690px"
    ID="AgenciesGrid"
    OnDeleteCommand="AgenciesGrid_OnDeleteCommand"
    OnItemCreated="AgenciesGrid_OnItemCreated"
    OnNeedDataSource="AgenciesGrid_NeedDataSource"
    OnUpdateCommand="AgenciesGrid_OnUpdateCommand"
    PageSize="20"
    runat="server"
    ShowFooter="true"
    ShowStatusBar="true">
    <GroupingSettings CaseSensitive="false"></GroupingSettings>
    <ClientSettings>
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <GroupPanel Text="Drag and drop header to order by column">
    </GroupPanel>
    <MasterTableView
        AllowCustomPaging="true"
        AllowFilteringByColumn="false"
        AllowSorting="true"
        AutoGenerateColumns="false"
        CommandItemDisplay="Top"
        DataKeyNames="AgencyId"
        EditMode="PopUp">
        <RowIndicatorColumn Visible="false">
        </RowIndicatorColumn>
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="editColumn">
                <HeaderStyle Width="40px" />
            </telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="AgencyId" ReadOnly="true" HeaderText="AgencyId" Display="false" UniqueName="AgencyId">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyName" HeaderText="Agency" UniqueName="AgencyName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyPhone" HeaderText="Phone" UniqueName="AgencyPhone">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AgencyContact" HeaderText="Contact" UniqueName="AgencyContact">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings InsertCaption="Add New Agency" CaptionFormatString="Edit Agency: {0}" CaptionDataField="AgencyId">
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

 

Leonardo
Top achievements
Rank 1
 answered on 26 Jul 2017
1 answer
167 views

Hey,

My problem is that I'm trying to create a RadTileList programmatically to populate an Intranet staff page.

We've developed a page in which users can choose an image of themselves, along with fill out the details we don't keep in Active Directory, and then we pull the photo, AD information and profile information and pop it into a staff page. Works beautifully, and the Telerik controls really improve the look and feel of it.

Then we wanted to make a series of image galleries for different teams, different job roles etc. We can pull the data for these groups no problem. Then the plan is that everyone gets their image put into a gallery, which we're going to use the RadToolTip functionality on to preview before they can open the page to learn all about the member of staff. Herein lies my problem, because I can't populate the RadTileList using the byte array (byte[]) images.

Below is an example of how I'm TRYING to code it. Unfortunately I have so much to do on this project and so little time to do it in that I really can't afford to be spending much longer trying to get this to work. Any chance you could provide a solution?

protected void LoadStaffList(DataTable staffList, Image notAvailable)
{
    var tileList = new RadTileList();
    var tileGroup = new TileGroup();
    var memoryStream = new MemoryStream();
    var image = Resources.photonotavailable;
    image.Save(memoryStream, ImageFormat.Png);
 
    foreach (DataRow row in staffList.Rows)
    {
        var imageTile = new RadImageTile();
        var userPhoto = row["UserPhoto"] != DBNull.Value ? row["UserPhoto"] : null;
        imageTile.DataItem = (byte[]) userPhoto ?? memoryStream.ToArray(); <-- YOU CAN'T DO THIS!!
        imageTile.Shape = TileShape.Square;
        tileGroup.Tiles.Add(imageTile);
    }
 
    tileList.Groups.Add(tileGroup);
    divTeamInformation.Controls.Add(tileList);
}

I'm assuming there's a way to use a RadBinaryImage or something else in place of the RadImageTile? Or some other way to set the data without writing the byte array to a temp file and then setting the temp file as the Image Source, because both of those would be incredibly annoying to have to do.

Any help you could provide would be massively appreciated. Apologies if it's a duplicate topic but I couldn't see one like it.

Thanks,

-Alexis

Marin Bratanov
Telerik team
 answered on 26 Jul 2017
1 answer
142 views

We have a custom application that creates a Telerik RadHtmlChart object from an external DLL method.

We also have a second custom application that uses MVC and Kendo components.

I understand that both RadHtmlChart and Kendo charts are using the same underlying server-side wrapper from the Kendo UI chart widgets.

My question is, how can I request that same external DLL using MVC/razor, and have it sent back to my view as a Kendo Chart? Is this possible? 

Vessy
Telerik team
 answered on 26 Jul 2017
1 answer
130 views

The filters properly clean the attached image when IE protected mode is OFF:

However if IE protected mode is ON, the alert runs. I have verified this in the DEMO editor as well.

 

 

Christopher
Top achievements
Rank 1
 answered on 26 Jul 2017
11 answers
381 views
Hi, I've downloaded Telerik UI for ASP.NET AJAX and interested in Gantt chart control (Telerik_UI_for_ASP.NET_AJAX_Setup_2014_2_724.zip). I was wondering how to change task color individually based on status (finished = green, on progress = blue, overdue = red). Is it possible with the current beta version? When is the final version will be released? Thank you.
Peter Milchev
Telerik team
 answered on 26 Jul 2017
6 answers
292 views

Hello, All

I have one issue in my current page , when i am working in RadGrid and I have created grid dynamically and try handle item command event by writing my code as below mention but not working
I want to create nested grid on clic

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="demotemp.aspx.cs" Inherits="HcareTemplate.demotemp" MasterPageFile="HTemplateMaster.Master" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
</asp:Content>
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
namespace HcareTemplate
{
    public partial class demotemp : System.Web.UI.Page
    {
        HcareTemplate.HcareTemplateService objService = new HcareTemplate.HcareTemplateService();
        DataSet datalist;
        public void DefineGridStructure()
        {
            RadGrid RadGrid1 = new RadGrid();
            RadGrid1.ItemCommand += new GridCommandEventHandler(RadGrid1_ItemCommand);
            RadGrid1.ID = "RadGrid1";
            datalist = objService.getSoapTemplateQuestions(1, 16);
            RadGrid1.DataSource = datalist;
            RadGrid1.MasterTableView.DataKeyNames = new string[] { "TemplateId" };
            RadGrid1.Skin = "Outlook";
            RadGrid1.Width = Unit.Percentage(30);
            RadGrid1.AllowPaging = true;
            RadGrid1.AutoGenerateColumns = false;
            RadGrid1.ClientSettings.Selecting.AllowRowSelect = true;
            //Add columns
            GridBoundColumn boundColumn;
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "TemplateId";
            boundColumn.HeaderText = "TemplateId";
            RadGrid1.MasterTableView.Columns.Add(boundColumn);
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "ProviderText";
            boundColumn.HeaderText = "ProviderText";
            RadGrid1.MasterTableView.Columns.Add(boundColumn);
            this.PlaceHolder1.Controls.Add(RadGrid1);
        }
 
        public void Page_Init(object sender, System.EventArgs e)
        {
            DefineGridStructure();
        }
 
        public void Page_Load(object sender, System.EventArgs e)
        {
            RadGrid grid = (RadGrid)PlaceHolder1.FindControl("RadGrid1");
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, grid);
 
        }
        public void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "RowClick")
            {
 
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test", "<script>alert('hi');</script>");
                GridEditableItem item = e.Item as GridEditableItem;
                int ParentId = Convert.ToInt32(item.GetDataKeyValue("TemplateId"));
                DataSet ds = objService.getTemplateProiderText(ParentId);
                
                datalist = objService.getSoapTemplateQuestions(1, ParentId);
                if (datalist.Tables[0].Rows.Count > 0)
                {
                    DefineGridStructure();
                }
            }
        }
    }
}

k on selected row of current grid

Swati
Top achievements
Rank 1
 answered on 26 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?