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

i have radgrid with alot of custom filters and i need to move javascript to external file

how to set static client id to put this line at external javascript file

var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

Ahmad
Top achievements
Rank 1
 asked on 22 Jan 2018
2 answers
267 views
Hi, I'm trying to fire the Notification on button click. The Notification is displaying but the title and content are empty, any ideas why?

<telerik:RadNotification ID="Notification" runat="server" Position="Center"
    AutoCloseDelay="10000" Width="350" EnableRoundedCorners="true" ContentIcon="none" KeepOnMouseOver="true" ShowCloseButton="false">
    <ContentTemplate>
        <asp:Literal ID="NotificationText" runat="server" />
    </ContentTemplate>
</telerik:RadNotification>

protected void SaveQuoteButton_Click(object sender, EventArgs e)
{
    Notification.Title = "Save Title";
    NotificationText.Text = "Save Text";
    Notification.Show();
}
Ahmad
Top achievements
Rank 1
 answered on 22 Jan 2018
0 answers
86 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
149 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
144 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
71 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
97 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
396 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
157 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
118 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
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?