Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
254 views
Hello,

I've set up an HTMLChart Column Chart.  The tooltips appear on the right of each column when hovering over the column.  For the columns at the far right side of the chart, this means the tooltips are squished and unreadable.  Is there a way to change the position of the tooltips so the ones on the right side of the chart can be fully seen?

Thanks.
Phuong
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
128 views
Hi,

I have a combo with check boxes.
When I select only one item and close the combo, I get the name of the item on the combo. Works good.
When I select few items in the combo I get the text "x items checked". Works good.

But... If I select only one item, close the combo (and get the item's name on the combo), then open it again and check few more items, and close the combo, now I still have the name of the first checked one. The text doesn't change to "x items checked".

An image with the steps to reproduce is attached.

Is this a known issue?
Is there a workaround?

Thanks,
Guy.
Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
1 answer
526 views
I have a Radgrid with auto generated columns = "True" and I would like to change the header text programmatically at the Detail table levels when the radgrid loads at page load.  How would I accomplish this?  I figured simply utilizing the code shown below would work, but it doesn't do anything.  The page just loads with no errors, and the text does not change on the header.  However, when I change the text programmatically in the root level of the radgrid it works, but does not work at the detail levels.  Please Help!

'''I tried this code in the PreRender and ItemDataBound Events.  But it does not work. Text does not change.... 

Radgrid_CRGList.MasterTableView.DetailTables(1).DetailTables(0).GetColumn("UniqueName").HeaderText = "Custom Header Text"

Princy
Top achievements
Rank 2
 answered on 02 Jun 2014
3 answers
195 views
When a user selects an item from the drop down, I want to call a method that gets details from a database for the selected item (using the DataValueField).  I have this code

 protected void RadAutoCompleteBox1_EntryAdded(object sender, AutoCompleteEntryEventArgs e)
        {
                AutoCompleteBoxEntry entry = e.Entry;
                
        }

but it never gets fired, I also have this set

AutoPostBack="True"

The dropdown list appears (after typing the first 2 characters)  but I cant trap the selection event, has anyone managed to do this ?
Shinu
Top achievements
Rank 2
 answered on 02 Jun 2014
10 answers
494 views
Is there a way, I can hide the X button when I do Add/Edit in RadGrid in PopUp edit mode? For normal RadWindow, we can customize the behaviours(close, maximize, minimize, resize etc.), same way do we have any control over the behaviours in RadGrid edit mode PopUp window?

Thanks
venu
Top achievements
Rank 1
 answered on 31 May 2014
2 answers
97 views
I have a RadComboBox and other controls, including an ASP Repeater within a RadAjaxPanel.  
The contents of the combo box are fairly typical, a list of numbers with -1 and blank text indicating that nothing has been selected.
The repeater displays a list of bound RadButton check boxes.

If the combo box has a valid value (> 0) selected, the server-side selected index changed event of the combo box calls a routine to repopulate the repeater, 

If the combo box is set to -1 what I would like to happen is for the post back to be canceled and the most recent collection of controls in the repeater (and their checked values) to be retained, and the combo box itself to retain its -1 value.

Is this possible?
Boris
Top achievements
Rank 1
 answered on 30 May 2014
3 answers
139 views
Hi,

I'm using Telerik 2011 Q2 ( file version 2011.2.712.0,  size: 2029840 bytes)


I have the following problem: When the Telerik CDN is enabled  AsyncUpload  fail to show (seems to try to load silverlight even SL plugin is not available), using embedded scripts works fine (load flash when no SL available) but lose CDN benefits.

Comparing the AsyncUpload js file embeded on Telerik dll with the hosted on Telerik CDN both files are different. I was believe will be the identical but not.

Why the file hosted on CDN is different and have errors? 

Where is hosted the right file for my Telerik build? and how force ScriptManager to use it?


Please any advice is welcome.


CDN version:
http://aspnet-scripts.telerikstatic.com/ajaxz/2011.2.712/AsyncUpload/RadAsyncUploadScripts.js

Embeded file:  
https://mega.co.nz/#!NZ0VEQJK!1kSwpohH28IdWrien1PHP6xA9TG0gJZeOnCIhS-96Ls

cannot attach zip files...




Boyan Dimitrov
Telerik team
 answered on 30 May 2014
2 answers
273 views
I am using RadGrid which has both Filter and Pager.
When filtered 3 pages after that I clicked on page 2 then radgrid show page 2 of all data (filter not working at this time)
Sometimes, Filter also did not work properly. I don't know why. Can someone help me now?
_fileRadGrid.MasterTableView.FilterExpression always = empty so I have to use _fileStatusPendingRadGrid.MasterTableView.GetColumnSafe("Status").CurrentFilterValue to check HasFilter.

When I reload the page then pager and filter are not working properly. (I also code for another web app with filter and pager are working fine)
Please tell me why that code not working? the version of telerik is 2014.1.225.45

Inline:
<telerik:RadGrid ID="_fileRadGrid" runat="server" AutoGenerateColumns="False" AllowSorting="False"  
        AllowPaging="true" AllowFilteringByColumn="True" EnableAJAX="True" EnableViewState="True" ViewStateMode="Enabled"
        EnableEmbeddedSkins="False" EnableEmbeddedBaseStylesheet="False" Skin="NitroCleo" PageSize="10" EnableLinqExpressions="False"
        OnNeedDataSource="FileNeedDataSource"
        OnItemDataBound="FileItemDataBound">        
        <ClientSettings>
            <clientevents ongridcreating="OnGridCreated"/>
        </ClientSettings>
        <MasterTableView DataKeyNames="FileIdentifier" ClientDataKeyNames="FileIdentifier"
            NoMasterRecordsText="No file" AllowFilteringByColumn="True" >
            <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="6" />
            <Columns>
                <telerik:GridTemplateColumn HeaderStyle-Width="25px" AllowFiltering="False">
                    <ItemTemplate>
                        <asp:Label ID="_iconLabel" runat="server"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="Status" UniqueName="Status" DataField="Status" AutoPostBackOnFilter="True"
                    CurrentFilterFunction="Contains">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="_statusLink"></asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Code Behind:
        protected void FileNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            BindFileGrid(true);            
        }

        private void BindFileGrid(bool needDataBind = false)
        {
            var listFile = new List<FileItem>();
            int virtualItemCount = 0;
            int pageSize = 0;
            int pageIndex = 0;

            try
            {
                if (!HasApplyFilter())
                {
                    pageSize = _fileRadGrid.PageSize;
                    pageIndex = _fileRadGrid.CurrentPageIndex;
                }
                _fileRadGrid.AllowCustomPaging = !HasApplyFilter();

                listFile = GetDataSourceForFile(pageIndex, pageSize, out virtualItemCount);
            }
            catch (Exception ex)
            {
                Log.Error(String.Format("An error while get file. Error: {0}", ex.Message));
            }
            
            _fileRadGrid.MasterTableView.PagerStyle.AlwaysVisible = virtualItemCount == 0 ? false : true;    

            if (listFile != null)
            {
                _fileRadGrid.DataSource = listFile;
                _fileRadGrid.VirtualItemCount = virtualItemCount;

                if (!needDataBind)
                {
                    _fileRadGrid.DataBind();
                }
            }
        }

Thanks for your reading!
Pavlina
Telerik team
 answered on 30 May 2014
4 answers
148 views
Hi,
I am adding a new menu to my RadGrid HeaderContextMenu :
        var newFilterItem = new Telerik.Web.UI.RadMenuItem();
        newFilterItem.set_text("Clear All Filters");
        newFilterItem.set_postBack(true);
        sender.get_items().insert(0, newFilterItem);

I expect that since postback is true, when menu is clicked, ItemClick event of HeaderContext menu should be fired.
Postback is happening but ItemClick event is not firing!! Is there any other event that gets fired when postback is true for Header Menu?
Tushar
Top achievements
Rank 1
 answered on 30 May 2014
2 answers
188 views
In the following code snippet I have a child grid that has a hyperlink in the CommandItemTemplate, how can I access this so that I can set the url for the hyperlink (It needs the id field from the parent row in it)? I've tried several places such as PreRender and OnItemDataBound but I haven't been able to find anywhere where FindControl doesn't return null.  

This was my last try in the Prerender event of the parent Grid.
protected void radPurchaseOrder_PreRender(object sender, EventArgs e)
    {
        foreach (GridDataItem item in radPurchaseOrder.Items)
        {
            if (item.Expanded)
            {
                HyperLink link = item.FindControl("linkDoInvoiceExport") as HyperLink;
                if (link != null)
                {
                        //do stuff here if the above ever isn't null
                }
 
 
            }
        }
 
 
    }


<telerik:RadGrid ID="radPurchaseOrder" runat="server" AllowPaging="True" ClientSettings-ClientEvents-OnGridCreated="GridCreated"
           AllowSorting="True" AutoGenerateColumns="False" enableajax="true" OnNeedDataSource="radPurchaseOrder_NeedDataSource"
           ShowGroupPanel="True" OnItemDataBound="radPurchaseOrder_ItemDataBound" HeaderStyle-HorizontalAlign="Center"
           OnDataBound="radPurchaseOrder_DataBound" OnDetailTableDataBind="radPurchaseOrder_DetailTableDataBind" AllowFilteringByColumn="True" GridLines="None" CellSpacing="0"  OnItemCreated="radPurchaseOrder_ItemCreated"
            OnPreRender="radPurchaseOrder_PreRender">
           <ExportSettings>
               <Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"
                   PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />
           </ExportSettings>
           <HeaderStyle HorizontalAlign="Center" />
           <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
               <ClientEvents OnGridCreated="GridCreated" />
               <Scrolling AllowScroll="True" UseStaticHeaders="true" />
               <Resizing AllowColumnResize="True" AllowRowResize="False" EnableRealTimeResize="True" />
           </ClientSettings>
           <MasterTableView Width="100%" TableLayout="Fixed" DataKeyNames="OrderNumber, LineItemNumber" HierarchyLoadMode="ServerOnDemand" Name="PoData">
               <RowIndicatorColumn>
                   <HeaderStyle Width="20px" />
               </RowIndicatorColumn>
               <ExpandCollapseColumn>
                   <HeaderStyle Width="20px" />
               </ExpandCollapseColumn>
               <DetailTables>
                   <telerik:GridTableView runat="server" TableLayout="Fixed" CommandItemDisplay="Top" Name="DistributionOrderDetail" DataKeyNames="OrderNumber,LineItemNumber" IsFilterItemExpanded="false" ItemStyle-HorizontalAlign="Center" AlternatingItemStyle-HorizontalAlign="Center">
                       <ParentTableRelation>
                           <telerik:GridRelationFields DetailKeyField="OrderNumber" MasterKeyField="OrderNumber" />
                           <telerik:GridRelationFields DetailKeyField="LineItemNumber" MasterKeyField="LineItemNumber" />
                       </ParentTableRelation>
                       <CommandItemTemplate>
                           <asp:HyperLink runat="server" ID="linkDoInvoiceExport" Text="Detail Report"></asp:HyperLink>
                       </CommandItemTemplate>
                       <Columns>
                           <telerik:GridHyperLinkColumn UniqueName="DistributionOrderNumber" DataNavigateUrlFields="DistributionOrderNumber" HeaderText="DO #"
                               DataNavigateUrlFormatString="~/search/DistributionOrder.aspx?@distributionOrderNumber={0}" DataTextField="DistributionOrderNumberFmt">
                           </telerik:GridHyperLinkColumn>
                           <telerik:GridHyperLinkColumn UniqueName="MajorDistributionOrderNumber" DataNavigateUrlFields="MajorDistributionOrderNumber" HeaderText="Major DO #"
                               DataNavigateUrlFormatString="~/search/DistributionOrder.aspx?@majorDistributionNumber={0}" DataTextField="MajorDistributionOrderNumberFmt">
                           </telerik:GridHyperLinkColumn>


Thanks
Bill
wdudek
Top achievements
Rank 1
 answered on 30 May 2014
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?