Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
338 views
Maybe I am missing something but do you guys have a working example of inserting, updating, deleting appointments with a radscheduler attached to a database? I want to interact with the database programatically via stored procedures in oracle but a sql server example would be fine too. I have already taken care of insert and can do updates and deletes no problem, just not sure how to work with recurrence and can't see a decent example. Was hoping to see a basic app demo on this. Like I say, maybe I am totally missing something but have looked through the demo and support material.

Thanks,
Dan
Scorpy47
Top achievements
Rank 1
 answered on 14 Feb 2013
1 answer
84 views
Hi , 
 I have binded the radcontextmenu items through javascript but it shows the transperant background.
 How to fix it






Thanks


 
Dhamodharan
Top achievements
Rank 1
 answered on 14 Feb 2013
2 answers
165 views
With the Radscheduler that I am creating, I need to have stored procedures that do the insert, update, delete.
The closest example that I found to what I need is at:
http://www.dotnetfunda.com/articles/article1101-how-to-use-telerik-scheduler-to-display-appointments-in-aspnet-part-i-.aspx 

As the example is not complete, I am not sure how to proceed with getting the update, delete fired. I am also concerned about how if the user creates a new appointment, how I would insert and then update the table so that they can delete it. If you can please expand on the example that was provided above as this is somewhat a urgent need.

Thank you in advance.


Scorpy47
Top achievements
Rank 1
 answered on 14 Feb 2013
1 answer
168 views
Hi,

I am having a RadAutoCompleteBox and RadTextBox in one of my pages. My requirement is that I must be able to select only one value from the dropdown that must be shown in a desired color and after selecting the item from the drop-down, I want my textbox to be focussed.

Please help.
-Anly.
Princy
Top achievements
Rank 2
 answered on 14 Feb 2013
1 answer
144 views
If I'm using a RadGrid that does insert/update/delete using manual CRUD operations, is it still possible to use a combobox within a column during edit mode? All the samples I've seen so far seem to say it's only possible if a data source control is being used (which it's not in my case). If it is possible, how is it done? Sample code would be greatly appreciated. Thank you!
Shinu
Top achievements
Rank 2
 answered on 14 Feb 2013
5 answers
479 views
Hello,

we have a limitation that requires us to use the ContentAreaMode="DIV" on our project.

The issue we have is that, at the moment, we would like to strip word formatting.
What we did until now is to strip manually tags on server side, as we could not make the StripFormattingOnPaste work in this mode.

As our users saw recently the demo on the site, they would like to have it done client side. Our issue is show here:

<telerik:RadEditor runat="server" 
    StripFormattingOnPaste="All" ContentAreaMode="DIV" ID="RadEditor1">
    <Content>
    </Content>
</telerik:RadEditor>

With this code, removing ContentAreaMode does make the Stripping work

Is there any workaround ?

Best regards

Philippe
skhalidi
Top achievements
Rank 1
 answered on 14 Feb 2013
2 answers
377 views

I am using radgrid very similar to the one on telerik sample here:
http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx

Problem is, earlier selected sub items are not cleared when new sub item are selected. Which gives the user the impression that multiple items arte selected which is not the case.

How can I clear the first main and sub-items selected when new sub items are directly selected?
Dele
Top achievements
Rank 1
 answered on 13 Feb 2013
7 answers
322 views
Is the anything planned to allow for a header and footer in the drop down template? Or is there a way to implement such a feature with the current build?
Mark Kucera
Top achievements
Rank 1
 answered on 13 Feb 2013
4 answers
983 views
Hello, I have an issue with the sort expression feature in the RadGrid.
As said in several post, i'm using the advanced databinding with NeedDataSource to make the sorting works correctly.

This is my grid definitions:
<telerik:RadGrid ID="MyRadGrid" runat="server"
 AllowSorting="true"
 EnableHeaderContextMenu="true"
 Width="900px"
 CssClass="RadGridCustomClass">
                 
  <ClientSettings AllowColumnsReorder="true"
    ReorderColumnsOnClient="true"
    ColumnsReorderMethod="Reorder"
    AllowColumnHide="true" >
      <Resizing AllowColumnResize="true"
        EnableRealTimeResize="true"
        ResizeGridOnColumnResize="true"
        ClipCellContentOnResize="true"
        AllowRowResize="false" />
 </ClientSettings>
             
  <HeaderContextMenu EnableRoundedCorners="true"
    EnableShadows="true"
    OnItemClick="MyRadGrid_HeaderContextMenuClick" />
             
  <MasterTableView AllowMultiColumnSorting="false" 
    AllowCustomSorting="true"
    AllowCustomPaging="true"
    TableLayout="Fixed"
    AutoGenerateColumns="false"
    EnableHeaderContextMenu="true"
    EnableViewState="false" >
    
  <Columns>
    <telerik:GridBoundColumn DataField="ID"
      SortExpression="ID" HeaderText="ID"
      DataType="System.Int32" />
    <telerik:GridBoundColumn DataField="Name"
      SortExpression="Name" HeaderText="Name"
      DataType="System.String" />
    <telerik:GridNumericColumn DataField="UnitPrice" 
      SortExpression="UnitPrice" HeaderText="Unit price"
      DataType="System.Decimal" />
    <telerik:GridBoundColumn DataField="Date"
      SortExpression="Date" DataFormatString="{0:d}" HeaderText="Date"
      DataType="System.DateTime" />
    <telerik:GridCheckBoxColumn DataField="Discontinued"
      SortExpression="Discontinued" HeaderText="Discontinued"
      DataType="System.Boolean" />
  </Columns>
</MasterTableView>
</telerik:RadGrid>

 Pretty simple grid with simple data i load from a list for this test purpose.
On load, i check if the dataSource is nothing, then call Rebind() to call NeedDataSource()
Once its called, i bind my grid with data.

I got this on load....
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  If MyRadGrid.DataSource Is Nothing Then
    MyRadGrid.Rebind()
  End If
End Sub
 
Private Sub MyRadGrid_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles MyRadGrid.NeedDataSource
  Dim list2 As New List(Of MyBusinessObject)()
  For j As Integer = 0 To 5
    Dim Product1 As New MyBusinessObject()'Some local data
    Product1.ID = j
    Product1.Name = names(j)
    Product1.UnitPrice = prizes(j)
    Product1.[Date] = dates(j)
    Product1.Discontinued = bools(j)
    list2.Add(Product1)
  Next
  MyRadGrid.DataSource = list2
End Sub
 
Public Sub MyRadGrid_HeaderContextMenuClick(ByVal sender As Object, ByVal e As RadMenuEventArgs)
  If e.Item.Value <> "SortAsc" And e.Item.Value <> "SortDesc" Then
    MyRadGrid.MasterTableView.SortExpressions.Clear()
  End If
  MyRadGrid.Rebind() 'i tried MyRadGrid.MasterTableView.Rebind()
End Sub


The sorting doesnt work well, so i use the HeaderContextMenuClick event to output what's going on...
So my grid has the expression it needs, but the sorting doesnt occur.

So i placed a couple of debug.print... Here what i get after click on "sort asc" on "Unit price" column:
******************************Page load
Page load() data source is nothing... Calling MyRadGrid.Rebind()
MyRadGrid_NeedDataSource()
******************************Page load
Page load() data source is nothing... Calling MyRadGrid.Rebind()
MyRadGrid_NeedDataSource()
'WebDev.WebServer.EXE' (Managed): Loaded 'D:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
MyRadGrid_HeaderContextMenuClick() SORT EXPRESSION: Name:UnitPrice Order:Ascending
MyRadGrid_HeaderContextMenuClick() Calling MyRadGrid.Rebind()


Rebind is supposed to call NeedDataSource right? I tried to call MyRadGrid.datasource manualy... but still no result, the grid wont sort.
Plus, i get a empty button (5-8pixel width, 2-3 pixels height) beside the header text after i call Clear sorting.. this happens only in my test, not my project.

I have no idea why this isnt working. Can anyone help me?
Thanks!
Sophie
Top achievements
Rank 2
 answered on 13 Feb 2013
1 answer
103 views
i define a user controls inside other user control and define a 
RadScriptBlock,place script code in it,but script block dont fire.please
 help me.
my code is:

<telerik:RadScriptBlock
ID="RadScriptBlock1" runat="server"> <script type="text/javascript" language="javascript"> function refreshGrid(arg) { alert("1234"); $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind"); } function RowDblClick(sender, eventArgs) { window.radopen("Details.aspx?codemessage=" + eventArgs.getDataKeyValue("codeadvertisment"), "UserListDialog"); } function OpenFileExplorerDialog() { var wnd = $find("<%= ExplorerWindow.ClientID %>"); wnd.show(); } //This function is called from the Explorer.aspx page function OnFileSelected(wnd, fileSelected) { var textbox = $get("<%= UploadPicture.ClientID %>"); textbox.value = fileSelected; } function ShowMessage(sender, args) { var id = args.getDataKeyValue("codeadvertisment"); var wnd = window.radopen("Details.aspx?codemessage=" + id, null); //Get the clicked row var index = args.get_itemIndexHierarchical(); var item = args.get_tableView().get_dataItems()[index]; var rowElement = item.get_element(); //Get coordinates of the row and reposition the window relative to it var bounds = $telerik.getBounds(rowElement); wnd.moveTo(bounds.x + 120 + index * 10, bounds.y - 180); } </script> </telerik:RadScriptBlock>
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 13 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?