Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
163 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
148 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
111 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
340 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
251 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
7 answers
348 views
This is a two part problem, with the interaction between RadGrid and RadEditor.

I am using (Q1) RadEditor inside a RadGrid.  I have encountered a bit of a problem.  When the user enters newlines within the editor, it renders them as <BR> instead of the proper <BR />.  I generally wouldn't care.  Unfortunatly, later when I do a call to RadGrid->ExportToPdf() I get the following exception:

Invalid XHTML. RadGrid has to render correct XHTML in order to export to PDF.
Parse error:
The 'br' start tag on line 688 does not match the end tag of 'div'. Line 688, position 268.
at line:
<span id="ctl00_BodyPlaceHolder_RadGrid1_ctl00_ctl04_Label2">In lists granted to other people, you currently can't see the thumbnails without permission.<div><br><div>Add a check in file loader for ListPermission exception.</div></div></span>


If you edit the Grid item to not contain any newlines it works correctly.  Add a new return in the editor and export will break again.

So, I either need RadEditor to render properly formatted HTML, or I need Rad Grid to be less strict in its HTML parsing.  Personally, I actually view this as a bug in both products as RadEditor should encode newlines as <BR /> instead of <BR> and RadGrid's export to PDF should be able to handle this situation.


Is there a workaround?
Abhijit
Top achievements
Rank 1
 answered on 24 Oct 2017
0 answers
112 views

How do I bind a datasource to a Range Column Chart, From...  To.. all examples are hard coded.

 

thanks

 

jeff

Jeff
Top achievements
Rank 1
 asked on 24 Oct 2017
0 answers
102 views

You want to plot a graph that shows the level of calories lost to heart-beats but you only start losing calories once your heart-beat is at a certain point.

I'm struggling to find a way to allow my first marker to have a vertical line straight up from zero as seen in the excel graph.

To be honest I've given up but...you never know with the community...maybe there is a solution!

 

 

Missing User
 asked on 24 Oct 2017
4 answers
373 views
Repeater InterestsRepeater = e.Item.FindControl("rptInterests") as Repeater; 
if (InterestsRepeater != null) 
{ 
    InterestsRepeater.DataSource = Bazaar.Web.Model.Business.Interest.GetByMemberId(Convert.ToInt32(RadGridMembers.Columns.FindByUniqueName("Id"))); 
    InterestsRepeater.DataBind(); 
} 

<telerik:GridTemplateColumn DataField="interests" UniqueName="interests" HeaderText="Intressen"> 
   <ItemTemplate> 
      <%#DataBinder.Eval(Container.DataItem, "interests")%> 
      <asp:Repeater ID="rptInterests" runat="server"> 
            <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "Name")%></ItemTemplate> 
      </asp:Repeater> 
   </ItemTemplate> 
</telerik:GridTemplateColumn> 

The InterestsRepeater is allways null in the method ItemDataBound, I've tried to find de repeater with a Recursive method but with no luck, Is there somehing I've missed! I've tried to solve this for quite a time now so im out of ideas is there someone that can't see what im doing wrong or what Im missing to do?

Tanks for all replies!


<telerik:GridTemplateColumn DataField="interests" UniqueName="interests" HeaderText="Intressen"> 
   <ItemTemplate> 
      <%#DataBinder.Eval(Container.DataItem, "interests")%> 
      <asp:Repeater ID="rptInterests" runat="server"> 
            <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "Name")%></ItemTemplate> 
      </asp:Repeater> 
   </ItemTemplate> 
</telerik:GridTemplateColumn> 

oeub
Top achievements
Rank 1
 answered on 24 Oct 2017
5 answers
629 views

We have a multiple radgrid on one page. The problem is on the succeeding radgrid when filter button is clicked the context menu is out of position and display way on top of the page. I've attached a screenshot. Would anyone have an idea why is this happening?

Thanks,

Francis

Michele
Top achievements
Rank 2
 answered on 24 Oct 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?