Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
460 views
Hi,

We are using RadControls for ASP.NET AJAX suite (2013 Q1 version) for our applications. We use Visual studio 2012 ultimate version with C#. When I drag control from toolbox on to the page, the following gets added to the page:

<%

 

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

 


I do not want to have this on each and every page. So, I would like to add assembly to web.config file with details like public token, version, culture etc. Further, I would like to add controls element also with control details.

For eg:

<

 

 

assemblies>

 

<

 

 

add assembly="Infragistics2.WebUI.Shared.v10.3, Version=10.3.20103.2217, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"/>

 

</

 

 

assemblies>

 


<

 

 

pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">

 

<

 

 

controls>

 

<

 

 

add tagPrefix="igtbl" namespace="Infragistics.WebUI.UltraWebGrid" assembly="Infragistics2.WebUI.UltraWebGrid.v10.3"/>

 

<

 

 

add tagPrefix="igtblexp" namespace="Infragistics.WebUI.UltraWebGrid.ExcelExport" assembly="Infragistics2.WebUI.UltraWebGrid.ExcelExport.v10.3"/>

 

</

 

 

controls>

 

</

 

 

pages>

 


This avoids having assembly registration on each and every page.

Thanks,
Prathiba
ajay
Top achievements
Rank 1
 answered on 23 Jan 2018
1 answer
254 views

Dear Team,

We are using ShowSound property and it doesn't work in mobiles and tablets. However it is working fine in desktop browsers. I have already tried below code which i got from your website but still no difference.

<script type="text/javascript">function pageLoad() {//Attach to the document touchstart event and initiate the notification audio $telerik.$(document).on("touchstart", initSound);}function initSound() {var notification = $find("<%=RadNotification1.ClientID%>");//If notification audio is not available initiate itif (!notification.verifySound()) { notification.userInitSound();}//Detach the initSound event listener $telerik.$(document).off("touchstart", initSound);}</script><telerik:RadNotification RenderMode="Lightweight" ID="RadNotification1" runat="server" ShowInterval="2000" AutoCloseDelay="1000" Text="Some Notification" ShowSound="warning"></telerik:RadNotification>

I have also tried in code behind but result is same.

RadNotification1.ShowSound = ResolveUrl("~/Images/OrderReceived.wav");

Kindly let me know how we can enable sound on mobile/tablet devices.

Thanks & Regards,

Jatin Kumar Verma

Peter Milchev
Telerik team
 answered on 23 Jan 2018
4 answers
205 views

Hi, 

In the demo https://demos.telerik.com/aspnet-ajax/listview/examples/client/webservicedatabinding/defaultcs.aspx

It is possible to select an item without having a CommandName="Select" and the item can be click anywhere, and it selects. 

In the code I am playing with, I have the data bound via code, but cannot get the item to select without a button.

You do not have a button within your demo, so how do you get it to work?

Many Thanks

Mark

 

Mark
Top achievements
Rank 1
 answered on 23 Jan 2018
1 answer
72 views

Hello, I have a problem using EnableVirtualScrollPaging in asp.net RadGrid.

In the grid I have GridBoundColumn and GridTemplateColumn columns.

At server side put all rows with same height.

     rdgLista.MasterTableView.ItemStyle.Height = 50;
     rdgLista.MasterTableView.AlternatingItemStyle.Height = 50;

When I scroll down page 2 is load when I have not yet reached the end of page 1.

 

<ClientSettings>
                    <Resizing AllowRowResize="false" />
                    <Scrolling AllowScroll="true" EnableVirtualScrollPaging="True" UseStaticHeaders="true" SaveScrollPosition="true">
                    </Scrolling>
</ClientSettings>

 

Can you help?

 

Best Regards.

 

Eyup
Telerik team
 answered on 23 Jan 2018
0 answers
148 views

I'm using version 2010 Q1 309

I have 8 RadTabs, I want to auto adjust width when run on more screens. I tried set ScrollChildren = True, but UI broken

Darren
Top achievements
Rank 1
 asked on 22 Jan 2018
0 answers
80 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
290 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
91 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
157 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
165 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
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?