Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
200 views

I need help figuring out why my sharedcalendar creates a postback (which refreshes the entire pages, like if I had no AJAX) after the user clicks to change months,

      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadCalendar2">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadCalendar2" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="RadDatePicker1">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadDatePicker1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
 
 
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Culture="English (United States)" Skin="Telerik" SharedCalendarID="radcalendar2">  
      <DateInput runat="server" LabelCssClass="radLabelCss_Telerik" Skin="Telerik">  
      </DateInput> 
      <Calendar runat="server" Skin="Telerik" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x">  
      </Calendar> 
 <DatePopupButton CssClass="radPopupImage_Telerik" /  
 

 

Maria Ilieva
Telerik team
 answered on 08 Dec 2008
4 answers
182 views
Hi,

I'm experimenting with the rad editor in combination with drag and drop buttons, which can be dragged onto the radeditor content area.
The radeditor will insert text with the button value. I've got this working without a hitch, the only problem is that i use pasteHtml(), and it's unable to specifiy a position. The dragged button will be inserted at cursor position instead of the location of the mouse. Is there any way to pass the mouse coords so that it will be placed correctly? Or is there any way to make the cursor follow the mouse while dragging?

Bartdesign
Top achievements
Rank 2
 answered on 08 Dec 2008
5 answers
154 views
hello,

I seem to have an issue with the dialogs in prometheus radeditor when the page containing the editor is in a frame in a frameset.

The dialogs appear at the bottom of the page and cannot be moved and don't fully work, it is indicating a javascript error.

If I copy the url and paste it into a non frameset page it loads and works without any dialog issues
Rumen
Telerik team
 answered on 08 Dec 2008
3 answers
69 views
Please look at http://demos.telerik.com/aspnet-ajax/ToolTip/Examples/ClientSideAPI/DefaultCS.aspx to see what's happening. Scrollbars shouldn't be needed and are not desirable. Only tested on IE6. Any ideas how to fix that? Thanks!
Svetlina Anati
Telerik team
 answered on 08 Dec 2008
1 answer
160 views
Hi,

We want to prompt a user to confirm drag drop operations using RadConfirm. In client script, we can tell the user the target destination, drop position, etc. and are using the following javascript which, after confirm is acknowledged, calls function reorder

function onClientNodeDropping(sender, eventArgs)
{
    if (eventArgs.get_destNode().get_category() == "Folder")
    {
    DropPos = eventArgs.get_dropPosition();
     radconfirm("Are You Sure you want to change the order of " + eventArgs.get_sourceNode().get_text() + " and move it " + eventArgs.get_dropPosition() + " " + eventArgs.get_destNode().get_text() + "?", reorder);
    }
}

function reorder()
{
  var tree= $find("<%= RadTreeView1.ClientID %>");  
    var node = tree.get_selectedNode();
        if (node.get_category() == "Folder")
        {
       $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest("DRAGFOLDER|" + null + "|" + node.get_value() + "|" + tree.get_dropPosition());
        }

After that, the ajaxrequest handler is used. The problem is that tree.get_dropPosition() does not work in this scenario. We have tried the alternate approach and not used ajax and just tried to use the server-side NodeDrop Event handler which works very well except there is no way that I can find to block it from firing prior to the radConfirm prompt - it just immediately fires. Does anyone know of a way to achieve the desired outcome described above?

Svetlina Anati
Telerik team
 answered on 08 Dec 2008
3 answers
181 views
Hi Telerik team,

I've seen the Radgrid for couple days. But I don't have the solution for my problem about insert function.

I need the way to insert data by click add new record link --> fill data and then click outside button to insert that record by no clicking on insert row of radgrid.

Is there any suggestion for this problem?

Thanks in advance,
-Toi
toi
Top achievements
Rank 1
 answered on 08 Dec 2008
1 answer
532 views
Greetings,

I'm using the RadGrid in a Sharepoint web part. I'm building the grid programatically. I'm trying a hieracal grid and have run into a problem. 

I get the master table displayed ok, however when I try to expand the a master record I get the SyntaxErrorException:The expression contains invalid date constant '# = 1438680))'.  (The number is the order key)

The primary key for both result sets have a # in the field name. Is that going to be an issue?

Here is how the grid id built:

 myRadGrid = New RadGrid 
            myRadGrid.ID = "RADMan" 
            myRadGrid.MasterTableView.DataKeyNames = New String() {"WHORD#""WHLSUF"
            myRadGrid.Skin = "Office2007" 
            myRadGrid.Width = Unit.Percentage(100) 
 
            myRadGrid.AllowPaging = True 
            myRadGrid.AutoGenerateColumns = False 
            'Master table - Customers (I in hierarchy level) 
            myRadGrid.MasterTableView.PageSize = 15 
            'Add columnsn 
            Dim boundColumn As GridBoundColumn 
            boundColumn = New GridBoundColumn() 
            boundColumn.DataField = "WHORD#" 
            boundColumn.HeaderText = "Order#" 
            myRadGrid.MasterTableView.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn() 
            boundColumn.DataField = "WHLSUF" 
            boundColumn.HeaderText = "Suffix" 
            myRadGrid.MasterTableView.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn() 
            boundColumn.DataField = "WHSPO#" 
            boundColumn.HeaderText = "PO #" 
            myRadGrid.MasterTableView.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn() 
            boundColumn.DataField = "WHOTYP" 
            boundColumn.HeaderText = "Type" 
            myRadGrid.MasterTableView.Columns.Add(boundColumn) 
            'chr 
            'Detail table - Orders (II in hierarchy level) 
            ' 
            Dim tableViewOrders As New GridTableView(myRadGrid) 
            tableViewOrders.Name = "OrderDetails" 
            tableViewOrders.DataKeyNames = New String() {"W6ORD#"
            Dim relationFields As GridRelationFields = New GridRelationFields() 
            relationFields.MasterKeyField = "WHORD#" 
            relationFields.DetailKeyField = "W6ORD#" 
            tableViewOrders.ParentTableRelation.Add(relationFields) 
            myRadGrid.MasterTableView.DetailTables.Add(tableViewOrders) 
            ''Add columns 
            boundColumn = New GridBoundColumn 
            boundColumn.DataField = "W6ORD#" 
            boundColumn.HeaderText = "W6ORD#" 
            tableViewOrders.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn 
            boundColumn.DataField = "WDPNS" 
            boundColumn.HeaderText = "WDPNS" 
            tableViewOrders.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn 
            boundColumn.DataField = "WMDESC" 
            boundColumn.HeaderText = "WMDESC" 
            tableViewOrders.Columns.Add(boundColumn) 
            boundColumn = New GridBoundColumn 
            boundColumn.DataField = "W6SUFX" 
            boundColumn.HeaderText = "W6SUFX" 
            tableViewOrders.Columns.Add(boundColumn) 

Here are the event handlers:

        Protected Sub MyRadGrid_NeedDataSource(ByVal [source] As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGrid.NeedDataSource 
            If Not e.IsFromDetailTable Then 
                myRadGrid.DataSource = GetOrderHeader() 'GetHeaderDetails("1446551", "00") 
            End If 
        End Sub 
 
    Private Sub myRadGrid_DetailTableDataBind(ByVal source As ObjectByVal e As GridDetailTableDataBindEventArgs) Handles myRadGrid.DetailTableDataBind 
            Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem) 
            Select e.DetailTableView.Name 
                Case "OrderDetails" 
                    Dim OrderID As String = dataItem.GetDataKeyValue("WHORD#").ToString 
                    Dim Suffix As String = dataItem.GetDataKeyValue("WHLSUF").ToString 
                    e.DetailTableView.DataSource = GetHeaderDetails(OrderID, Suffix) 
                Case "ItemDetails" 
            End Select 
        End Sub 
 

And then here is the spewer from Sharepoint:

[SyntaxErrorException: The expression contains invalid date constant '# = 1438680))'.] 
   System.Data.ExpressionParser.ScanDate() +2881845 
   System.Data.ExpressionParser.Scan() +212 
   System.Data.ExpressionParser.Parse() +88 
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +154 
   System.Data.DataView.set_RowFilter(String value) +188 
   System.Data.LinqDataView.set_RowFilter(String value) +63 
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +3816 
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +24 
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +164 
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +229 
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +672 
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +72 
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +147 
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261 
   Telerik.Web.UI.GridTableView.PerformSelect() +9 
   Telerik.Web.UI.GridTableView.DataBind() +363 
   Telerik.Web.UI.GridDataItem.OnExpand() +462 
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +185 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +142 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70 
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981 
 
 

Anyone have any idea what could be causing this exception? I'm so darn close to getting this to work.

Thanks for any help.

-Matt
Vlad
Telerik team
 answered on 08 Dec 2008
1 answer
174 views
Hello,

I am using Rad Grid on my application and it generates data at the runtime depending on 3 ComboBoxes. It works excellent. But what I need is to display the data vertically, I mean under each other. I watched the video tutorial  RadGridPivotTable, That is really great and demonstrates what I need, but hier the user must define an exact connection string, and doesn't work for generating the data at the runtime.

Is there a possibility for me to do this? Or another Rad Control can display the data on rows? It doesn't matte if I use a grid or another control. 
Thanks in advance 
Yavor
Telerik team
 answered on 08 Dec 2008
3 answers
711 views
What is the max size an image can be to use image editor to edit it?
Rumen
Telerik team
 answered on 08 Dec 2008
2 answers
171 views
I edited and deleted most of my original post because the date format I wanted to support I just found out you already do( ex: "24Jan"). I recently updated the controls so this must be fairly new.
 
I  just need to - if the month is before current month increment the year now. Example if they enter 12Oct I want it to be year 09 and not 08. Always has to be with in the future.

love these controls!
Daniel
Telerik team
 answered on 08 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?