Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
129 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
356 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
115 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
504 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
137 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
235 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
156 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
143 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
1 answer
173 views
Hi friend,

I have used Radio button in Gridtemplate column.This radio button is correctly working only in IE and firefox and its not working in Chrome.
This my code for grid template column...
 <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false">
             <ItemTemplate>
                    <asp:RadioButton ID="chkAdd" ToolTip="Use Location as billing address" EnableViewState="true"
                                                                                    Height="18px" BorderWidth="0px" runat="server" GroupName="RegularMenu" AutoPostBack="True"
                                                                                    OnCheckedChanged="chkAdd_CheckedChanged" Checked="False" />
                </ItemTemplate>
  </telerik:GridTemplateColumn>

observe the image i have attached here..so that you can get some idea..
please help me.


Best Regards & Thanks
Anwar
Maria Ilieva
Telerik team
 answered on 01 Dec 2011
1 answer
254 views
I have several RadGrids which I'm modifying programatically so that....
 
If the user clicks "Edit", ShowAddNewRecordButton is set to 'False' and I rebind the grid.
If the user clicks "Add New Record", e.Item.Edit is set to 'False' and I rebind the grid.

In effect, this means that the user cannot access the 'edit' and 'add new' forms at the same time.  Only one can ever be open.  I do this for a couple of reasons. 

Firstly, if the user tries to add a record AND edit a record (both the 'add new' and 'edit' forms are open simultaneously), if the user tries to submit the edited record first, the validation on the 'add new record' form fires - preventing the edit from occuring. 

Secondly, I have controls which I want to appear when the user adds a new record, but I want hidden when they edit a record.  I've been able to program the grid to hide the controls If the user edits a record, BUT if the user edits a record THEN clicks the 'adds new' button (whilst the edit form is still expanded), the controls show in both the add new AND - unfortunately - the edit forms.

By controlling access to the "Edit" and "Add New" forms so only one can be open at any one time, this resolves the above issues.  Unfortunately, I have a DetailTable which I'm also trying to program to behave the same way but I don't know how to reference the ShowAddNewRecordButton value when it's within a DetailTable.  Also, when I rebind the grid, it loses the expanded row (which you'd expect).  Any ideas?  My code is below...

Protected Sub rdgRiskType_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rdgRiskType.ItemCommand

    'If user inserts a new Risk Type record, set 'edit' mode to false and rebind (all 'edit' forms will be minimised).
    If e.CommandSource.Text = "Add New Risk Type" Then
        e.Item.Edit = False
        rdgRiskType.Rebind()
    End If

    'If user edits a Risk Type record, hide the 'Add New xxx' button (user can't then add a new record whilst an edit form is maximised).
    If e.CommandSource.Text = "Edit" Then
        rdgRiskType.MasterTableView.CommandItemSettings.ShowAddNewRecordButton = False
        rdgRiskType.MasterTableView.IsItemInserted = False
        rdgRiskType.Rebind()
    End If

    'If user inserts a new Risk record, set 'edit' mode to false and rebind (all 'edit' forms will be minimised).
    If e.CommandSource.Text = "Add New Risk" Then

    End If

    'If user edits a Risk record, hide the 'Add New xxx' button (user can't then add a new record whilst an edit form is maximised).
    If e.CommandSource.Text = "Edit Risk" Then

    End If

End Sub

Antonio Stoilkov
Telerik team
 answered on 01 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?