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

Hi,

I'm using 2015.01.401 of your controls.

I'm trying to do a template column and your demo at http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/templates/defaultvb.aspx?show-source=true

has several calls in the pivotgrid templates, to GetDataItem()

However, that doesn't appear to be a built-in method and you don't define that in the page or code-behind.

Where is it?

Thanks,

Brent

Angel Petrov
Telerik team
 answered on 08 Sep 2015
2 answers
105 views

Hi

 I am loading radhtml charts on the top of the existing charts using "OnClientSeriesClicked" 

I have set x Axis label rotation angel for the already loaded charts, during loading of the new chart using client seriers clicked  event the already loaded charts get animated and it looses it X-Axis Label rotation and Y-Axis max value.

 Can someone help me in fixing  this issue.

Thanks in Advance and Regards
Khadeer

Danail Vasilev
Telerik team
 answered on 08 Sep 2015
1 answer
230 views

Hi, 

Currently we're using RadGrid in conjunction with the Scheduler as an "Event Picker" so the user can drag and drop onto the schedule. 

The problem I'm facing is with the length of these events in the RadGrid. We're using Bootstrap for our responsive design framework.

 Here is our RadGrid

<div class="col-sm-7 col-md-5 col-lg-4 hidden-print" id="event-types-list-container">
            <div id="event-types-list">
                <telerik:RadGrid runat="server" ID="EventTypesRadGrid"
                    GridLines="None"
                    AutoGenerateColumns="False"
                    AllowAutomaticInserts="True" AllowAutomaticUpdates="true"
                    ShowFooter="false" AllowScroll="true" AllowSorting="false"
                    onitemdatabound="EventTypesRadGrid_ItemDataBound">
                    <clientsettings allowrowsdragdrop="True">
                        <Selecting AllowRowSelect="True" />
                        <ClientEvents OnRowDropping="Sch_AppointmentDropped" />
                    </clientsettings>                   
                    <mastertableview datakeynames="ScheduleEventTypeID" insertitemdisplay="Bottom" editmode="InPlace" ClientDataKeyNames="ScheduleEventTypeID">
                        <SortExpressions>
                            <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                        </SortExpressions>
                        <Columns>
                            <telerik:GridTemplateColumn DataField="Subject" HeaderText="Event Types">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="NameLabel" Text='<%# Bind("Name") %>' CssClass="schedule-appointment-title events-container-appointment"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="draggable" />
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </mastertableview>
                </telerik:RadGrid>
            </div>
          
        </div>

 
See RadGrid-1.jpg attachment.

 

The problem is the RadGrid is adding an inline style to itself of 390px (the width of the longest "event"). I've tried to override the styles with inline width: 170px for testing but to no success. 

Is there a way to make the RadGrid obey the width of its parent and wrap the text of the "events" / rows

 

Konstantin Dikov
Telerik team
 answered on 08 Sep 2015
4 answers
500 views
Dear Telerik,

I am using RadGrid Prometheus to export a report to PDF. One of my data test data elements contains lots of special characters to make sure the application handles that data correctly. Here is that data item:

Dev /Item\3!@#$%^&amp;*(){}[];:'",<.>?/~`

It shows fine in the grid, but on export to PDF, I get this error:

Error Description: Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.

Parse error:

Name cannot begin with the '.' character, hexadecimal value 0x2E. Line 1230, position 44.



Do I have to manually trap and convert these somehow to make them work?

Thanks,

Don
Eyup
Telerik team
 answered on 08 Sep 2015
4 answers
216 views

Hello. Could you help me, please?

I don't see DefaultValue annotations for elements of interface.

As example I see "DatePopupButtonToolTip" instead of the annotation [DefaultValue("Open the calendar popup.")]

public class DateTimePicker : RadDateTimePicker
{
    private DateTimePicker.BDDatePickingCalendar _calendar;
    private DateTimePicker.BDRadDateInput _dateInput;
 
    public override RadCalendar Calendar
    {
        get
        {
            if (_calendar == null)
            {
                _calendar = new DateTimePicker.BDDatePickingCalendar();
            }
            return _calendar;
        }
    }
 
    public override RadDateInput DateInput
    {
        get
        {
            if (_dateInput == null)
            {
                _dateInput = new DateTimePicker.BDRadDateInput();
            }
            return _dateInput;
        }
    }
 
    public override DateTime? SelectedDate
    {
        get
        {
            return DateInput.SelectedDate;
        }
        set
        {
            base.SelectedDate = value;
            DateInput.SelectedDate = value;
        }
    }
 
    private class BDRadDateInput : RadDateInput
    {
        private string GetClientControlType()
        {
            Attribute clientScriptResource = TypeDescriptor.GetAttributes(this)[typeof(ClientScriptResourceAttribute)];
            return ((ClientScriptResourceAttribute)clientScriptResource).ComponentType;
        }
 
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            var descriptor = new DateTimePicker.BDControlScriptDescriptor(GetClientControlType(), ClientID);
            ((IControl)this).DescribeComponent(descriptor);
            return new List<ScriptDescriptor>(new ScriptDescriptor[] { descriptor });
        }
    }
 
    private class BDDatePickingCalendar : DatePickingCalendar
    {
        private string GetClientControlType()
        {
            Attribute clientScriptResource = TypeDescriptor.GetAttributes(this)[typeof(ClientScriptResourceAttribute)];
            return ((ClientScriptResourceAttribute)clientScriptResource).ComponentType;
        }
 
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            var descriptor = new DateTimePicker.BDControlScriptDescriptor(GetClientControlType(), ClientID);
            ((IControl)this).DescribeComponent(descriptor);
            return new List<ScriptDescriptor>(new ScriptDescriptor[] { descriptor });
        }
    }
 
    private class BDControlScriptDescriptor : ScriptControlDescriptor, IScriptDescriptor
    {
        public BDControlScriptDescriptor(string type, string elementID)
            : base(type, elementID)
        {
        }
 
        protected override string GetScript()
        {
            return base.GetScript().Replace(@" ", " ");
        }
    }
 
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        EnableAjaxSkinRendering = true;
        Calendar.EnableAjaxSkinRendering = true;
        DateInput.EnableAjaxSkinRendering = true;
    }
} 
Konstantin Dikov
Telerik team
 answered on 07 Sep 2015
1 answer
132 views
I'm using Telerik.Web.UI.RadTreeView, version 2013.1.220.45. My application is a .NET 4.5 running on Windows Server 2012, IIS 8.0.
Currently I'm seeing the server's IIS memory increases every time the page loads (I hit Refresh). It's not happening when I remove the RadTreeView control. How can I make sure the control doesn't build-up the server's memory on each load? Or is there any memory leak issues that I should be concerned about? 

Thanks in advance.
Nencho
Telerik team
 answered on 07 Sep 2015
3 answers
543 views

I have the following problem with a Telerik RadDropDownList:
Markup:

 

<asp:UpdatePanel ID="updatepanelInput" runat="server" UpdateMode="Conditional">
   <ContentTemplate>
      <asp:TextBox ID="txtInput" runat="server" ClientIDMode="Static" />
      <asp:Button ID="btnSearch" OnClick="btnDoSearch_Click" runat="server" ClientIDMode="Static" />
      <telerik:RadDropDownList ID="ddlResults" runat="server" ClientIDMode="Static" DropDownWidth="70%" AutoPostBack="true" OnSelectedIndexChanged="ddlResults_SelectedIndexChanged"/>
      <telerik:RadDropDownList ID="ddlHistoryDates" runat="server" ClientIDMode="Static" AutoPostBack="true" OnSelectedIndexChanged="ddlHistoryDates_SelectedIndexChanged" />
   </ContentTemplate>
   <Triggers>
      <asp:AsyncPostBackTrigger ControlID="ddlResults" EventName="DataBound" />
   </Triggers>
</asp:UpdatePanel>

Code behind:
protected void btnDoSearch_Click(object sender, EventArgs e)
{
     AsynchronousQueryExecutor.Call(dataservice.getQuickSearch(currentLan, txtInput.Text, (int)SearchOptions.IncludeInactive), QuickSearchLoaded, LoadFailed); //on query success 'QuickSearchLoaded' will be executed
}
 
public void QuickSearchLoaded(List<spData4_QuickSearch_NomenBaseResult> result)
{
    ddlResults.DataSource = result;
    ddlResults.DataValueField = "id";
    ddlResults.DataTextField = "description";
    ddlResults.DataBind();
 
    AsynchronousQueryExecutor.Call(dataservice.getHistoryDates(result.FirstOrDefault().id), HistoryDatesLoaded, LoadFailed); //on query success 'HistoryDatesLoaded' is executed
}
public void HistoryDatesLoaded(List<spData4_Historiek_GetHistoriek_BedragenResult> result)
{
    ddlHistoryDates.DataSource = result;
    ddlHistoryDates.DataValueField = "DateHistory";
    ddlHistoryDates.DataTextField = "Item";
    ddlHistoryDates.DataBind();
}

So basically when btnSearch is clicked a query result should fill ddlResults and based on this result a new query is executed and returning a result which should be filled in ddlHistoryDates. Both query are executed successfully, but only ddlResults is showing data. ddlHistoryDates stays empty.
Calling updatePanelInput.Update() after ddlHistoryDates.DataBind() is giving me the following error:
the update method can only be called on updatepanel with id before render
Anyone who knows what i'm doing wrong?

 

Ivan Danchev
Telerik team
 answered on 07 Sep 2015
2 answers
171 views

 Hey guys,

 I'm using the radasyncupload control to import an excel sheet in my application. 

 However whenever I try to query this excel file I get an OleDBException with the following message:

"The Microsoft Access database engine could not find the object 'Sheet1$'. Make sure the object exists....."

 

I did make sure there's actually a "Sheet1" in the excel file before uploading. Also when I navigate through file explorer to the uploads folder and try to open the uploaded excel file I get a corrupted file error.

I've attached a sample project with an upload page and 2 buttons. 

1. The upload button queries the excel file uploaded through the radasyncupload control

2. The query button queries an excel file already part of the project. Querying this file does not give me any exceptions.

 

Any idea why the file uploaded with radasyncupload gives me this exception?

 

Had to upload the project elsewhere due to attachment-size limits:

http://we.tl/gcko7it2HH​

Raoul
Top achievements
Rank 1
 answered on 07 Sep 2015
1 answer
183 views

Hi!

I'm using the RadWizard in a popupwindow. The steps have different content which results in different heights. The exact size cannot be determined during build as this varies.

How can I remove the height attribute in CSS for rwzContent as this setting appears to be the culprit in a very ugly display of the 'higher' step.

The first wizard step is quite small (see attachment step1.png). The resulting 2nd step therefore is just as small (see attachment step2-current.png). If I remove during debugging the height attribute from .rwzContent (current value 52px) then the steps are nicely displayed (see attachment step2-expected.png)

 

Magdalena
Telerik team
 answered on 07 Sep 2015
1 answer
150 views

Hi, I'm attempting to remove all built-in Telerik skins and CSS.  I've set all RadTextBox controls to have the EnableEmbeddedSkins and EnableEmbeddedBaseStylesheet attributes to FALSE. I'm finding that in order for the two attributes mentioned above to function properly ALL Telerik controls on the page must have the same attributes set.  When I set all controls on the page with these values everything looks great. If I have any control on the page not set with those attributes then all of the controls get the skins and style sheets added even though I've set those two attributes.

I need to have my RadTextBox controls set to have no added skins or style sheets added but have my RadDateInput controls set to have the added skins and stylesheets. Is this how these attributes work or is there something else interfering with these attributes?

 

Thanks

 

 â€‹

Konstantin Dikov
Telerik team
 answered on 07 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?