Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
127 views
Hi,

I just came across what seems to be a bug in RadTextBox. When setting the Label with a text (no matter what) and setting the width to a ##em value, an error gets throw. This error does not occur when setting the width in ##px, ##% or just ##, only when "em" is used.

This is the example page I used:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Dashboard.Website.controls.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:ScriptManager runat="server" />
      <telerik:RadTextBox runat="server" ID="txt"  Label="test" Width="12em" />
    </div>
    </form>
</body>
</html>

I've also included a screenshot of the error that is thrown.

Could someone confirm that this is a problem or tell me what I'm doing wrong?

Thanks!
Danny
Danny
Top achievements
Rank 1
 asked on 09 May 2012
0 answers
109 views
but I have a grid size is 350px defcto high if I change my settings and adjust stops coming out, in my case 10 elements by default but if tenfo a paging and said qiuiero see more than 20 items are not adjusted to width of the 20 elements but it creates a vertical scroll is what I qu ene can you tell me how to remove and the higher self

I hope pudding took weeks with this help I tried the metiodos add a lime and place tall worst hidden and does not work
hugo arturo
Top achievements
Rank 1
 asked on 09 May 2012
6 answers
154 views
Hello!

I'm having some problems trying to dynamically create multiple docks at the same time.

What I'd like to achieve is to have multiple Docks added to the DockZone on a button click, but the only thing I get is first Dock properly created and displayed when the rest of them aren't displayed (they are displayed after I refresh the webpage) and they are created but floating outside of the zone.

I have similar scenario when creating one Dock at a time and it works like a charm.

This is the code:
protected void rbAddTickets_Click(object sender, EventArgs e)
        {
            var ticketList = (from t in db.Ticket
                              where t.idManager == idManager && t.Zatvoren == false || t.idManager == null && t.Zatvoren == false
                              select t).ToList();
 
            var memoTicketList = from t in ticketList
                                 where t.Memo == null || t.Memo == false
                                 orderby t.Firma.Naziv, t.idNadredeniTicket, t.RedniBroj, t.Opis
                                 select t;
 
            foreach (var ticket in memoTicketList)
            {
                RadDock dock = new RadDock();
                dock.UniqueName = ticket.idTicket.ToString();
                dock.ID = string.Format("RadDock{0}", dock.UniqueName);
                dock.Title = ticket.idNadredeniTicket + "-" + ticket.RedniBroj + " (" + ticket.Firma.Naziv + ")";
                dock.Text = ticket.Opis;
                dock.DockMode = DockMode.Docked;
                //dock.Index = Convert.ToInt32(Session["MinIndex"]) - 1;
 
 
                dock.Commands.Add(new DockCloseCommand());
                dock.Commands.Add(new DockExpandCollapseCommand());
                dock.Command += new DockCommandEventHandler(DockCommands);
 
                //ticket.Memo = true;
                //db.SaveChanges(); OMOGUĆI KASNIJE
 
                UpdatePanel1.ContentTemplateContainer.Controls.Add(dock);
 
                ScriptManager.RegisterStartupScript(
                dock,
                this.GetType(),
                "AddDock",
                string.Format(@"function _addDock() {{
    Sys.Application.remove_load(_addDock);
    $find('{1}').dock($find('{0}'));
    $find('{0}').doPostBack('DockPositionChanged');
}};
Sys.Application.add_load(_addDock);", dock.ClientID, rdzIncidenti.ClientID),
                true);
                CreateSaveStateTrigger(dock);
 
            }
        }

So, to sum everything up. I would like to generate Docks properly; display them immediately, without having to refresh the page and create them inside DockZone.

Any help would be appreciated.

Regards,

Hrvoje
Hrvach
Top achievements
Rank 1
 answered on 09 May 2012
1 answer
150 views
how can you either "not show" or "disable" the "Add Group" portion of the telerik Rad filter????
screen shot attached.

 

 

<telerik:RadFilter ID="WorkOrdersRadFilter" runat="server" Skin="WebBlue" ShowApplyButton="true"

 

 

 

OnApplyExpressions="WorkOrdersRadFilter_Apply" ApplyButtonText="Filter Work Orders"

 

 

 

OnPreRender="WorkOrdersRadFilter_PreRender" OnFieldEditorCreating="RadFilter_FieldEditorCreating" OnItemCommand="WorkOrdersRadFilter_ItemCommand">

 

 

 

 

<FieldEditors>

 

 

 

<telerik:RadFilterTextFieldEditor FieldName="WORKORDERNUMBER" DisplayName="Work Order#"

 

 

 

DataType="System.String" />

 

 

 

<goldcustom:RadFilterComboBoxEditor FieldName="WOTYPENAME" DisplayName="WO Type"

 

 

 

DataTextField="WOTYPENAME" DataSourceID="WorkOrderTypeFilterODS" DataType="System.String"

 

 

 

ComboBoxSkin="WebBlue" />

 

 

 

</FieldEditors>

 

 

 

 

 

</telerik:RadFilter>

 

Pavlina
Telerik team
 answered on 09 May 2012
0 answers
120 views
Hi,
I am using 2 Radlistbox for item transfer from source to destination.
the double click and arrow button working fine completely in FireFox but it's working partially in IF8 means getting following issues in IE8:

1.       By double click on one item then all the rest items are moving.

2.       some item is not moving By double click 


please support

Thanks & Regards,
Santhosh Naik
Santhosh
Top achievements
Rank 1
 asked on 09 May 2012
6 answers
373 views
I have a radgrid in a user control and am using the following code to capture and retain the scroll bar position after a postback

 

<ClientSettings EnablePostBackOnRowClick="True" EnableRowHoverStyle="True">

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" ScrollHeight="295px" />

 

 

<ClientEvents OnScroll="SetScrollPosition" />

 

 

<Resizing AllowColumnResize="True" />

 

 

</ClientSettings>

 

<

 

script type="text/javascript">

 

 

 

 

function

 

SetScrollPosition() {

 

 

var y = DBSearch1_RadGrid1_GridData.scrollTop;

 

document.cookie =

"divPos=!^^->" + y + "<-^^!";

 

}

window.onload =

function() {

 

 

var cook = document.cookie;

 

 

if (cook.indexOf("!^^->") != 0) {

 

 

var start = cook.indexOf("!^^->");

 

 

var end = cook.indexOf("<-^^!");

 

 

var pos = cook.substring(start + 5, end);

 

window.setTimeout(

function() {

 

DBSearch1_RadGrid1_GridData.scrollTop.scrollTop = pos;

}, 0);

}

 

}

 

</

 

script>

The problem I am encountering is that the scroll bar does get set to the value of 'pos'  but within a split second it gets reset and is at the first record in the datagrid after a postback. I was wondering if any one has encountered similar issues. Thx

 

Maria Ilieva
Telerik team
 answered on 09 May 2012
1 answer
225 views
Hello,
I never used DataKeyNames and dont know the importance of these datakeyNames.


Can anyone explain how it works and what is GroupLoadMode="Client" in the below code.

 <MasterTableView CellPadding="4" DataKeyNames="IsSelected" AutoGenerateColumns="False" Width="100%" GroupLoadMode="Client"> 

Shinu
Top achievements
Rank 2
 answered on 09 May 2012
1 answer
221 views
This has been baffling (and infuriating me) for hours now.  I have a textbox wrapped inside a panel named:

<asp:Panel ID="panelTest" runat="server">


The textbox calls a javascript event when the user hits enter:
function CatchTab(e) {
               var keycode;
               if (window.event) {
                   keycode = window.event.keyCode;
               } else if (e) {
                   keycode = e.which || e.keyCode;
               } else {
                   return true;
               }
 
               if (keycode == 13) {
                   //alert("User Hit Enter");
                   var empid = document.getElementById('<%= tbTmid.ClientID %>').value;
                   InitiateAjaxRequest(empid);
               }
           }


function InitiateAjaxRequest(arguments) {
               var ajaxManager = $find("<%= ram2.ClientID %>");
               alert("Initiating Request");
               ajaxManager.ajaxRequest(arguments);
           }

<telerik:RadAjaxManager ID="ram2" runat="server" Skin="Web20" OnRequestStart="InitiateAjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ram2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelTest" LoadingPanelID="loader1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgSc">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panelTest" LoadingPanelID="loader1" />
                    <telerik:AjaxUpdatedControl ControlID="rwm1" LoadingPanelID="loader1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <telerik:RadAjaxLoadingPanel ID="loader1" runat="server" Skin="Web20" IsSticky="false"
            EnableViewState="true" Enabled="true">
    </telerik:RadAjaxLoadingPanel>


For some reason the darn loading panel only wants to show up on the first ajax request.  Everything is ajaxd on subsequent requests, I just don't see any loading panel.  The textbox fills a grid within the panel.  What's even stranger is that if the value entered into the textbox does not return any grid rows, the loading panel shows up everytime!!!

Also, I get the "Initiating Request" alert every time as well and the ajax manager object is always populated (not null).

If anyone could please help that would be great.

Thanks
Maria Ilieva
Telerik team
 answered on 09 May 2012
1 answer
111 views
Hello all! I have a newbie question... When my RadGrid with 150 rows renders, it does so at about 1/2 size in the middle of the page; then it re-renders full size. How do I get the grid to not render until the full grid is ready?
My page setup is like this:
<telerik:RadAjaxPanel >
    <telerik:RadWindowManager >
        <div align="center" style="z-index: 1;">
            <telerik:RadTabStrip >
                <Tabs/>
                <Tabs/>
                <Tabs/>
            <telerik:RadTabStrip />
            <telerik:RadMultiPage />
                <telerik:RadPageView />
                    <telerik:RadGrid ID="gridLoans" runat="server"  AllowAutomaticDeletes="true" AllowAutomaticUpdates="false"
                AllowAutomaticInserts="true" AllowFilteringByColumn="false" AllowPaging="false"
                AllowSorting="true" AllowMultiRowSelection="true" CellSpacing="2"
                PageSize="500" ShowGroupPanel="false"
                EnableLinqExpressions="false" GridLines="Both" CellPadding="0" HeaderStyle-Wrap="false"
                AutoGenerateColumns="false" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
                                 
                OnItemDataBound="grid_ItemDataBound" OnPageIndexChanged="grid_PageIndexChanged"
                OnPageSizeChanged="grid_PageSizeChanged" OnNeedDataSource="grid_NeedDataSource"
                OnInsertCommand="gridLoans_InsertCommmand" OnUpdateCommand="gridLoans_UpdateCommand"
                OnDeleteCommand="gridLoans_DeleteCommand" OnPreRender="gridLoans_PreRender"
                OnGridExporting="gridLoans_GridExporting" AllowCustomPaging="true"
                            >
                            <ClientSettings allowautoscrollondragdrop="false" allowexpandcollapse="false" allowgroupexpandcollapse="false">
                                <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" />
                                <Scrolling AllowScroll="false" UseStaticHeaders="false" />
                                <ClientEvents OnGridCreated="grid_GridCreated" OnRowDblClick="RowDblClick" />
                                <Resizing AllowResizeToFit="true" EnableRealTimeResize="true" />
                            </ClientSettings>
                            <ExportSettings IgnorePaging="true" ExportOnlyData="true" Excel-Format="ExcelML" />
                            <AlternatingItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                        <MasterTableView EditMode="InPlace" CommandItemDisplay="TopAndBottom" DataKeyNames="LoanID" ClientDataKeyNames="LoanID" GridLines="Both">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"><HeaderStyle Width="20px" /></RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"><HeaderStyle Width="20px" /></ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"  />
                                ...
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1"></EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="false" />
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default" />
                        <ActiveItemStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                        <FilterMenu EnableImageSprites="false" />
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
                    </telerik:RadGrid>
               </telerik:RadPageView>
           </telerik:RadMultiPage>
        </telerik:RadAjaxPanel>
    </div>
<telerik:RadAjaxPanel />
<telerik:RadWindowManager />

Thanks,
Miles
Andrey
Telerik team
 answered on 09 May 2012
8 answers
494 views
I am have a RadGrid and use EditForms with a template.  I allow inserts and edits and I am having a problem with clearning the EditForm when a user clicks to edit a row.  When I click on the Add New link it shows an empty template and that is perfect but If I then choose to then click Edit on an existing row it creates another edit form in edit mode.  So now I have 2 edit forms 1 for a new record and 1 an edit to a record.  Since I have validation on my edit forms submitting either form causes validation to fire on both. 

I know that I can clear edit items when I click the add new link such as:

Protected Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
  Select Case e.CommandName
    Case RadGrid.InitInsertCommandName
      ' cancel any previous edits
      RadGrid1.MasterTableView.ClearEditItems()
    Case RadGrid.EditCommandName
  End Select
End Sub

This works fine clearing out edits but not inserts.  How can I clear the insert items when I choose to edit a row in the grid since there seems to be no .ClearInsertItems() method?
Robert
Top achievements
Rank 1
 answered on 09 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?