Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
279 views
Here is my code.     

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pagerMetadata">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rlvMetadata" UpdatePanelRenderMode="Inline" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>

but I lost css in aspx side. I tried add UpdatePanelsRenderMode="Inline" propert but nothing changed. how can I do that using c#?
Maria Ilieva
Telerik team
 answered on 31 Mar 2014
1 answer
77 views
We have a custom class OurGrid that inherits from Telerik.Web.UI.RadGrid. We do some initial setup of the RadGrid options when a grid is added to a page using our custom type so we do not have to re-run the initialization in various places. 

In attempting to persist this using the persistence manager it appears it's grabbing the type of the object and in this case is seeing our custom type rather than RadGrid.

The error message is:
The control of CustomTelerikObjects.OurGrid could not be persisted. Please review the online documetation for the supported controls.

Is there a way around this that anyone has used?
Kostadin
Telerik team
 answered on 31 Mar 2014
2 answers
109 views
Hi Devoloper Friends;

I'm using a radgird and entry in the properties rowselected feature is activated, 
At the same time, right-click the 'Menu' open. 
I click on the DataKeyNames property value of the row you want to get mss. 
If more than one row is selected, it brings me the value of the first selected row.

Example;

http://elbisemoda.com/Bilgi/RadGridRightClick.png


JavaScript;

function RowContextMenu(sender, eventArgs) {
           var menu = $find("<%=RadMenu1.ClientID %>");
           var evt = eventArgs.get_domEvent();
 
           var index = eventArgs.get_itemIndexHierarchical();
           sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);

           menu.show(evt);
 
           evt.cancelBubble = true;
           evt.returnValue = false;
 
           if (evt.stopPropagation) {
               evt.stopPropagation();
               evt.preventDefault();
           }
 
 
       }


RadGird;
<telerik:RadGrid ID="grdVeresiyeFisList" AllowFilteringByColumn="false" Height="445px" AutoGenerateColumns="false" runat="server" AllowMultiRowSelection="True" EnableAjaxSkinRendering="True" Culture="tr-TR"
                    GridLines="None" EnableLinqExpressions="False" Skin="Metro" PagerStyle-Visible="false" OnItemCommand="grdVeresiyeFisList_ItemCommand" OnItemDataBound="grdVeresiyeFisList_ItemDataBound"
                    OnNeedDataSource="grdVeresiyeFisList_NeedDataSource" OnDetailTableDataBind="grdVeresiyeFisList_DetailTableDataBind" ShowStatusBar="True" EnableHeaderContextMenu="True" CellPadding="0" CellSpacing="0" ShowFooter="true">
 
                    <HeaderStyle Width="150px" CssClass="cagdasGridHeader"></HeaderStyle>
                    <MasterTableView DataKeyNames="VeresiyeMasterID" NoMasterRecordsText="Kayıt bulunamadı." AllowSorting="True" TableLayout="Auto">
                         
                        <Columns>                          
                            <telerik:GridClientSelectColumn UniqueName="chkSelectColumn" HeaderStyle-Width="30px"></telerik:GridClientSelectColumn>
                            <telerik:GridBoundColumn DataField="VeresiyeMasterID" HeaderText="VeresiyeMasterID" ShowFilterIcon="false" Display="false" UniqueName="VeresiyeMasterID" AllowFiltering="false"></telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="FisAdi" HeaderText="Fis Adı" UniqueName="FisAdi" HeaderStyle-Width="100px" AllowFiltering="false"></telerik:GridBoundColumn>
                          .......
                          ........
                        </Columns>
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" AllowKeyboardNavigation="True"
                        AllowDragToGroup="True" ReorderColumnsOnClient="True" EnableRowHoverStyle="True">
                        <ClientEvents OnRowContextMenu="RowContextMenu" />
                        <Animation AllowColumnReorderAnimation="true" ColumnReorderAnimationDuration="200" />
 
                        <Selecting AllowRowSelect="true"></Selecting>
 
                        <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
                        <Resizing AllowColumnResize="True" AllowRowResize="false" ClipCellContentOnResize="True"
                            EnableRealTimeResize="True" AllowResizeToFit="True"></Resizing>
                    </ClientSettings>
 
                </telerik:RadGrid>
Viktor Tachev
Telerik team
 answered on 31 Mar 2014
16 answers
134 views
In our project, we use Rad Panel Bar and Rad Panel Item to hold labels, check box and radio button with expand and collapse feature.

When a panel gets expanded, labels and controls are missing most of the times and if we collapse and expand then it appears.

Please advise how to make the appearance consistent always.

Thanks
Sudhakar
Plamen
Telerik team
 answered on 31 Mar 2014
4 answers
201 views
I am trying to load a RadGrid based on the value inside the RadComboBox. I have tried a few things but can't quite get it to work. The user is supposed to select a value("email") from the RadComboBox and a RadGrid should be loaded onto the page. At the moment one of the PROCs have an email hard-coded so a grid is loaded onto the page which contains the data for that specific user. I also have a variation of that PROC that is supposed to change the RadGrid whenever the user selects a different email, but I can't get it to work. Once the user selects an email they will see a grid which contains the Customer Number, if they click the Customer Number they will see a drop down which contains the number along with an error message.

I have attached the aspx, .cs, PROCs, and a photo of what the page looks like with one hard-coded existing email from the RadComboBox.

Pavlina
Telerik team
 answered on 31 Mar 2014
6 answers
337 views
Is it possible to add the current record data into ConfirmText message? The code below does not work. I know that it can be done in the code behind but I look for simpler solution. 
<telerik:GridButtonColumn UniqueName="DeleteColumn"
    ButtonType="ImageButton"
    CommandName="Delete"
    ConfirmText='Are you sure you want to delete this record with id: <%# Eval("ID")%> ?'
    ConfirmTitle="Delete Record"
    ConfirmDialogType="RadWindow"
    Text="Delete" >
    <ItemStyle HorizontalAlign="Center" Width="20px" />
</telerik:GridButtonColumn>
Eyup
Telerik team
 answered on 31 Mar 2014
4 answers
136 views
I am attempting to upgrade a .Net web app with Telerik RadControls Q3 2011 to Q3 2013 and have run into skinning issues with the RadSlidingZone.  The browser is also being upgraded from IE8 running in Compatibility View to IE11 in Edge Mode.

​Attached (IE8_RadSlidingZone.jpg) is what the RadSlidingZones on the far left used to look like and needs to maintain its appearance.

Attached (IE11_RadSlidingZone.jpg) is what the RadSlidingZones look like after upgrading the Telerik .dll's and running in IE11. 

The issue is the size/height of each sliding zone has shrunk down so that the text is unreadable.

<telerik:RadPane runat="server" ID="pNav" SkinID="pLNav" Height="100%" OnClientExpanded="pNav_ClientExpanded">
    <div id="DivSLZone" runat="server" style="float: left; clear: none; width: 22px;
        height: 100%;" class="tabsContainer">
        <telerik:RadSlidingZone ID="slZone" runat="server" SlideDirection="Right" ClickToOpen="true"
            Width="22">
            <telerik:RadSlidingPane ID="slPane1" Title="Tab 1 Title" runat="server" Width="275"
                EnableDock="false" Height="100px">
                <div runat="server" id="divSlPane1">
                </div>
            </telerik:RadSlidingPane>
            <telerik:RadSlidingPane ID="slPane2" Title="Tab 2 Title" runat="server" Width="275"
                EnableDock="false" Height="100%">
                <div runat="server" id="divSlPane2">
                </div>
            </telerik:RadSlidingPane>
            <telerik:RadSlidingPane ID="slPane3" Title="Tab 3 Title" runat="server" Width="275"
                EnableDock="false" Height="100%" OnClientExpanded="slPane3_ClientExpanded" OnClientCollapsed="slPane3_ClientCollapsed">
                <div runat="server" id="divSlPane3">
                </div>
            </telerik:RadSlidingPane>
        </telerik:RadSlidingZone>
    </div>
    <div style="height: 100%;">
        <asp:PlaceHolder runat="server" ID="phLeft" />
    </div>
</telerik:RadPane>

.tabsContainer, .rspTabsContainer {
    background: #B0C4DE !important;
    border-right: #336699 1px solid !important;
}

Any suggestions?

Thanks,

Rob
Bozhidar
Telerik team
 answered on 31 Mar 2014
6 answers
545 views
Hi,

I am trying to implement a row total function in Javascript for a RadGrid. Searching the help and forums I have managed to set up a function that is called by onBlur for each of my numeric columns, but cannot seem to get the value of the fields held in the template columns.

The definition of the columns (14 in total) is:


<telerik:GridTemplateColumn UniqueName="colTime1" AllowFiltering="False" HeaderText="1" FooterStyle-Width="50" HeaderStyle-Width="50" ItemStyle-Width="50">
                        <ItemTemplate>
                            <asp:TextBox ID="editTime1" runat="server" Width="40px"></asp:TextBox>
                        </ItemTemplate>
                        <FooterStyle Width="50px" />
                        <HeaderStyle Width="50px" />
                        <ItemStyle Width="50px" />
                    </telerik:GridTemplateColumn>
 
And the javascript functin is:

function valueChanged(totalTime, textbox, c, r) {
                   var grid = $find("<%=RadGrid1.ClientID %>");
                   var MasterTable = grid.get_masterTableView();
                   var Rows = MasterTable.get_dataItems();
                   var valnow = textbox.value;
                   var total = valnow;
                   for (col = 1; col < 15; col++) {
                       if (col != c) {
                           var row = Rows[r - 1];
                           var columnName = "EditTime".concat(col);
                           var textTime = row.findControl(columnName);
                           var colVal = textTime.get_value();
                           if (!isNan(colVal)) {
                               total += colVal;
                           }
                           else {
                               textTime.set_value("");
                           }
                       }
                   }
                   totalTime.set_value(total);
               }

Everything is getting called OK but the lines:

var row = Rows[r - 1];
var columnName = "EditTime".concat(col);
var textTime = row.findControl(columnName);
var colVal = textTime.get_value();

Always returns null for textTime. The examples on the forum here seem to indicate the syntax is correct.

Am I implementing this wrong, or is there a better way of obtaining the values?

David Penny
David Penny
Top achievements
Rank 2
 answered on 31 Mar 2014
1 answer
91 views
Hello,

I am dynamically adding a GridTemplateColumn to the grid. The column is added as required the first page load but on each following postback I am getting a new empty columm with header "Action". Any Idea?

 protected void Page_Init(object sender, EventArgs e)
        {
   
              var col = this.requestGrid.MasterTableView.Columns.FindByUniqueNameSafe("ActionId");
               
                GridTemplateColumn actionColumn = new GridTemplateColumn();
                this.requestGrid.MasterTableView.Columns.Add(actionColumn);
                actionColumn.ItemTemplate = new ActionTemplate("actionID");                
                
                actionColumn.DataField = "ActionID";
                
                actionColumn.HeaderText = "Action";
               
        }
Shinu
Top achievements
Rank 2
 answered on 31 Mar 2014
1 answer
103 views
Hi,
I am facing problem in the RADGRID column alignment. I am using 2013.3.1015.35 version. In firefox it works good but in IE 10 it's not working. In IE 11 it's working good.

Regards,
Rathina
Venelin
Telerik team
 answered on 31 Mar 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?