Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
In this demo I edited an occurrence of a recurring event. The event is to run from 1100-1200 the 2nd day of every month. I opted to create an exception and set the event to run from 1200-1300. Then I clicked the recurrence checkbox and clicked save.

As you might expect from the date of the initial exception forward I have 2 copies of the envent. One running 1100-1200 and the other from 1200-1300.

I seems to me that we don't really want recurrences set up as exceptions to existing recurrence events. I've (obviously) not been able to examine what has been written to the recurrence rule of the master event, but I'll bet it doesn't match the events that my actions caused to be created.

Is this a bug?

Do I win a prize? :-)

In the short term, why might be the best way, when adding/editing a recurrence exception, to hide the recurrence checkbox?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 31 Jan 2011
3 answers
98 views
Hello,
i'm using with RadGrid for edit by EditMode="InPlace".
i have a GridDropDownColumn and the source of the combo is:
class MyData{int Id, string Description1, string Description2}
i want that every item in the combo will display Description1 + " " + Description2
i have tried to use with the  ListTextFormatString but i dont know how set to ListTextField two columns.
is it possible? or any solution?
thnaks.
Iana Tsolova
Telerik team
 answered on 31 Jan 2011
3 answers
368 views
By default, ASP.Net form submission will not pass back disabled field during postback.  To get around this, we can set the form property "submitdisabledcontrols" to true and it will pass back the value of a disabled field.  However I am having a problem with an Ajax postback as it does not contain the updated value of a disable field.

For example, I have a disabled checkbox when the form load.  Through javascript, I enable the checkbox.  Then I fire an event that makes an Ajax call to lookup a value.  The Ajax call does a server side postback but the state of the checkbox is disabled.

Please help.  Thanks.
Iana Tsolova
Telerik team
 answered on 31 Jan 2011
3 answers
87 views
Hi
i am using context menu in my radtreeview.i can able to get the menu items text in client side. but i want to get the sub menu items text. 
how can i get the sub context menu items text in client side.

regards,
geetha.
Veronica
Telerik team
 answered on 31 Jan 2011
2 answers
71 views
Hello,

I've got a grid with a custom EditForm in place for inserting records (update and delete are not allowed).  Rather than requiring the user to press the Add New Row button, I'd prefer to just have the edit form displaying by default when the screen loads.  They should be able to type in the form, commit it, and it will refresh itself with the new data and once again show another new item form.

I assumed there would be a C# command that I could call in Page_Load that would show this form but I was not able to find it.  I would highly prefer to do this in C# rather than calling the client-side API with Javascript.

I did begin to create a separate form outside of the grid, but because of my layout it really makes more sense for the insert form to be inside the grid control itself.

Thanks in advance to anyone who can tell me how to do this!

Chris
Chris McGrath
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
64 views
I am trying to look for an example in VB on how to create a Self-referencing hierarchy grid dynamicaly.  I have created one where i declare all the columns and parameters.  However I want to create it entirly dynamicaly.  I am already creating a standard grid in this manner, however I wish to add this option into the user control created.

I included some code, however would like to see an example if possible. 
' the nestedDatasource is a dataset with a relation added  
 
 
  If NestedTable Then
            RadGrid1.EnableLinqExpressions = False
            RadGrid1.ClientSettings.AllowExpandCollapse = True
            RadGrid1.MasterTableView.HierarchyDefaultExpanded = False
            RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind
            RadGrid1.MasterTableView.SelfHierarchySettings.KeyName = NestedTableKey
            RadGrid1.MasterTableView.SelfHierarchySettings.ParentKeyName = NestedTableParentKey
            ' RadGrid1.MasterTableView.SelfHierarchySettings.MaximumDepth = 0
 
            Dim expandCollapseColumn As New GridExpandColumn
            expandCollapseColumn.HeaderStyle.Width = 20
            RadGrid1.MasterTableView.Columns.Add(expandCollapseColumn)
 
 
            RadGrid1.MasterTableView.ShowHeader = False
            RadGrid1.MasterTableView.HierarchyDefaultExpanded = False
 
 
            Datasource = NestedDatasource.Tables(0)
        End If
 
....
 
'create the columns dynamicaly from the dataset
                            boundColumn = New GridBoundColumn
                            RadGrid1.MasterTableView.Columns.Add(boundColumn)
                            boundColumn.DataField = column.ColumnName
                            boundColumn.HeaderText = column.ColumnName.Replace("_", " ").ToLower()
                        If colDataType = "int32" Then
                            boundColumn.DataFormatString = "<nobr>{0:N0}</nobr>"
                            boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center
                        .....
.....
 
 
 
    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
 
        If NestedTable Then
            RadGrid1.MasterTableView.VirtualItemCount = NestedDatasource.Tables(0).Rows.Count()
            RadGrid1.DataSource = NestedDatasource
            RadGrid1.Visible = True
        Else
            If Not Datasource Is Nothing Then
                RadGrid1.MasterTableView.VirtualItemCount = Datasource.Rows.Count()
                RadGrid1.DataSource = Datasource
                RadGrid1.Visible = True
            Else
                RadGrid1.Visible = False
                Exit Sub
            End If
        End If
    End Sub
Just a snippet, the issue I have with this is that when I click on the arrow, nothing expands.  Not sure where I am going wrong here.  Like I said I can get it working when not creating it dynamicaly.  Also like to add, I am plugging this into a usercontrol that already creates a normal grid dynamicaly. 

Just wondering If I need to do something extra?
Daniel
Telerik team
 answered on 31 Jan 2011
3 answers
241 views
Hi,

            Am using RadGrid in my page,having skin for that grid.Skin having client events like RowSelecting,deselcting,RowSelected and Deselected events. Now i want ask the user a java script confirm when ever a user Un check the check box,So i overrided that RowDeselecting event alone in my page.

But the issue is 

    1) whenever i click on that row it is deselecting the records even am preventing RowClick event,i declared RowClick event in skin.
    2) After deselecting the row ,again when i select the row now also it firing RowDeselcting Event.

This issue arises only after overriding the RowDeselecting event.

Please help me to fix this or Suggest me some other solution.

Thanks and regards,
John
Iana Tsolova
Telerik team
 answered on 31 Jan 2011
2 answers
192 views
Exist a Callback to OnAjaxRequest ?

I'm using the ClientEvents-OnResponseEnd="responseEnd".

function

 

 

responseEnd(sender, eventArgs) {
    alert(
'Response complete');
}

This execute when the request END, that's OK, But how i get the return if i want to return some STRING ?

 

Maria Ilieva
Telerik team
 answered on 31 Jan 2011
1 answer
137 views
I am using NodeTemplates in my RadTreeView and have set EnableDragAndDrop and EnableDragAndDropBetweenNodes to true, however, the lines used to indicate the dropzone between two nodes is not showing up.

Any tips or insight on on how I should go about debugging that?

Thanks,
Neil
Kate
Telerik team
 answered on 31 Jan 2011
4 answers
135 views
Hello,

I have own composite control inherited from RadWebControl. It contains RadTextBox control where I need handle keyup client event.
I have implemented client class for it and I attached event in initialize function. In dispose function I'm removing this event handler but it causes javascript error:

Line: 6
Error: '_events' is null or not an object

Here is the script:

nData.KnowledgeManagement.Web.UI.Searcher.prototype =
{
    initialize: function () {
        nData.KnowledgeManagement.Web.UI.Searcher.callBaseMethod(this, 'initialize');
  
        // SearchTextBox
        this._searchTextBox = $find(this.get_id() + '_searchTextBox');
        this._keyUpDelegate = Function.createDelegate(this, this._keyUp);
        $addHandler(this._searchTextBox._textBoxElement, "keyup", this._keyUpDelegate);
  
        // XmlHttpPanel
        this._xmlHttpPanel = $find(this.get_id() + '_xmlHttpPanel');
        this._xmlHttpPanel._searcher = this;
        this._xmlHttpPanel.add_responseEnding(this._xmlHttpPanelResponseEnding);
        this._xmlHttpPanel.add_responseError(this._clientResponseError);
    },
  
    dispose: function () {
        nData.KnowledgeManagement.Web.UI.Searcher.callBaseMethod(this, 'dispose');
  
        if (this._keyUpDelegate) {
            $removeHandler(this._searchTextBox._textBoxElement, "keyup", this._keyUpDelegate);
            this._keyUpDelegate = null;
        }
  
        this._xmlHttpPanel.remove_responseEnding(this._xmlHttpPanelResponseEnding);
        this._xmlHttpPanel.remove_responseError(this._clientResponseError);
    },
  
    _keyUp: function () {
        this._search(this._searchTextBox._textBoxElement.value);
    },
    ...
}

Cound you tell me what I have wrong?
Thanks
Jiri
Maria Ilieva
Telerik team
 answered on 31 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?