Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
In my current project, I have a RadGrid with Paging and Sorting enabled.

The screenshot of the RadGrid is available on http://imageshack.us/f/848/dataaccessradgrid.jpg

When a column is sorted or unsorted, I would like the RadGrid to jump to the first page of the RadGrid.

Can you please show me how to do this?

Thanks,
Herman
Vasil
Telerik team
 answered on 03 May 2011
2 answers
100 views
Hello,

Is there an easy way to find the intermediate state in the tri-state checkbox with javascript?

I understand that there is a style applied to the checkbox based on child states, just wasn't sure if there was an actual property of the treeview checkbox that would be easy to find.

Thanks,
Peppi Vecchio
Top achievements
Rank 1
 answered on 03 May 2011
0 answers
172 views
Hi,
In my project i used radgrid and written server side logic for all events.
For better performance now i am calling server side methods from client side script.
In aspx page i used one master page, in that master page i used EnablePageMethods="true" property with in scriptmanager.

<ajax:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
         </ajax:ScriptManager>

In aspx page i have checkbox in radgrid.
         <telerik:GridTemplateColumn UniqueName="Complete" HeaderText="Completed" AllowFiltering="false">
                        <ItemTemplate>
                            <asp:Panel ID="Panel1" runat="server" Width="2px">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="true" onclick="GetMessage()" />
                            </asp:Panel>
                        </ItemTemplate>
         </telerik:GridTemplateColumn>

In onclick "GetMessage()" function called which is defined in below script.

<script type="text/javascript" language="javascript">
           function GetMessage() {
               PageMethods.CompletedCheck(sender, args, onSucceeded, onFailed);
               alert("working");
            }

            function onSucceeded() {
                alert("ok");
            }

            function onFailed() {
                alert("fail");
            }

In codebehind file i have below method

<System.Web.Services.WebMethod()> _

    Public Shared Sub CompletedCheck(ByVal sender As Object, ByVal e As System.EventArgs)

    End Sub

 

but i got this error.
Microsoft JScript runtime error: 'sender' is undefined.

Thanks and Regards,
Nagendra.

Nagendra
Top achievements
Rank 1
 asked on 03 May 2011
2 answers
103 views
I am currently using the context menu like this. It works on all img tags existing at page load. However, If when i try to create an img client side it does not have the context menu. I know you can use show method on the click event however I want it on the left click. Is it possible, and if so how?
<telerik:RadContextMenu runat="server" ID="conTest" OnClientShowing="ClientShowing"
    OnClientItemClicked="ClientClicked">
    <Targets>
        <telerik:ContextMenuTagNameTarget TagName="img" />
    </Targets>
    <Items>
        <telerik:RadMenuItem Text="Edit">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Delete">
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Text="View Full">
        </telerik:RadMenuItem>
    </Items>
</telerik:RadContextMenu>
jeff
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
96 views
Hi,

Please help, I want to set autopostback to False at Radgrid filterIcon.
The purpose is to filter by multiple columns at once when I click on a button at  <CommandItemTemplate> .

Tsvetina
Telerik team
 answered on 03 May 2011
1 answer
61 views
Hello

I am trying to use a RadPanelBar with an XMLDataSource like this :

<telerik:RadPanelBar ID="pnlBar" Runat="server" Skin="Simple"  Width="100%" DataSourceID="XmlDataSource1" DataTextField="Text" DataValueField="Value"></telerik:RadPanelBar>
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/FluxRSS.xml"    XPath="/items/*"></asp:XmlDataSource>

with a RadButton in the same page.

But in the RadButton onClick event, pnlBar.SelectedItem is always null.
How can I do to make the selectedItem persist over a postback?

Thank your for your answer.
Read you soon.
Kate
Telerik team
 answered on 03 May 2011
7 answers
174 views
Hi

Is there a way to create and attach context menus to the items on the tree based on the level they are on after the data is bound to the tree??
Would it be any different if it were a load on demand tree.?
Because I would have or not have different context menus on different nodes depending on their level.

Thanks
Helen
Telerik team
 answered on 03 May 2011
6 answers
362 views
I get the following jscript error:

Error updating jscript Intellisense: Telerik.Web.UI.Common.Jquery-vsdoc.js:Telerik.Web.UI: '_$' is undefined @ 2217:8.

I followed the documentation as described here: http://www.telerik.com/help/aspnet-ajax/introduction-jquery-intellisense.html but the problem still exists.

What to do ?
Pavel
Telerik team
 answered on 03 May 2011
7 answers
191 views
To maintain UI consistency in the site, I'd like to use the RadWindow in a fixed position as a normal div-like container.
 
I don't need (or want) it to pop-up, float, collapse, move or disappear.

Does anyone have any suggestions, advice, or example on doing that?

Thanks,

Ken
Georgi Tunev
Telerik team
 answered on 03 May 2011
3 answers
81 views
Hi all,

I have very strange issue, can some one enlighten me what can be the reason?
Here is brief description of what going on:
  1. RadGrid binded to List<WorkstationInfo> where Workstation is simple class
  2. binding happen in NeedDataSource event
  3. In SortCommand, I perform custom sorting.

 var sortExpr = new GridSortExpression();
                switch (e.OldSortOrder)
                {
                    case GridSortOrder.None:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = GridSortOrder.Descending;


                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                    case GridSortOrder.Ascending:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = gridWorkstationStatus.MasterTableView.AllowNaturalSort ? GridSortOrder.None : GridSortOrder.Descending;
                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                    case GridSortOrder.Descending:
                        sortExpr.FieldName = e.SortExpression;
                        sortExpr.SortOrder = GridSortOrder.Ascending;


                        e.Item.OwnerTableView.SortExpressions.AddSortExpression( sortExpr );
                        break;
                }


                e.Canceled = true;
                gridWorkstationStatus.Rebind();

All works fine first to clicks on any columns, then it stop working. To continue sort, the mouse should be clicked on logo or on already existed sort image button, but when other column is clicked, nothing happen - the post-back event not fired and no events called on server.

It's work fine on chrome, but on IE 8,9 it is have this issue.

Here is aspx page code:
<%@ Page Title="" Language="C#" MasterPageFile="~/TreePartMaster.Master" AutoEventWireup="true"
    Async="true" CodeBehind="LabInfo.aspx.cs" Inherits="Intel.Diamond.Web.Views.Monitor.SegmentView" %>


<asp:Content ID="Header" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadGrid ID="gridWorkstationStatus" runat="server" AutoGenerateColumns="False"
        GridLines="None" AllowSorting="True" 
        GroupingEnabled="False" 
            onneeddatasource="gridWorkstationStatus_NeedDataSource" 
            onsortcommand="gridWorkstationStatus_SortCommand">
        <MasterTableView PageSize="30">
            <CommandItemSettings ExportToPdfText="Export to Pdf" 
                ShowAddNewRecordButton="False"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="SegmentId" DataType="System.Int32" FilterControlAltText="Filter SegmentId column"
                    HeaderText="SegmentId" SortExpression="SegmentId" UniqueName="SegmentId" 
                    Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkstationTypeId" DataType="System.Int32" FilterControlAltText="Filter WorkstationTypeId column"
                    HeaderText="WorkstationTypeId" SortExpression="WorkstationTypeId" 
                    UniqueName="WorkstationTypeId" Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkStationStatus" FilterControlAltText="Filter WorkStationStatus column"
                    HeaderText="Workstation Status" SortExpression="WorkStationStatus" 
                    UniqueName="WorkStationStatus">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkStationName" FilterControlAltText="Filter WorkStationName column"
                    HeaderText="Workstation" SortExpression="WorkStationName" 
                    UniqueName="WorkStationName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WorkstationType" FilterControlAltText="Filter WorkstationType column"
                    HeaderText="Workstation Type" SortExpression="WorkstationType" 
                    UniqueName="WorkstationType">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="HITManagerVersion" FilterControlAltText="Filter HITManagerVersion column"
                    HeaderText="HIT Version" SortExpression="HITManagerVersion" 
                    UniqueName="HITManagerVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="IMVersion" FilterControlAltText="Filter IMVersion column"
                    HeaderText="IM Version" SortExpression="IMVersion" UniqueName="IMVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="DriverVersion" FilterControlAltText="Filter DriverVersion column"
                    HeaderText="Driver Version" SortExpression="DriverVersion" 
                    UniqueName="DriverVersion">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="CableLossLastUpdated" FilterControlAltText="Filter CableLossLastUpdated column"
                    HeaderText="CableLoss Modified" SortExpression="CableLossLastUpdated" 
                    UniqueName="CableLossLastUpdated">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="HitManagerStatus" FilterControlAltText="Filter HitManagerStatus column"
                    HeaderText="HIT Status" SortExpression="HitManagerStatus" 
                    UniqueName="HitManagerStatus">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="LastUpdated" FilterControlAltText="Filter LastUpdated column"
                    HeaderText="Last Updated" SortExpression="LastUpdated" 
                    UniqueName="LastUpdated">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <HeaderStyle Wrap="False" />
        </MasterTableView>
        <HeaderStyle Wrap="False" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
    <telerik:RadAjaxManagerProxy ID="LabMonitorAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gridWorkstationStatus">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridWorkstationStatus" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
</asp:Content>



Daniel
Telerik team
 answered on 03 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?