Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
298 views
Hi,

We are trying to use AJAX Editor inside MVC views. It works perfect, we tried adding the Editor in a partial view (following few forum post and samples) and the editor is not displayed right(we just get few dots and few text). Attached a screen shot. We are using the Script manager inside the partial view to make it to work, I am not sure whats going wrong. Even in the samples provided for demo in the site has the same script manager and the editor. Can some one please help to fix?

Thanks,
Akila.
Rajeshwar
Top achievements
Rank 1
 answered on 21 Oct 2015
1 answer
169 views

Hi,

 

I am trying to show a currency value in the tooltip for my bar chart.

I am using the below code in code-behind to set the format but the number isn't displayed as currency.

It used to work but I recently upgraded to the latest version of Telerik and it stopped working. Please let me know if there's anything that needs to be changed.

string template = "#=kendo.format(\\\'{0:c}\\\', dataItem.yValue)#";
string tooltipTemplate = "#= dataItem.xValue# (#=kendo.format(\\\'{0:C2}\\\', dataItem.yValue)#)";       
barSeries.LabelsAppearance.ClientTemplate = template;
barSeries.TooltipsAppearance.ClientTemplate = tooltipTemplate;
barSeries.LabelsAppearance.Position = Telerik.Web.UI.HtmlChart.BarColumnLabelsPosition.OutsideEnd;

Danail Vasilev
Telerik team
 answered on 21 Oct 2015
0 answers
94 views

Is there any solution how to send the RadEditor content as PDF attachment in Mail ?

 

Please provide the solution

 

 

Thanks

Sumeet
Top achievements
Rank 1
 asked on 21 Oct 2015
2 answers
256 views

Is there any way to get time&date and not only date in a DateTime column filter in RadGridView?

I am used to the RadDateTimePicker and there I get both values, date and time for selection. Sadly in the RadGrid there is no time icon and possibility to select a time.

So far I found a way to change the visible value in the textbox to contain the time also.

 

<telerik:GridDateTimeColumn DataField="DateStamp" HeaderText="MyTestColumn" FilterDateFormat="dd.MM.yyyy HH:mm" />

Thanks

Maria Ilieva
Telerik team
 answered on 21 Oct 2015
1 answer
100 views

Helo,

I have a problem because  the event selection changed is not fired,

aspx code:

    <form id="form1" runat="server">

         <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTileList1">
                <UpdatedControls>                    
                    <telerik:AjaxUpdatedControl ControlID="Button1"  />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
    <div>
        <div id="header">
        </div>
        <div id="content">
              <telerik:RadTileList runat="server" ID="RadTileList1" Width="100%" Height="500px" TileRows="3" SelectionMode="multiple" EnableDragAndDrop="true" CssClass="TileListStart"  AutoPostBack="True" OnSelectionChanged="RadTileList1_SelectionChanged1">
        </telerik:RadTileList>
        </div>
        <div id="footer">
            <asp:Button ID="Button1" runat="server" Text="Button"/>
        </div>    
    </div>
    </form>

 

and c# code:

 protected void Page_Init(object sender, EventArgs e)
        {

            PopulateTileList();

        }   
        private void PopulateTileList()
        {

            RadTileList1.Groups.Add(new TileGroup());

            RadTileList1.Groups[0].Tiles.Add(new RadTextTile() { Text = "1", BackColor = ColorTranslator.FromHtml("#e83737") });

            RadTileList1.Groups[0].Tiles.Add(new RadTextTile() { Text = "2", BackColor = ColorTranslator.FromHtml("#008de7"), Width = 300 });

            RadTileList1.Groups[0].Tiles.Add(new RadTextTile() { Text = "3", BackColor = ColorTranslator.FromHtml("#51ab2e") });

            RadTileList1.Groups[0].Tiles.Add(new RadTextTile() { Text = "4", BackColor = ColorTranslator.FromHtml("#f5c020") });

            RadTileList1.Groups.Add(new TileGroup());

            RadTileList1.Groups[1].Tiles.Add(new RadTextTile() { Text = "5", BackColor = ColorTranslator.FromHtml("#9b58b5") });

            RadTileList1.Groups[1].Tiles.Add(new RadTextTile() { Text = "6", BackColor = ColorTranslator.FromHtml("#91c930") });

            RadTileList1.Groups[1].Tiles.Add(new RadTextTile() { Text = "7", BackColor = ColorTranslator.FromHtml("#ee8310") });

            RadTileList1.Groups[1].Tiles.Add(new RadTextTile() { Text = "8", BackColor = ColorTranslator.FromHtml("#0058bc") });

           

        }
       
        protected void RadTileList1_SelectionChanged1(object sender, TileListDataEventArgs e)
        {
            List<RadBaseTile> selectedTiles = (sender as RadTileList).GetSelectedTiles();

            string selectionList = "";

            foreach (RadBaseTile tile in selectedTiles)
            {
                Button1.Text = selectedTiles.Count.ToString();

            }
        }

Can You help me resolve problem?

Best Regards

Robert Sadza

 ​

Robert Sadza
Top achievements
Rank 1
 answered on 21 Oct 2015
1 answer
117 views

I have simplified it to a ID field and a single XML field for testing. I tried RadUpload and AyncUpload in templates. Have tried gridattachmentcolumn. It will create records, allow me to select the file but it does not upload anything to the XML field/column in the table. So, I have started over and I will place the page here. Currently nothing in code behind.

If you can please help me to do this I would appreciate it. I am novice and taking courses, but already working for a company while attending school.

 

I already know that the SQLDatasource parameter type "Object" is wrong for XML. How to change that SqlDataSource insert and update parameter in code behind? Is that a good strategy? I have tried other types in the SQLDataSource control and have tried to figure out how to make parameters for the SQLDataSource control in code behind but no luck.

Ultimately, I would like to upload the small SVG files to the sql server table and view them within the Radgrid. I seem to have some luck using HTML Object tag in the <ItemTemplate> but cannot test it because I have yet to be able to upload one of the SVG files to the table.

I also had luck setting it up to upload images and view them in a different page. Just cannot figure out how to do this with svg files. 

 

Please help. Since I am learning, a very thorough explanation and example would be appreciated. I have had no luck searching the examples, documentation etc... available here and on searching Google. I have tried a lot of stuff and now pulling my hair out!

 

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="testing.aspx.cs" Inherits="testing" %><asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">     <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" GroupPanelPosition="Top" DataSourceID="SqlDataSource1">         <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1">             <Columns>                 <telerik:GridTemplateColumn DataField="SVGFile" HeaderText="SVGFile" SortExpression="SVGFile" UniqueName="SVGFile" FilterControlAltText="Filter SVGFile column">                     <EditItemTemplate>                         <asp:TextBox runat="server" ID="SVGFileTextBox" Text='<%# Bind("SVGFile") %>'></asp:TextBox>                     </EditItemTemplate>                     <ItemTemplate>                         <asp:Label runat="server" ID="SVGFileLabel" Text='<%# Eval("SVGFile") %>'></asp:Label>                     </ItemTemplate>                 </telerik:GridTemplateColumn
                <telerik:GridBoundColumn DataField="ID" ReadOnly="True" HeaderText="ID" SortExpression="ID" UniqueName="ID" DataType="System.Int32" FilterControlAltText="Filter ID column"></telerik:GridBoundColumn>             </Columns>         </MasterTableView>     </telerik:RadGrid>     <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString='<%$ ConnectionStrings:IGWiringConnectionString %>' DeleteCommand="DELETE FROM [TestSVG] WHERE [ID] = @ID" InsertCommand="INSERT INTO [TestSVG] ([SVGFile]) VALUES (@SVGFile)" SelectCommand="SELECT [SVGFile], [ID] FROM [TestSVG]" UpdateCommand="UPDATE [TestSVG] SET [SVGFile] = @SVGFile WHERE [ID] = @ID">         <DeleteParameters>             <asp:Parameter Name="ID" Type="Int32"></asp:Parameter>         </DeleteParameters>         <InsertParameters>             <asp:Parameter Name="SVGFile" Type="Object"></asp:Parameter>         </InsertParameters>         <UpdateParameters>             <asp:Parameter Name="SVGFile" Type="Object"></asp:Parameter>             <asp:Parameter Name="ID" Type="Int32"></asp:Parameter>         </UpdateParameters>     </asp:SqlDataSource></asp:Content><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"></asp:Content>
Viktor Tachev
Telerik team
 answered on 21 Oct 2015
3 answers
98 views
Hi There..
I have a pblm. My radGrid  has alignment issue. Some of the rows goes out Browser window. Please see the attached picture.
Pavlina
Telerik team
 answered on 21 Oct 2015
1 answer
143 views

I am using RadGrid control inside which I have paging combo box [Please refer to the attached image].

The issue is the blinking cursor inside combo box.I want the combo box as read only.Unable to find appropriate property for that.

Please help as issue is in high priority!!!

 

Thanks.

Eyup
Telerik team
 answered on 21 Oct 2015
7 answers
597 views

Hi I am having problems with a RadHtmlChart I am using within an Asp page. It is a scatter chart which the data is applied to in the code behind. This all works correctly and plots fine the problem I am having is with trying to set the Min Value on the Xaxis. As I am using date ranges to decrease the amounts of data the chart shows the minimum value on the Xaxis changes so I would like the chart to start at the minimum value + 5. If I set the minimum value for the Xaxis within the configuration wizard this works fine but isn't dynamic enough for what I need. So I am trying in the code behind using the below code:

PcrInfeasPlot.PlotArea.XAxis.MinValue = lowestValue - 5;

This assigns the value correctly as I have checked the value in the debugger but the chart never reflects this change. How would I go about changing the minimum value so that I can see more on the chart.

 

Regards,

 

Charlie

Danail Vasilev
Telerik team
 answered on 21 Oct 2015
3 answers
123 views
I am attempting to use the new ContextMenuID feature with no success.  Here is a simplified version of what I'm doing.

<tel:RadScheduler ID="RadScheduler1" runat="server"
    <TimeSlotContextMenus> 
        <tel:RadSchedulerContextMenu ID="TimeSlotMenu" runat="server" > 
            <Items> 
                <tel:RadMenuItem Text="Menu Item 1" Value="1" /> 
            </Items> 
        </tel:RadSchedulerContextMenu> 
    </TimeSlotContextMenus> 
    <AppointmentContextMenus> 
        <tel:RadSchedulerContextMenu ID="AppointmentMenu1" runat="server" > 
            <Items> 
                <tel:RadMenuItem Text="Menu Item 2" Value="2" /> 
            </Items> 
        </tel:RadSchedulerContextMenu>    
        <tel:RadSchedulerContextMenu ID="AppointmentMenu2" runat="server" > 
            <Items> 
                <tel:RadMenuItem Text="Menu Item 3" Value="3" /> 
            </Items> 
        </tel:RadSchedulerContextMenu>    
    </AppointmentContextMenus> 
</tel:RadScheduler> 
 
public class TestApt { 
    public int ID { getset; } 
    public string Description { getset; } 
    public DateTime StartTime { getset; } 
    public DateTime EndTime { getset; } 
 
protected void Page_Init(object sender, EventArgs e) { 
    RadScheduler1.DataKeyField = "ID"
    RadScheduler1.DataSubjectField = "Description"
    RadScheduler1.DataStartField = "StartTime"
    RadScheduler1.DataEndField = "EndTime"
    RadScheduler1.AppointmentDataBound += new AppointmentDataBoundEventHandler(RadScheduler1_AppointmentDataBound); 
 
void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e) { 
    if ((int)e.Appointment.ID == 1) { 
        e.Appointment.ContextMenuID = "AppointmentMenu1"
    } else if ((int)e.Appointment.ID == 2) { 
        e.Appointment.ContextMenuID = "AppointmentMenu2"
    } else { 
        e.Appointment.ContextMenuID = ""
    } 
 
protected void Page_Load(object sender, EventArgs e) { 
    if (!Page.IsPostBack) { 
        List<TestApt> apts = new List<TestApt>(); 
        apts.Add(new TestApt { ID = 1, Description = "Test1", StartTime = new DateTime(2009, 11, 9, 10, 0, 0), EndTime = new DateTime(2009, 11, 9, 11, 0, 0) }); 
        apts.Add(new TestApt { ID = 2, Description = "Test2", StartTime = new DateTime(2009, 11, 9, 11, 0, 0), EndTime = new DateTime(2009, 11, 9, 12, 0, 0) }); 
        apts.Add(new TestApt { ID = 3, Description = "Test3", StartTime = new DateTime(2009, 11, 9, 12, 0, 0), EndTime = new DateTime(2009, 11, 9, 13, 0, 0) }); 
 
        RadScheduler1.DataSource = apts; 
        RadScheduler1.DataBind(); 
    } 

There are a couple of things that don't work here.
#1 All appointments are using "AppointmentMenu1" as their context menu.
#2 By setting the ContextMenuID equal to empty string, I am still getting a context menu on appointment 3.  (if this is by design, how can I accomplish this?)

Thanks,

Sean
Olivier
Top achievements
Rank 2
 answered on 21 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?