Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
139 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
107 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
412 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
378 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
359 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
277 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
106 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
2 answers
82 views
Hello,

how can I change the close button in a RadTooltip

RenderMode   = lightweight

Best Regards
Bernhard

michael schneider
Top achievements
Rank 1
 answered on 28 Aug 2013
1 answer
134 views
Hi

just started working with rad controls and after a successful implementation of radtooltipmanager with custom control (contails a repeater) to populate it i want to change the style of the scroll bar (js scroll bar preferably).
how can i do this? i am able to add a default scroll bar using ContentScrolling="Y" property.

plz help

Snap Attached
Marin Bratanov
Telerik team
 answered on 28 Aug 2013
18 answers
948 views
Hi  Al,

I am using a RadWindow inside a RadWindowManager with version Q2 2008.
 
I am opening an .aspx page using this rad window. NOw I have a close button on the .aspx page which is opened using this rad window.

I want to close this window using this close button.

PLease suggest.
Marin Bratanov
Telerik team
 answered on 28 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?