Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
501 views

I have a user control within a RadContentTemplateTile and within this user control there is a button that is not firing the handler within the code base of the user control.  The Page_Load function is getting called within the user control, but not the button1_click handler when I click on the button

Below is the HTML

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HTML5_test2.Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/TestPage1.ascx" TagPrefix="uc1" TagName="TestPage1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>

        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
        <div>
            <telerik:RadTileList ID="RadTileList1" runat="server" AutoPostBack="true">
                <Groups>
                    <telerik:TileGroup>
                        <telerik:RadContentTemplateTile runat="server" ID="uc1" Name="firstContentTemplateTile" Shape="Wide">
                            <ContentTemplate>
                                <uc1:TestPage1 runat="server" ID="TestPage1" />
                            </ContentTemplate>
                        </telerik:RadContentTemplateTile>
                    </telerik:TileGroup>
                </Groups>
            </telerik:RadTileList>
        </div>
    </form>
</body>
</html>

This is the code for the user control

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HTML5_test2
{
    public partial class TestPage1 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = DateTime.Now.ToString();
        }
    }
}



haguila
Top achievements
Rank 2
 answered on 25 Jun 2013
4 answers
163 views
Hi,
I want to enter a new line in rad text box on a button click event. In button click event have added the "\n"  to the exsiting value and this works correctly for IE and Firefox browser, but not working in Chrome browser. Could you please help me to fix this chrome browser issue.





Thanks



Dhamodharan
Top achievements
Rank 1
 answered on 25 Jun 2013
4 answers
374 views
Hi,
       Change color of font color radgrid items on client row click event on client side.




Thanks
Dhamodharan
Top achievements
Rank 1
 answered on 25 Jun 2013
2 answers
140 views
Hello, 

It seems like this demo doesnt work in android browser.

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=grid

My targeted browser is Mobile version of chrome. I am not able to get the context menu on the row from the mobile.
Reply

Regards, 
Hemika 
Hemika
Top achievements
Rank 1
 answered on 25 Jun 2013
2 answers
539 views
When editing HTML content and switching from Design to HTML I'm finding the attribute 'abp' is being added to each element for example...
<p abp="219"><img title="Redhill" alt="Redhill" src="/Image/7/en-GB/0/0" abp="220" /></p><h1 abp="221">Welcome to</h1>

Can anyone help in identifying where these come from and how I can get rid of them?

Many thanks,

David
Danail Vasilev
Telerik team
 answered on 25 Jun 2013
5 answers
197 views
Hi,

I am trying to apply an image and repeat that as background for the apply button, I am using the same CSS which I used for regular buttons.

.button 
{
background:url("design/nav.gif") 0 0 repeat-x;
color: #fff;
border: solid 1px #DFDFDF;
font-weight: bold;
padding:5px 10px;
width:auto;
cursor:pointer;
}

But I am not getting my image repeated, any suggestions would be very helpful.

Thanks,
Vasu
Venelin
Telerik team
 answered on 25 Jun 2013
1 answer
108 views
Is is possible to change the grouping from the client?

I have a data source of shipments that I would like to be able to show as either Quarter, Month or Day. I had considered adding all three as columns, but that seems sloppy. I would like to put either a radio button or drop down on the page that would allow me to display the transaction time as quarter, month or day.

Is this possible or should I just add the additional columns and then hide the ones I don't need at the moment?

Thanks
Randy Miller
Pavlina
Telerik team
 answered on 25 Jun 2013
2 answers
127 views
How can I get a GridDropDownList to work with entity framework. Specifically how can I attach a field to the DataTextField property and another field to the DataValueField property? Please see the example below.  
 
protected void rgDPR_ItemDataBound(object sender, GridItemEventArgs e)
{
    DbSet<SICCode> sicCodes = DB.SICCodes;
    var query = (from codes in sicCodes
                 orderby codes.Industry ascending
                 select codes.Industry, codes.ID).ToList();
 
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        GridEditableItem editedItem = e.Item as GridEditableItem;
        GridEditManager editMan = editedItem.EditManager;
        GridDropDownListColumnEditor editor = editMan.GetColumnEditor("SICCodeOverride") as GridDropDownListColumnEditor;
        editor.DataSource = query;
        
        editor.DataTextField = "";  // codes.Industry should go here
        editor.DataValueField = ""; // codes.ID should go here
 
        editor.DataBind();
    }
}

Thanks in advance.


Jorge
Jorge
Top achievements
Rank 1
 answered on 25 Jun 2013
1 answer
210 views
I'm having issues with a grid that is displaying data using columns I create server side based on the folder selected.
Example, a folder for Photographs would have different columns than one for Invoices, etc.

So here's the workflow:
1. Without selecting an item in the grid, click the NOTIFY button (attachment: step1.png)
2. Nothing is selected so I add an alert to the RadAjaxManager like so: (attachment: step2.png)
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("alert('NOTHING SELECTED. Please select the document for which you want to send a notifcation.');")

3. Clicking the 'OK' button to dismiss the alert returns you to the page with incorrect grid columns and odd data displaying. (attachment: step3.png)

I'm not sure how to get the grid to rebind and paint correctly after going client side with the alert?
Jason
Pavlina
Telerik team
 answered on 25 Jun 2013
1 answer
213 views
Hi,
When inserting an image which is having width and height larger than the editor's width and height, the coordinate are showing outside the editor as shown in the attached image, how can I show the coordinates inside the editor?

regards
Jiju
Vessy
Telerik team
 answered on 25 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?