Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
Is there a document somewhere that outlines what the order of events are for each control?

For example, when a grid has inline editing and the edit icon is clicked, what events are kicked off and in what order?

This would be extremely helpful to me so I can determine where to put certain server code in the code behinds.

Thanks!
Angel Petrov
Telerik team
 answered on 28 Aug 2013
5 answers
159 views
Hi ALL,
I have issue with resizing Radgrid which inside the Radpan (rpMiddlePane) -> contetnplaceholder(cphDailogPlaceHolder).  
I need to fit the grid in current page screen:
  1. When i resize the current window.
  2. When i collasps the Radsplitter to the Top and to the Right.
I went through the demo http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultcs.aspx?product=splitter but didn't able solve the problem. I have posted sample code of my master page.

<div style="height: 100%;">
        <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%"
            Orientation="Horizontal" >
            <telerik:RadPane ID="TopPane" runat="server" Height="150" MinHeight="115" MaxHeight="150"
                Scrolling="none">
                <!-- Place the content of the pane here -->
                <!--Ribbonbar starts-->
                <telerik:RadTabStrip ID="rtsActionMenuToolBar" runat="server" MultiPageID="RadMultiPage1"
                    SelectedIndex="0" Style="padding-left: 5px;" ShowBaseLine="true">
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" BackColor="Transparent">
                </telerik:RadMultiPage>
                <!--Ribbonbar ends-->
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward"  />
            <!--Middle Content starts-->
            <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500">
                <telerik:RadSplitter ID="rsMainSplitter" runat="server" BorderSize="0" LiveResize="true"
                    ResizeWithBrowserWindow="true">
                    <telerik:RadPane ID="rpLeftPane" runat="server" Scrolling="None" Width="250">
                        <telerik:RadTreeView ID="rpbLeftPaneSections" DataValueField="URL" DataTextField="DisplayName"
                            runat="server" Width="250">
                        </telerik:RadTreeView>
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="rsbMidSplitterDialog" runat="server" CollapseMode="Forward">
                    </telerik:RadSplitBar>
                    <telerik:RadPane ID="rpMiddlePane" runat="server" >
                        <asp:ContentPlaceHolder ID="cphDialogPlaceHolder" runat="server">
                        </asp:ContentPlaceHolder>
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </telerik:RadPane>
            <!--Middle Content ends-->
        </telerik:RadSplitter>
    </div>

I hope i can get the solution from you guys.... 

Thanks,
Abhishek K

Vessy
Telerik team
 answered on 28 Aug 2013
1 answer
135 views
I am creating a an htmlchart completely in the code behind.  I utilized one of the demos. 

I now want to extend that chart as a stacked column.  It works well.

Problem I am having is having the x-axis labels showing up.  if I do this, I get an index error

ch1.PlotArea.XAxis.Items.Item(0)...

Since I am declaring each series in the code, and each categoryseriesitem in a row loop, it is not databound in a traditional manner.  The following does not throw an error, but the x-axis label is not visible either
ch1.PlotArea.XAxis.DataLabelsField = "Name"

Any suggestions? This is close to being done, but this is the last piece.

Joel
Top achievements
Rank 2
 answered on 28 Aug 2013
4 answers
152 views
I need to customize the group headings and just can't figure it out.
I've read the documentation for customizing GridGroupHeaderItem and I've tried to follow the sample provided but it just isn't working quite right.

The issue is that I have more than one column that needs additional information in the header, so using e.item.DataItem doesn't help after the initial grouping. So how do I find the header and row data for the secondary groupings?

The grid needs to be able to group on all the columns that need customizing, but it won't be grouped when it loads. Grouping will be done if/when user chooses. So I can't follow the exmple provided in documentation which sets up the grouping declaratively when the grid loads.
Rayne
Top achievements
Rank 1
 answered on 28 Aug 2013
3 answers
110 views
hi
i using radgride  ...
when i load my page by jquery load (content.load("NewPerson.aspx"))
raggride client-side row selection not work ....
plz help me ....
thanks
Angel Petrov
Telerik team
 answered on 28 Aug 2013
2 answers
429 views
Hello,
I have a RADCombobox which holds list of years with checkboxes for multiple year selection.
the year starts with 2011 and and it increments by 1 till the current year. Means ComboBox will hold the values like 2011,2012,2013.
Here I need to validate the selection at client side. Requirement is, user can select a single value or two values. If the selection is more than one then the selection should be consecutive. 
Eg: user can select 2011 & 2012 but not 2011 & 2013, the difference should be one.

Please help me with java script for this.
Kothai
Top achievements
Rank 1
 answered on 28 Aug 2013
2 answers
384 views
Hi, i have a check box to edit normal or admin user, I'd like to turn this checkbox visible to False if the User to be edited is the same logged. this is the code I have.
Resumed code
<MasterTableView AutoGenerateColumns="false" EditMode="EditForms" CommandItemDisplay="Top" DataKeyNames="name, admin ">
 <Columns>
  <telerik:GridBoundColumn UniqueName="name" DataField="name" meta:resourceKey="name"/>                        
  <telerik:GridCheckBoxColumn UniqueName="admin" DataField="admin" DefaultInsertValue="False" DataType="System.Boolean" meta:resourceKey="Admin"/>                                              
  <telerik:GridEditCommandColumn HeaderStyle-Width="100px" meta:resourceKey="EditLnk"/>                        
  <telerik:GridButtonColumn CommandName="Acervos" UniqueName="AcervosColumn" HeaderStyle-Width="100px" meta:resourceKey="AcervosLnk"  />
  <telerik:GridButtonColumn CommandName="Delete" UniqueName="DeleteColumn" HeaderStyle-Width="100px" meta:resourceKey="DeleteLnk"/>                                                
  </Columns>
   <SortExpressions>
   <telerik:GridSortExpression FieldName="name" SortOrder="Ascending" />
   </SortExpressions> 
   <EditFormSettings EditFormType="Template" >
   <FormTemplate >
    <div style="width: 300px" >
    <div style="margin:5px;">
     <asp:Label ID="NameLbl" runat="server" meta:resourceKey="NameLbl"/>&nbsp<asp:TextBox ID="NameTxt" runat="server" Text='<%# Bind("name") %>'/>
    </div> 
     <div style="margin:5px;">
       <asp:Label ID="PassLbl" runat="server" meta:resourceKey="PassLbl"/>&nbsp<asp:TextBox ID="PassTxt" runat="server" Text='<%# Bind("pass") %>' TextMode="Password" /> 
     </div> 
     <div style="margin:5px;">
       <asp:CheckBox ID="AdminChk" runat="server" meta:resourceKey="AdminChk" Checked='<%# Bind("admin") %>' />                                  </div> 
     <div style="margin:10px;text-align:right;">
     <telerik:RadButton ID="btnUpdate" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), AddJS, UpdateJS) %>' runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'/>
     <telerik:RadButton ID="btnCancel" runat="server" CausesValidation="False" CommandName="Cancel" meta:resourceKey="CancelBtn" />
     </div> 
     </div>
     </FormTemplate>
     </EditFormSettings>
     </MasterTableView>

Code Behind 

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand

        If e.CommandName = RadGrid.EditCommandName Then

            Dim Usuario As String = HttpContext.Current.User.Identity.Name.ToLower

            If Usuario = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("name").ToString().ToLower Then
                Dim editItem As GridEditFormItem = CType(e.Item, GridEditFormItem)
                Dim ChkBxItem As CheckBox = CType(editItem.FindControl("AdminChk"), CheckBox)
                ChkBxItem.Checked = False
            End If
        End If

 Every time I run, it shows a message! Can not convert an object of type 'Telerik.Web.UI.GridDataItem' in type 'Telerik.Web.UI.GridEditFormItem'. 

How can I solve this?
Lucas
Top achievements
Rank 1
 answered on 28 Aug 2013
3 answers
371 views
Hello - Could you help me how to Show the 'RadContextMenu' in a Row only when you click a child control(link button/image button) of TemplateColumn? Appreciate your help.
 
 
<script type="text/javascript">
function ShowContextMenuOnlyWhenYouClickMe(sender, eventArgs) {
 
 var menu = $find("<%= RadMenuWaterLevel.ClientID %>");
 
//How do I get the domEvent & masterTable to select the current row?   
menu.show(domEvent); ??
 
 }
  </script>
 
 
 <telerik:RadGrid runat=server AllowPaging="True"
                        AllowSorting="True" DataSourceID="ObjectDataSourceData" GridLines="None"
                        Skin="WebBlue" ID="RadGridGWSearchResultsWaterLevels" ShowStatusBar="True"
                        GroupingEnabled="False" PageSize="100" AutoGenerateColumns="false">
                        <clientsettings>
                            <scrolling allowscroll="True" usestaticheaders="True" />
                                           <Selecting AllowRowSelect="True" />
                            <ClientEvents onRowClick="RowContextMenuWaterLevel" ></ClientEvents>
                        </clientsettings>
                        <mastertableview datasourceid="ObjectDataSourceData"
                            commanditemdisplay="TopAndBottom">
                            <commanditemsettings showaddnewrecordbutton="False"
                                showexporttocsvbutton="True" showrefreshbutton="False" />
                                                <Columns>
                                 <telerik:GridBoundColumn DataField="Result Parameter Name" HeaderText="parameter Name" DataType="System.String" >
                                </telerik:GridBoundColumn>
  
                                <telerik:GridBoundColumn DataField="Result Parameter Name Count" HeaderText="Count" DataType="System.Int32" >
                                </telerik:GridBoundColumn>
  
                                 <telerik:GridTemplateColumn
                        UniqueName="ComboColumn2"
                        HeaderText="" >
                            <ItemTemplate>
                                <input id="clickDropDown" type="button" value="Press Me"  onclick="ShowContextMenuOnlyWhenYouClickMe" />
                                
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>  
  
  
                                </columns>
  
                        </mastertableview>
                        <PagerStyle Position="TopAndBottom"></PagerStyle>
                    </telerik:RadGrid>
  
                    <telerik:RadContextMenu ID="RadMenuWaterLevel" runat="server"
                        EnableRoundedCorners="true" EnableShadows="true">
                        <Items>
                            <telerik:RadMenuItem Text="Map" />
                            <telerik:RadMenuItem Text="Download" />
                        </Items>
                    </telerik:RadContextMenu>



Thanks
Chandra
Obaid
Top achievements
Rank 1
 answered on 28 Aug 2013
4 answers
305 views
ok, so this seems really simple but for the life of me I can't find where this is changed.
All of the datepickers are affected in the entire project.
When I click on them the popup is two inches below where it should be. Can anyone give me a suggestion on where I can reset its positioning??


Venelin
Telerik team
 answered on 28 Aug 2013
5 answers
127 views
Hi there,

The rad editor does not render properly in version of IOS below 5.0 and Safari version 5.0, its doesn't render the HTML rather the HTML is represented in text area as it is, please the screen attached. Also please let us know what can be done to fix this?
Misho
Telerik team
 answered on 28 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?