Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
214 views
Hi all,

Currently I'm creating my Grid at runtime. The problem is that my imagebuttons don't peform the commands.
The DeleteCommand event won't fire, and the UpdateCommand also won't fire.

Can anyone tell me what I'm doing wrong? 

I'm using the following code to create my grid:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="400px" Width="990px">
        <telerik:RadGrid ID="DataGrid" runat="server" OnDeleteCommand="DataGrid_DeleteCommand"
            OnNeedDataSource="DataGrid_NeedDataSource" OnUpdateCommand="DataGrid_UpdateCommand"
            AllowPaging="True" AllowSorting="True" PageSize="20"
            GridLines="Horizontal" ShowFooter="True"
            ShowStatusBar="True" Width="100%" CellSpacing="0"
            AutoGenerateColumns="False" onitemcommand="DataGrid_ItemCommand">
            <MasterTableView DataKeyNames="id">
            </MasterTableView>
        </telerik:RadGrid>
    </telerik:RadAjaxPanel>

CS:
DataTable dtFields = DataManager.Instance.GetGridData(0, 1, this.module.DataObject, this.module.DataSource);
                foreach (DataColumn dc in dtFields.Columns)
                {
                    if (dc.ColumnName == "id")
                        continue;
 
                    GridBoundColumn gbc = new GridBoundColumn();
                    gbc.HeaderText = dc.ColumnName;
                    gbc.DataField = dc.ColumnName;
                    this.DataGrid.MasterTableView.Columns.Add(gbc);
                }

The edit & delete columns:
GridEditCommandColumn gecc = new GridEditCommandColumn();
gecc.ButtonType = GridButtonColumnType.ImageButton;
gecc.EditImageUrl = "~/Images/Icons/87._16x16.png";
this.DataGrid.MasterTableView.Columns.Add(gecc);
 
GridButtonColumn gbc = new GridButtonColumn();
gbc.ButtonType = GridButtonColumnType.ImageButton;
gbc.ImageUrl = "~/Images/Icons/7._16x16.png";
gbc.CommandName = "Delete";
gbc.ConfirmText = "Weet u zeker dat u dit item wilt verwijderen?";
gbc.ConfirmDialogType = GridConfirmDialogType.RadWindow;
gbc.ConfirmTitle = "Verwijderen";
this.DataGrid.MasterTableView.Columns.Add(gbc);
Pavlina
Telerik team
 answered on 01 Dec 2011
3 answers
164 views
Hi

The RadScheduler control shows a small down-arrow to open the pate picker shows.
The RadDatePicker (like in edit appointment) however shows the more understandable calendar icon.

Is it possible to use/change the scheduler date picker to use the calendar icon?
Is there any workaround  to do this for all themes?

Cheers,
Jani
Ivana
Telerik team
 answered on 01 Dec 2011
2 answers
106 views
Is there any documentation for functions under $telerik that we can use?

I've seen some mention of findControl(), isIE and the like and wondered what else there is.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 01 Dec 2011
3 answers
307 views
Hello Telerik Team,
  I have seen multiple postings about this problem but neither examples to reproduce or resolutions. I am providing an example to reproduce so hopefully you'll be able to quickly turnaround a resolution. In my sample, view in a screen width > 1000px to see the problem, and minimize to a width <= 1000 px to see it go away.

<sample type="Test_RadComboBox.aspx">
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Test_RadComboBox.aspx.cs" Inherits="KR.IQ.Test_RadComboBox" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head id="Head1" runat="server">
    <title>Page Title</title>
</head>
 
<body style="margin:0 auto;width:1000px;position:relative;">
<!-- Provide the layout for all pages -->
    <form id="form1" runat="server">
    <ajax:ToolkitScriptManager ID="ScriptManager" runat="server" EnablePartialRendering="true" CombineScripts="false"></ajax:ToolkitScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="LoadingPanel1" />
    <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
        Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(pageLoaded);              
    </script>
 
    <div id="container">
        <div id="mainBody">
            <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" EnableSkinTransparency="false">
                <div class="ajaxLoadingDiv" style="width:200px;height:100px;background-color:white;position:absolute; border:1px solid #3AB2E6;" >
                    <br />
                    <center><img src="/Images/Global/Ajax/ajax-loader.gif" alt="loading" />
                    <br />
                    <asp:Label runat="server" Text="Loading..." ID="lblProgressTemplateRAD"></asp:Label>
                    </center>
                </div>
            </telerik:RadAjaxLoadingPanel>
            <div id="fi">
                <telerik:RadComboBox ID="radComboBoxFIFilter" runat="server" Width="200px" AppendDataBoundItems="true" CssClass="floatRight">
                    <Items>
                        <telerik:RadComboBoxItem Text="SHOW ALL" Value="ALL" />
                    </Items>
                </telerik:RadComboBox>
            </div>
        </div>
    </div>
</form>
</body>
</html>
</sample>

<sample type="Test_RadComboBox.aspx.cs">
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
 
namespace KR.IQ
{
    public partial class Test_RadComboBox : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FillRadComboBox();
        }
 
        /// <summary>
        /// Sets up the featured insights control with the filter, default content types and homepage tag
        /// </summary>
        private void FillRadComboBox()
        {
            List<KeyValuePair<string, string>> filterItemList = new List<KeyValuePair<string, string>>()
            {
                new KeyValuePair<string, string>("One", "1"),
                new KeyValuePair<string, string>("Two", "2"),
                new KeyValuePair<string, string>("Three", "3")
            };
            radComboBoxFIFilter.DataValueField = "key";
            radComboBoxFIFilter.DataTextField = "value";
            radComboBoxFIFilter.DataSource = filterItemList;
            radComboBoxFIFilter.DataBind();
        }
    }
}
</sample>

  The problem is with page layouts that center the content of the body. This is done by a minimum of the following CSS styles on the body (included in my sample) but might be applied to an inner container:

* Auto margins left and right - margin: 0 auto;
* Fixed width for content - width: 1000px;
* Relative positioning - position: relative;

  If the browser window makes the viewable width <= the fixed width, there is no problem with the RadComboBox DropDownList (rcbSlide) placement. However, if the viewable width is > the fixed width then the DropDownList (rcbSlide) is not positioned correctly. (In my case, my screen is 1280px wide.)
  I have checked a few of other sites (arstechnica.com, apple.com, telerik.com) to see how they center their master content and they are using the same or a similar technique for centering horizontally (i.e, margin: 0 auto;). Could you please offer some advice on how to resolve this issue?

  Thanks much,

  Gregory Schilsson
Gregory
Top achievements
Rank 2
 answered on 01 Dec 2011
2 answers
84 views
Hi,
I've the graphic request for the grid in modality "Grouping",
 
1) (Red Double-Arrows in attached image)
  I would resize the width of GridGroupSplitterColumn. How do I do ?

2) (Green Double-Arrows in the attached image)
  I would resize the space beetween the start of detail and the first GridGroupByField

3) (Blue Circle in the attached image)
  I would hide the FieldAlias.
 
<telerik:GridGroupByField FieldName="INFO_GAME" FieldAlias="»" HeaderValueSeparator=" ">                                           </telerik:GridGroupByField>

Thanks a lot,
Marco
Pavlina
Telerik team
 answered on 01 Dec 2011
13 answers
437 views
I am getting:

Insufficient system resources exist to complete the requested service. (Exception from HRESULT: 0x800705AA)

When my ASP.NET app is loading.  This happens both in Visual Studio 2008 and when I try to run the Live examples. I am running Windows 2008 but VS2008 is running under an administrator account and I do have full permissions to the directory. Any ideas?

Andy
Top achievements
Rank 2
 answered on 01 Dec 2011
3 answers
108 views
I'm having issue with my dropdownlist after I DataBind and then I use the dropdownlist.Items.Insert(0,"Testing") doesn't show up in my DataGrid.

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

For example the EmployeeDetailsCS.ascx.cs in the
        protected void EmployeeDetails_DataBinding(object sender, System.EventArgs e)
        {
            ArrayList tocs = new ArrayList(new string[] { "Dr.", "Mr.", "Mrs.", "Ms." });

            ddlTOC.DataSource = tocs;
            ddlTOC.DataBind();
            //issue here
            ddlTOC.Items.Insert(0,"Testing");
            // or ddlTOC.Items.Insert(0,"Please select Title");

            object tocValue = DataBinder.Eval(DataItem, "TitleOfCourtesy");

            if (tocValue == DBNull.Value)
            {
                tocValue = "Mrs.";
            }
            ddlTOC.SelectedIndex = tocs.IndexOf((string)tocValue);
            ddlTOC.DataSource = null;
        }
Paul
Top achievements
Rank 1
 answered on 01 Dec 2011
5 answers
200 views
In your exemple TabStrip / Unique Tab Appearance.
How do i get in Page_Load / codebehind (vb) that i have click on RadPageView4 (Robertina)?
Bozhidar
Telerik team
 answered on 01 Dec 2011
1 answer
118 views
I have a radeditor as follows:

<telerik:RadEditor ID="Editor" runat="server" >
                    <Content>
                    
                    </Content>
                    <ImageManager DeletePaths="~/Images/EmailImages" UploadPaths="~/Images/EmailImages" ViewPaths="~/Images/EmailImages" />
                </telerik:RadEditor>


The image editor works great when the site is accessed from local network; however, when accessed from the internet, the radeditor  works, but NOT the IMAGE editor. It shows the error attached "Error Code: 500 Internal Server Error. The request was rejected by the HTTP filter". Doing further research, I found out that the http filter is done by the ISA server which is in fact my case. The IIS server is sitting behind an ISA Server. Somebody was having a similar issue with the radspell here: http://www.telerik.com/community/forums/aspnet/spell/isa-server-2004-and-radspell.aspx. Thus, I'd like to know if there is a work around for the image editor to avoid http filter (most likely the "Verify Normalization" http filter)

Thanks


Pablo
Top achievements
Rank 1
 answered on 01 Dec 2011
1 answer
100 views
Greetings, the filter rad control is a very powerful control, yet it's not intuitive for the "not so savvy" users.
Is it possible to customize the control to be able to create a look/behavior similar to the one in the attached images.
the customization I'm refering to would be things such as the position of the "add filter" the combo dropdown, etc...
Mira
Telerik team
 answered on 01 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?