| <telerik:RadCalendar ID="calEvents" runat="server" ondayrender="calEvents_DayRender"> |
| </telerik:RadCalendar> |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void calEvents_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e) |
| { |
| RadCalendarDay day = new RadCalendarDay(calEvents); |
| day.Date = DateTime.Today; |
| day.IsSelected = true; |
| day.ToolTip = "Tool Tip"; |
| calEvents.SpecialDays.Add(day); |
| } |
Can anybody tell me what I'm doing wrong?
Thanks!
Matt
| http://www.telerik.com/help/aspnet-ajax/tab_gettingstarted.html |
"do you wanna stop this script? a script on this site causes a delay on IE....."
I dont know how the correct translation is because i dont use the IE in english, but u should know what these messages means.
2nd problem is: if i navigate through my grid and expand one row at 1st level, then expand on 2nd level and then edit 3rd level row and then collapse all and i want to edit some more row i got these errormessage:
a runtime error occurs
Error: Object required
3rd problem is: since i integrated these js function my radgrid is working very slow and i dont know why?
This is my Code:
| var isDoubleClick = false; |
| var clickHandler = null; |
| var editedRow = null; |
| function RowClick(sender, eventArgs) { |
| editedRow = eventArgs.get_itemIndexHierarchical(); |
| isDoubleClick = false; |
| if (clickHandler) { |
| window.clearTimeout(clickHandler); |
| clickHandler = null; |
| } |
| clickHandler = window.setTimeout(ActualClick, 200); |
| } |
| function RowDblClick(sender, eventArgs) { |
| editedRow = eventArgs.get_itemIndexHierarchical(); |
| tableView = eventArgs.get_tableView(); |
| isDoubleClick = true; |
| if (clickHandler) { |
| window.clearTimeout(clickHandler); |
| clickHandler = null; |
| } |
| clickHandler = window.setTimeout(ActualClick, 200); |
| } |
| function ActualClick() { |
| var tableview; |
| if (isDoubleClick) { |
| var rowIndex = editedRow |
| if (rowIndex.indexOf(':') != -1) { |
| rowIndex = rowIndex.substr(rowIndex.lastIndexOf('_') + 1); |
| } |
| var row = tableView.get_dataItems()[rowIndex]; |
| if (tableView.getCellByColumnUniqueName(row, "ExpandColumn")) { |
| if (row.get_expanded() == false) { |
| row.set_expanded(true); |
| imageButton = tableView.getCellByColumnUniqueName(row, "ExpandColumn").childNodes[0]; |
| imageButton.className = "rgCollapse"; |
| } |
| else { |
| row.set_expanded(false); |
| imageButton = tableView.getCellByColumnUniqueName(row, "ExpandColumn").childNodes[0]; |
| imageButton.className = "rgExpand"; |
| } |
| } |
| } |
| else { |
| //debugger; |
| var x = editedRow; |
| var grid = $find("<%=Orders_RadGrid1.ClientID %>"); |
| var name; |
| tableview = $find("<%=Orders_RadGrid1.ClientID %>").get_masterTableView(); |
| if (editedRow.indexOf(':') != -1) { |
| var detailstable = grid.get_detailTables(); |
| var tmp = editedRow.substring(editedRow.indexOf(':')+1, editedRow.length); |
| if (tmp.indexOf(':') != -1) { |
| editedRow = editedRow.substr(editedRow.lastIndexOf('_') + 1); |
| tableview = detailstable[1]; |
| name = detailstable[1].get_name(); |
| } else { |
| editedRow = editedRow.substr(editedRow.lastIndexOf('_') + 1); |
| tableview = detailstable[0]; |
| name = detailstable[0].get_name(); |
| } |
| } |
| tableview.editItem(x); |
| } |
| } |
Maybe there is a easier way to get a row in edit mode.
Thanks,
Chris
I have a page that uses frames because it hosts content from different domains. In one frame, I have the RadEditor. If I type in some text and then click in the other frame to do something and then return to the RadEditor frame, it gives the debug message that access is denied. I do not get this effect in Firefox or Chrome. It only happens in IE, I'm using version 7.0.5730.13.
My research tells me this is a known issue for quite a while and that the browser is the root cause of this. Can you confirm this and/or is there a hotfix possibly that addresses this? If not, do you plan to address this in an upcoming release? Are there any workaround suggestions?
Aside from that, I was able to make a minor code adjustment in the offending script (RadEditor.js) that seems to have gotten me past the problem. I don't know yet what side effects if any may stem from this. Anybody who decides to try this will have to do so at their own risk.
Note that the commented out code is the lines I added.
| if($telerik.isIE){ |
| Telerik.Web.UI.Editor.RestorePoint.prototype={update:function(){ |
| this.HtmlText=this.Document.body.innerHTML; |
| //try { |
| var _76e=this.Document.selection.createRange(); |
| //} |
| //catch(ex){} |
| //try { |
| if(_76e.length){ |
| this.SourceIndex=_76e.item(0).sourceIndex; |
| }else{ |
| this.StartBookmark=_76e.getBookmark(); |
| } |
| //} |
| //catch(ex){} |
Hello,
We are implementing some custom filtering on rad grid.
We are doing it in a similar approach to the example provided here:
http://www.telerik.com/help/aspnet-ajax/grdoperatewithfilterexpression.html
As in the example, we are handling the Itemcommand event, and in that apply our own custom filtering behavior.
We are looking for a better technique to extract the current filter value from the column we are working on.
Inside the item command event, we execute the following line in order to extract the filter value from the column:
| TextBox filterBox = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0] as TextBox; |
isn't there a better way? this is wspecially important when we have different column types with different filtering controls. for example, if I have a radComboBox instead of a textbox..
I saw there is a property called CurrentFilterValue for the column, but it shows the old filter value, and is not relevant in the Itemcommand event.
Any suggestions?