Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
62 views

When using the OnClientPasteHtml event like link below :

https://www.telerik.com/forums/playing-and-upload-external-video

After insert video into editor , i set height and width in properties but video always display original size. In html design only show :

<video src="/Folder/041462.mp4" controls="controls" ></video>

How to set width and height of video using media manager properties, current properties not work .

Thanks,

 

 

Leo
Top achievements
Rank 1
 asked on 22 Jan 2018
0 answers
110 views

I am using a RadGrid where I want to change the cell color based on values in a particular column also I want to perform some task on click of a column header.

But non of the events are firing. 

Your help would be highly appreciated.

Thanks,

Vibhor

Vibhor
Top achievements
Rank 1
 asked on 22 Jan 2018
2 answers
107 views

RadComboBox of OnItemsRequested text="" 

When the mouse moves to the selection box, the error will pop up due to the empty value. will pop up error :The array can't be empty. Parameter name: bytes

The 2016.2.607.40 version is OK, and the later version has this error

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProFlowDirectionEdit.aspx.cs" Inherits="Healthway.XA.Web.UI.Pages.FlowDirection.ProFlowDirectionEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
          <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
        <div>
            <telerik:RadComboBox  ID="RadComboBoxProduct" runat="server" Height="200" Width="315" 
DropDownWidth="315"  Text="" HighlightTemplatedItems="true"
EnableLoadOnDemand="true" Filter="StartsWith" OnItemsRequested="rcbCustomer_ItemsRequested"
Skin="Office2010Silver">
<HeaderTemplate>
<table style="width: 275px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 175px;">
Product Name
</td>
<td style="width: 60px;">
Quantity
</td>
<td style="width: 40px;">
Price
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 275px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 175px;">
<%# DataBinder.Eval(Container, "Text")%>
</td>
<td style="width: 60px;">
<%# DataBinder.Eval(Container, "Attributes['CusCode']")%>
</td>
<td style="width: 40px;">
<%# DataBinder.Eval(Container, "Attributes['CusName']")%>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
        </div>

    </form>
</body>
</html>

 protected void rcbCustomer_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {

            string sqlSelectCommand = "SELECT [CusCode], [CusName] from [Customer] WHERE [CusName] LIKE @text + '%' ORDER BY [CusName]";

            SqlDataAdapter adapter = new SqlDataAdapter(sqlSelectCommand,
                ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
            adapter.SelectCommand.Parameters.AddWithValue("@text", e.Text);
            DataTable dataTable = new DataTable();
            adapter.Fill(dataTable);

            foreach (DataRow dataRow in dataTable.Rows)
            {
                RadComboBoxItem item = new RadComboBoxItem();

                item.Text = (string)dataRow["CusName"];
                item.Value = dataRow["CusCode"].ToString();



                //RadComboBoxProduct.Items.Add(item);

                item.DataBind();
            }
        }

ghd258 ghd258
Top achievements
Rank 1
 answered on 21 Jan 2018
0 answers
46 views

We have a cloud based software for dentists that we have developed using .net and runs on Azure and sql server.

We would like to enable our users access to some parts of the db (like appointments stored in sql server db) using an app.

We thought about using Xamarin.

We are new to the world of app development. Can someone steer us in the direction of being able to create an app which would be linked to our sql db and handle initially the appointments?

Thanks,

John

 

John
Top achievements
Rank 1
 asked on 21 Jan 2018
1 answer
72 views

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProFlowDirectionEdit.aspx.cs" Inherits="Healthway.XA.Web.UI.Pages.FlowDirection.ProFlowDirectionEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
          <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
        <div>
            <telerik:RadComboBox  ID="RadComboBoxProduct" runat="server" Height="200" Width="315" 
DropDownWidth="315"  Text="" HighlightTemplatedItems="true"
EnableLoadOnDemand="true" Filter="StartsWith" OnItemsRequested="rcbCustomer_ItemsRequested"
Skin="Office2010Silver">
<HeaderTemplate>
<table style="width: 275px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 175px;">
Product Name
</td>
<td style="width: 60px;">
Quantity
</td>
<td style="width: 40px;">
Price
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width: 275px" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 175px;">
<%# DataBinder.Eval(Container, "Text")%>
</td>
<td style="width: 60px;">
<%# DataBinder.Eval(Container, "Attributes['CusCode']")%>
</td>
<td style="width: 40px;">
<%# DataBinder.Eval(Container, "Attributes['CusName']")%>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
        </div>

    </form>
</body>
</html>

 

 protected void rcbCustomer_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
        {

            string sqlSelectCommand = "SELECT [CusCode], [CusName] from [Customer] WHERE [CusName] LIKE @text + '%' ORDER BY [CusName]";

            SqlDataAdapter adapter = new SqlDataAdapter(sqlSelectCommand,
                ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString);
            adapter.SelectCommand.Parameters.AddWithValue("@text", e.Text);
            DataTable dataTable = new DataTable();
            adapter.Fill(dataTable);

            foreach (DataRow dataRow in dataTable.Rows)
            {
                RadComboBoxItem item = new RadComboBoxItem();

                item.Text = (string)dataRow["CusName"];
                item.Value = dataRow["CusCode"].ToString();



                //RadComboBoxProduct.Items.Add(item);

                item.DataBind();
            }
        }

 

ghd258 ghd258
Top achievements
Rank 1
 answered on 21 Jan 2018
4 answers
332 views
I have many comboboxes in my webpage and i am unable to select the values using mouse click. Always the last value in the dropdown list gets selected. However, i am able to select the values using the arrow keys and functionality works as expected. This issue is seen only in the QA box now(was working fine before) and works as expected in dev box.
Rishi
Top achievements
Rank 1
 answered on 21 Jan 2018
0 answers
127 views

in HTML5 defines, next code 

<input id="test" name="text" required  />

how the required attribute is implemented in the radtextbox

 

gonzalez
Top achievements
Rank 1
Veteran
 asked on 20 Jan 2018
2 answers
86 views

I am not able to align the left text in excel.

 Protected Sub RadGrid1_ExportCellFormatting(sender As Object, e As ExportCellFormattingEventArgs)

        If e.FormattedColumn.UniqueName = "ColValor" Then
            e.Cell.HorizontalAlign = HorizontalAlign.Left
        End If

End Sub

Fábio
Top achievements
Rank 1
Iron
 answered on 19 Jan 2018
1 answer
382 views

I have created a drag-and-drop workflow builder where all of the shapes are complex (i.e. non-standard shapes comprised of several appended SVG commands).  Each of these shapes was created using one of six (6) custom visual templates ("Author", "Transmittal", "Review", "Print", "Publish" and "Email").  Unfortunately, I cannot rely on the built-in diagram.save method to store the finished diagrams as complex shapes reference visual templates which are functions and the JSON serialization process strips out all non-data (i.e. no functions).  When I attempt to reload the diagram from the file system, the diagram is correctly recreated but the complex shapes are replaced by squares.

The solution to this problem recommended to me was to include a "type" property with each complex shape and then interrogate this property after diagram.load to reinstantiate the correct visual template for each shape. At a high level, this sounds very logical and straight-forward.  While I have successfully assigned a "type" to each shape and have encountered no problems saving and subsequently re-loading a diagram, I have yet to figure out the correct way change existing shapes after re-load per the visual template functions originally used to create them. The approach I envision (but have yet to figure out the specifics) goes something like this:

  • Re-load the diagram using the diagram.load method.
  • Enumerate all of the shapes in a diagram by looping through the ShapesCollection.
  • For each shape in the collection, somehow assign the correct visual template to the shape based on its "type" property.

Am I close? <grin>  Is there a better way to go about doing what I'm trying to achieve? For what it's worth, I did try an alternative approach to this problem.  Knowing that the crux of the dilemma centers around the fact that serialization strips function info from the result object, I tried saving the raw diagram.save object without serialization.  It appears that diagram.save does indeed save all of the original diagram info as I was able to successfully reload the diagram from this object and everything looked great but...  I have yet to find a successful way to move the raw object from the client-side Javascript where it is created over to the the codebehind and subsequently write the object to disk. The conventional approach I would normally take would be to use a hidden form field (e.g. <asp:HiddenField...), retrieve it in the codebehind and then do whatever I need to do.  Unfortunately, hidden fields do not allow storing objects (just text) so all I ever end up in the codebehind is the string "[object Object]" instead of the actual object itself. <grrr>

Any help you can provide me with with either of the two approaches above would be very much appreciated.  Thanks.

Lloyd

Vessy
Telerik team
 answered on 19 Jan 2018
1 answer
145 views

I'm using the transitions in order to animate my RadHtmlChart.  However, I'm also using the client side getSVGString() to facilitate allowing the user to download an image of the chart.  I convert the svg string to png on the server and push back to client.  All of this is working EXCEPT, occasionally the getSVGString() is called before the animation has completed.

In order to work around the issue, I'm doing the following:
function setSvgContent<%=Me.ClientID%>() {
            setTimeout(function () {
                var chartRendering = $find("<%=radChart.ClientID%>");
                if (chartRendering != null) {
                    $get("<%=svgHolder.ClientID%>").value = escape(chartRendering.getSVGString());
                }
            }, 2000);
        }

I'm not fond of using a setTimeout and I'd prefer to call the getSVGString() after the animation has completed.

Is there a way to determine when the RadHtmlChart animation has completed??

Thanks!

Marin Bratanov
Telerik team
 answered on 19 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?