Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
81 views
I am trying edit on double click in Grid, but getting javascript error "Expected }".  I am implementing this feature from this page

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

I have tried data binding using SqlDataSource and manually created dataset using data table on seperate pages.
Purushottam Somani
Top achievements
Rank 2
 answered on 13 Sep 2010
1 answer
129 views
I have a fairly straightforward hyperlink bound column in a RadGrid like so:

<telerik:GridHyperLinkColumn DataNavigateUrlFields="FileID" DataNavigateUrlFormatString="~/goto.aspx?f={0}"
    DataTextField="Name" DataTextFormatString="{0}" HeaderText="Filename" UniqueName="FileName"
    Target="_blank" SortExpression="Name">

What I'd like to do is put a tooltip on the hyperlink that's bound to something other than the DataTextField.  Is there a way to do this in the GridHyperLinkColumn?
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2010
0 answers
115 views
I have a 3-level hierarchical structure in the radgrid.  All the data is being pulled programmatically.

Is there any way to only allow level-2 rows to be drag-and-dropped? 
Example, if the grid looks like this:
            
Week #
  1
        Section
            A
                     Names
                      Sarah
            B
                     Names
                      Jim
                      John
            C
                     Names
                      Bob
                      Karl
                      Jane
  2
        Section
            D
                     Names
                      Karla
                      Jack
           
etc.

I want to be able to only drag sections between various week numbers.  If I drag Section "D" from Week 2 into Week 1, I want it to take all the names in D with it.

Currently, if I allowdragdrop, every row is movable.
Any help would be appreciated.

EDIT:
Well, scratch that, I figured it out.  Sorry, I guess I just  overlooked the fact that I could distinguish between levels of the hierarchy when I did all the reordering in the  RowDrop event.

Remove this thread, if you'd like. 
jasenko
Top achievements
Rank 1
 asked on 12 Sep 2010
2 answers
217 views
I'm changing the gridview by RadGrid and am using the export feature (the same site http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx example, the buttons on the same grid and with all three options checked:
Export only date
Ignore paging (exports all pages)
Open Exported data in new browser window

Except that when I put on my pages, I realized that the export does not work when you have the UpdatePanel.

How do I fix this?
Rudá Cunha
Top achievements
Rank 2
 answered on 12 Sep 2010
6 answers
418 views
Hi
I am using a RadMenu with items created on the client. All menu item selection events are client side.
It appears that the hover Css class is maintained by a menu item when clicked and only removed when another item is clicked.
This is not desirable when a root item has no child items.
In one instance in my application, selecting a root item opens a modal RadWindow. Once the RadWindow is closed, the hover Css class on the selected root item can not be removed. It remains set until the application is rebooted.
Is there a remedy for this issue?
Regards
Harry Kable
Admin
Top achievements
Rank 1
 answered on 12 Sep 2010
2 answers
256 views
Hello
I need to set grid rows to edit mode base on there model data. For this purpose I use ItemDataBound event as following

Private Sub weldsGrid_ItemDataBound(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridItemEventArgs) Handles weldsGrid.ItemDataBound 
    If (e.Item.ItemType = Telerik.Web.UI.GridItemType.Item OrElse _ 
        e.Item.ItemType = Telerik.Web.UI.GridItemType.AlternatingItem OrElse _ 
        e.Item.ItemType = GridItemType.EditItem) Then 
 
      If (e.Item.ItemIndex > -1) Then 
        Dim row = CType(CType(e.Item.DataItem, DataRowView).Row, MyDataSet.DataSetRow) 
        e.Item.Edit = row.IsActive() 
      End If 
 
    End If 
  End Sub 

And it set up the first time row to edit mode but then if I make grid rebind with another filter in my stored procedure and load other data incorrect row will be editable (on the same place as was item before - it passed to ItemDataBound with EditItem type and code set Item.Edit to false). After that any postback cause viewstate load exception
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.
   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState)   at System.Web.UI.Control.LoadViewStateRecursive(Object savedState)   at System.Web.UI.Page.LoadAllState()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Is it possible somehow to manipulate with row Edit mode from ServerSide using model data?
Thanks in advance
cheburek
Top achievements
Rank 1
 answered on 12 Sep 2010
9 answers
125 views
hi, when i try to sort or move page, the whole page is posted back and i get nothing in my grid.
when i refresh the page after that, i see it ok.
How do i prevent the posting back and how do i make it display the contents ok.
this is my grid:
<telerik:RadGrid ID="RadGridMailingList"
     Width="97%"
    AllowSorting="True" PageSize="15" AllowPaging="True"
    runat="server" Culture="he-IL" ShowStatusBar="True" GridLines="Vertical">
    <ExportSettings ExportOnlyData="True" FileName="MailingList"
        IgnorePaging="True" OpenInNewWindow="True">
    </ExportSettings>
    <MasterTableView Width="100%" Summary="RadGrid table" Dir="RTL"
        NoMasterRecordsText="אין רשומות להצגה." CommandItemDisplay="Top">
        <CommandItemSettings ExportToPdfText="יצוא ל PDF"
            ShowExportToCsvButton="True" ShowExportToExcelButton="True"
            ShowExportToWordButton="True" ExportToCsvText="יצוא ל CSV"
            ExportToExcelText="יצוא לאקסל" ExportToWordText="יצוא ל Word"
            RefreshText="רענון" ShowAddNewRecordButton="False" ShowRefreshButton="False"></CommandItemSettings>
        <PagerStyle PagerTextFormat="Change page: {4} &nbsp;עמוד <strong>{0}</strong> מתוך <strong>{1}</strong>, פריטים <strong>{2}</strong> עד <strong>{3}</strong> מתוך <strong>{5}</strong>." />
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" PageSizeLabelText="גודל עמוד:"
        VerticalAlign="Middle" />
    <StatusBarSettings LoadingText="טוען..." ReadyText="מוכן" />
</telerik:RadGrid>

also there is a bug in PageSizeLabelText, seems like the value can't be applied and the original "Page Size:" remains.
Ronen
Top achievements
Rank 1
 answered on 12 Sep 2010
2 answers
63 views
Hi there,

Is it possible to use the OnClientRecurrenceActionDialogShowing event to set the location of where the dialog opens on the screen? We have a long vertical list of resources (rooms) on our calendar, and when a recurring appointment is edited the dialog box opens centered vertically on the long scrolling browser window. Often far away from where the user has chosen an appointment, resulting in them having to scroll down to find the dialog to do the edit.

Thanks
Gavin

<script type="text/javascript">
   
function OnClientRecurrenceActionDialogShowing(sender, eventArgs)
   {
       eventArgs.set_cancel(true);   
       //Edit this instance only:   
       //eventArgs.set_editSeries(false);   
              
       //Edit the entire series:   
       eventArgs.set_editSeries(true);
   }        
</script>
Veronica
Telerik team
 answered on 11 Sep 2010
1 answer
80 views

When dragging and dropping an appointment, the AppointmentUpdate Server event has the same value for the event args for the e.Appointment AND e.ModifiedAppointment.  When I add the client event OnClientAppointmentMoveEnd, I get the correct modified value on the client side, but the serverside is always wrong.
How can I get the modified Appointment from the AppointmentUpdate Server event after dragging ?

Thanks
Peter
Telerik team
 answered on 11 Sep 2010
3 answers
203 views
Hello,

I have 2 rad menus on my page. One for the main site navigation and the other for general content navigation.

The main site navigation has the following properties:

<telerik:RadMenu ID="mainMenu" runat="server" EnableEmbeddedSkins="False">

I have custom images I am using for this menu.

My 2nd menu is just a standard menu with EmbeddedSkins turned on. The problem is with EmbeddedSkins turned on in the 2nd menu, it enables it in the first menu as well.

How can I enable in one and disable in the other without affecting both menus?

thanks
Kamen Bundev
Telerik team
 answered on 11 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?