Telerik Forums
UI for ASP.NET AJAX Forum
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
401 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
366 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
350 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
271 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
103 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
79 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
132 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
941 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
1 answer
84 views
I am having a problem with a radgrid page that is based off the example code found here: 
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

It uses the same functionality but includes two pageviews that are radcharts.

The radgrid functions just fine with all radchats functioning and all data being displayed up until the 7th page (displaying 5 records per page). On the 34th record and any records after this one when I try to expand a record (in the example above this would be clicking on the persons name) I get the following error:

Line: 16886
Error: Unterminated string constant

Line 16886 is:
}},_dataBind:function(){var c=eval(this._dataSource);


All data is displayed after this error, and I can continue paging though nested records etc. but the nested tabs are un-clickable.

I am pretty sure it is not specific to my data because I have removed several records to insure none of these were causing an error.  I also know what a unterminated string is, but I can't figure out why this is happening.  Is it simply reaching some type of maximum limit set on allowed string length after X number of records?


Maria Ilieva
Telerik team
 answered on 28 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?