Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
46 views
I have ImageEditor but all icons not working I can't fix the problem I have searched and can't find any solution. 
mrwell
Top achievements
Rank 1
 asked on 26 Oct 2017
4 answers
197 views
Hello,

   I am sure you people will help regarding export to word from RadEditor control. I can't export the contents of RadEditor to word file.

This create problem to clients so they know that this is limitation of this control (RadEditor).

 Please help as soon as possible.

Thanks & Regards

Jiten Mutum
kalpa
Top achievements
Rank 1
 answered on 26 Oct 2017
2 answers
315 views
I'm testing on my workstation over a page with RadGrid, and keep getting error due to the grid.get_masterTableView() returns null.

however, the same codes deployed on many other environment has no such issues, I can access the same page without problem.

only if I host the web app on my dev machine and testing it, I have this problem.

I chked and compare the Telerik.Web.UI*.dll , they are same as the other environment.
Telerik.Web.UI.dll , Telerik.Web.UI.Skin.dll
both ver 2011.3.1305.40

what other dependency or setting may cause this difference on my machine?
DownTown
Top achievements
Rank 1
 answered on 26 Oct 2017
14 answers
708 views
i wonder, if it is possible to set shorter time slots like 15 min in RadScheduler?
Thanks

Hevin
Top achievements
Rank 1
 answered on 26 Oct 2017
4 answers
496 views

Hi,

How can i add dynamic templated items to ImageGallery?

I define a template:

 

class ImageGalleryContentTemplate : ITemplate
{
    public String BackgroundImage { get; set; }
    public String HTMLTemplate { get; set; }
 
    public void InstantiateIn(Control container)
    {
        String strC = "";
        if (BackgroundImage != "")
            strC = String.Format("<div style=\"background-image: url({0})\">{1}</div>", BackgroundImage, HTMLTemplate);
        else
            strC = HTMLTemplate;
        container.Controls.Add(new LiteralControl(strC));
    }
}

I tried to use it following way:

ImageGalleryTemplateItem igti = new ImageGalleryTemplateItem();
ImageGalleryContentTemplate template = new ImageGalleryContentTemplate();
template.BackgroundImage = strBigImgUrl;
template.HTMLTemplate = strTemplate;
template.InstantiateIn(igti);

 

 

template.InstantiateIn doesn't accept ImageGalleryTemplateItem and if i use InstantiateIn(ImageGalleryTemplateItem container) instead of InstantiateIn(Control container), i don't use container.Controls.Add(...), because ImageGalleryTemplateItem hasn't .Controls() property.

if I use igti.ContentTemplate = template instead of template.InstantiateIn(igti) project running without errors, but other slides than first not showing.

Please look at this page: http://v2.gom.com.tr/anasayfa

Just below the menu;

- First slider done with RadRotator. Customer wants selector dots and seamless animation.

- Second slider with RadImageGallery, which has this problem (running with igti.ContentTemplate = template).

- Third slider with RadImageGallery, but has only images and working perfectly. But customer wants texts and link button.

How can i add dynamic templated items to ImageGallery OR how to handle it with RadRotator?

rama
Top achievements
Rank 1
 answered on 25 Oct 2017
3 answers
129 views
Has anyone gotten the Large File Upload demo to work as a standalone demo in IIS?  The Demo isolation steps listed with the Large File Upload demo are generic and don't all apply specifically to the Large File Upload demo.

When I open the site I get the following error. There is no mention of the "MasterPage.master" file in the Demo isolation steps. Please advise:


Server Error in '/' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The file '/MasterPage.master' does not exist.

Source Error:

Line 1: <%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" AutoEventWireup="true" Inherits="AsyncUpload.Examples.LargeFileUploads.DefaultCS"
Line 2: MasterPageFile="~/MasterPage.master" %>
Line 3:
Source File: /DefaultCS.aspx Line: 1

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
Vessy
Telerik team
 answered on 25 Oct 2017
1 answer
110 views

the Server Template option in the examples provided for TabStrip do not fill in any of the tab views - instead put in a message that it was blocked by enhanced security

the machine I am working on is a Windows 10 from bought this summer (version 1703?)

 

Rumen
Telerik team
 answered on 25 Oct 2017
1 answer
74 views

Hi,

I have a Combobox that uses a itemtemplate that is bound to a class object and OnSelectedIndexChanged I need to get the dataitem of that item to get the class object but cant seem to get this to work. Any suggestions? 

 

<telerik:RadComboBox runat="server" ID="cmbOptions" AutoPostBack="true" EmptyMessage="Please select..." OnSelectedIndexChanged="cmbOptions_SelectedIndexChanged">
                                        <ItemTemplate>
                                            <img />
                                            <%#Eval("Text") %>
                                        </ItemTemplate>
                                    </telerik:RadComboBox>

 

private webService.DetailedPart pa;s
private webService.SessUser su;
   webService.SrvCoreClient service;

  

    protected void Page_Load(object sender, EventArgs e)
    {
        su = Common.getSession(Session);
        service = new webService.SrvCoreClient();
 
        pa = service.GetPart(su.id, partId);
 
        if (pa.GroupedParts != null)
        {
            cmbOptions.EmptyMessage = pa.GroupedParts.Header;
            cmbOptions.DataSource = pa.GroupedParts.GroupedParts;
            cmbOptions.DataBind();
        }
    }
 
protected void cmbOptions_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        //How do I get the dataitem of the selected index??
    }

 

 

 

Eyup
Telerik team
 answered on 25 Oct 2017
1 answer
288 views

Hi,

I have embed the spreadsheet for MVC in my mvc application.I am loading data from database into a dataset and I want to bind the dataset to my spreadsheet. I am not using Entity Framework as my database and column retrieved dynamic and changes each time. Hence i wont be able to create a model for my values. 

Below is my code for loading data to dataset

public ActionResult Products_Load([DataSourceRequest]DataSourceRequest request)
        {
            DataSet ds = HandlerFunctions.GetDynamicSheetData(1, 2);
            var das = ds.Tables[0].AsEnumerable().AsQueryable();
            DataSourceResult result = das.ToDataSourceResult(request);
            return Json(result);
        }

 

I am struck on how to map this dataset to my spreadsheet in the cshtml using @(Html.Kendo().Spreadsheet()

Can anyone help me in how to bind the dataset to spreadsheet control in razor view?

 

Veselin Tsvetanov
Telerik team
 answered on 25 Oct 2017
0 answers
171 views

Following is the aspx code :
 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" IsSticky="True" EnableSkinTransparency="true" Transparency="40" >
    </telerik:RadAjaxLoadingPanel>

    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="TestDiv"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Button3">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="abcd"/>
                    <telerik:AjaxUpdatedControl ControlID="TestDiv" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <asp:Button ID="Button3" runat="server"  Text="Make Visible" OnClick="Button3_Click" />
    <asp:Button ID="Button4" runat="server"  Text="Make Invisible" OnClick="Button4_Click" />
        <div id="abcd" runat="server" class="col-md-16 text-align-right top-margin-10" >
            <div class="col-md-7">
                &nbsp;
            </div>
            <div class="col-md-9">
                <div class="col-md-5" runat="server" style="display:block; text-align:center; ">
                        <fieldset class="border-for-div">
                            <legend class="caption-for-div">&nbsp;Video streaming&nbsp;</legend>                
                            <video id="video" autoplay="autoplay" width="200" height="120" style="border:solid; border-width:1px;" runat="server"></video>
                        </fieldset>
                </div>
                <div class="col-md-5" runat="server" style="display:block; text-align:center; ">
                        <fieldset class="border-for-div">
                            <legend class="caption-for-div">&nbsp;Take Photo&nbsp;</legend>                
                            <canvas width='160' height='120' style="border:solid; border-width:2px;" > </canvas>
                        </fieldset>
                </div>
                <div class="col-md-5">
                    <img id="Img1" runat="server" style="border:solid; border-width:5px;" width="160" height="120" visible="false" />
                </div>
            </div>
            <br />
            <input type="button" value="start capture" onclick="startCapture()" />
            <input type="button" value="take snapshot" onclick="takePhoto()" />
            <%--<input type="button" value="stop capture" onclick="stopCapture()" />--%>
            <asp:TextBox ID="TextBox1" runat="server" ClientIDMode="Static"></asp:TextBox>
        </div>
    
    <div id="TestDiv" class="col-md-16 text-align-right top-margin-10" runat="server" >
        <asp:textbox ID="textbox5" runat="server" Text="textbox5"></asp:textbox>
    </div>
    <script type="text/javascript">
        var localMediaStream = null;
        var video = document.querySelector('video'); 
        var canvas = document.querySelector('canvas');
 
        function takePhoto() {
            if (localMediaStream) {
                var ctx = canvas.getContext('2d');
                ctx.drawImage(video, 0, 0, 160, 120);
                //document.querySelector('img').src = canvas.toDataURL('image/jpeg');
                var base64 = canvas.toDataURL('image/jpeg');
                document.getElementById('TextBox1').value = base64;
            }
        }
 
        navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;
        window.URL = window.URL || window.webkitURL;
 
        function startCapture() {
            navigator.getUserMedia({ video: true }, function (stream) {
                video.src = window.URL.createObjectURL(stream);
                localMediaStream = stream;
            }, function (e) {
                console.log(e);
            });
        }
 
        function stopCapture() {
            video.pause();
            localMediaStream.stop();
        }
    </script>


Following is C# code :
protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                abcd.Attributes["style"] = "Display:Normal;"; //None
                TestDiv.Attributes["style"] = "Display:None;"; //Normal
            }
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            abcd.Attributes["style"] = "Display:Normal;"; //None
            video.Attributes["style"] = "Display:Normal;"; //None
            TestDiv.Attributes["style"] = "Display:None;"; //Normal

        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            abcd.Attributes["style"] = "Display:None;"; //None
            video.Attributes["style"] = "Display:None;"; //None
            TestDiv.Attributes["style"] = "Display:Normal;"; //Normal

        }
The problem is as follows :

When the page is loaded and I click on Start Capture the video streaming starts. Click on Take Snapshot also puts an image on the canvas.
Now click on the button Make Invisible. This will hide the div in which the video and captured image are displayed and show the div with one textbox.
Now click on the button Make Visible. This will show the div in which the video and captured image are to be displayed and hide the div with one textbox.
The problem starts from here. Now if I press Start Capture button the web camera is started. but the video streaming is not visible.
I tried disabling the compression in my web.config file but still the problem is not resolved.
If I stop using radajaxmanager then every thing works fine.
Can any body help me in resolving this ?

Thanks
Milind Shevade

PS : This was earlier posted under General discussion(Link - https://www.telerik.com/forums/how-to-use-web-cam-for-streaming-video-with-radajaxmanager). But I feel I should have posted it here. So posting it again. Sorry for the inconvinence

 

Milind
Top achievements
Rank 1
 asked on 25 Oct 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?