Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views

Colleagues,

Who knows if it is possible to add a horizontal line showing the actual time to the RadScheduler for ASP.NET? It must move from top to bottom, as time passes, similar to what we can see in the Outlook’s calendar?

Regards,

- Stepan.

Veronica
Telerik team
 answered on 30 Mar 2011
10 answers
237 views
Is there a way when setting an appointment to have the time picker expanded to show more than just 8:00 am to 5:30 pm?
Peter
Telerik team
 answered on 30 Mar 2011
1 answer
53 views
Hi All,
I want to set a flag value whenever I close child Radwindow, and get that flag value on Parent radwindow, If any one have Idea how could i do this???
Shinu
Top achievements
Rank 2
 answered on 30 Mar 2011
3 answers
146 views
I've tried to implement my custom filter, as described in the following article:

http://www.telerik.com/help/aspnet-ajax/contentfilters.html

As a result, I got the following error:

"Telerik.Web.UI.Editor.Filter is null or not an object."

Could someone help please?

P.S. I've already added RadScriptManager and RadAjaxManager on my page.
Rumen
Telerik team
 answered on 30 Mar 2011
7 answers
330 views
Hi,

I am trying to set focus back on the radEditor after saving the contents.  Also setting the cursor to the end of the text.

I have the following scripts set up from looking at these forums.  The error I get 'Object doesn't support this property or method' on the setFocus() call.

            Telerik.Web.UI.Editor.CommandList["Save"] = function(commandName, editor, args) {
                var btnSave = $get("<%=btnDocumentSave.ClientID%>");
                btnSave.click();
                focusRadEditor();
            };

            function focusRadEditor() {
                var docEditor = document.getElementById('<%=Page.Master.FindControl("cphMain").FindControl("DocumentEditor1").FindControl("tbDocumentSource").ClientID%>');
                docEditor.setFocus();
                var contents = docEditor.get_document();
                contents.execCommand("SelectAll", null, false);
                //Collapse selection to the end
                docEditor.getSelection().collapse();
            }

Anyone know what I'm doing wrong?  I'm using Q3 2008 build, and IE6.

Rumen
Telerik team
 answered on 30 Mar 2011
5 answers
92 views
Hi,

We save the location of raddocks on our page with the following code:

void MainRadDockLayout_LoadDockLayout(object sender, DockLayoutEventArgs e)
{
...
e.Positions = serializer.Deserialize<Dictionary<string, string>>(positionsAndIndices[0].ToString());
e.Indices = serializer.Deserialize<Dictionary<string, int>>(positionsAndIndices[1].ToString());
...
}

Where positionsAndIndicies is a json string. This used to work until we upgraded to Q3 2010 and now we get an error:

Property or indexer 'Telerik.Web.UI.DockLayoutEventArgs.Positions' cannot be assigned to -- it is read only
Property or indexer 'Telerik.Web.UI.DockLayoutEventArgs.Indices' cannot be assigned to -- it is read only

Is there a better way to do this in the new release or should we just populate the positions and indices in a loop with e.Indices.Add(...)?

Thanks
Pero
Telerik team
 answered on 30 Mar 2011
3 answers
218 views
Hi

I am trying to add an ImageClickEventHandler onto an imagebutton.
Althought i cant get it to fire. I am doing this within the ItemDataBound event of the grid . I tried changing EnableViewState to false, but that made no difference.

Any ideas would be greatly appreciated

    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)    
    {  
        ImageButton imgBtnHolder = new ImageButton();  
 
       if (e.Item is GridDataItem)    
        {  
            switch (e.Item.OwnerTableView.Name)  
            {  
 
                case "Vis":  
                    {  
                        GridDataItem item = (GridDataItem)e.Item;  
 
                     
 
                        imgBtnHolder = ((ImageButton)item["colDelete"].FindControl("imgDelete"));  
                        imgBtnHolder.ImageUrl = "data_delete.gif";  
                        imgBtnHolder.AlternateText = "Delete";  
                        imgBtnHolder.OnClientClick = "return confirm('Are you sure you want to remove this');";  
                        imgBtnHolder.CommandName = "Delete";  
                        imgBtnHolder.CommandArgument = "cccc";  
                        imgBtnHolder.Click +=new ImageClickEventHandler(imgBtnHolder_Click);  
                          
                        break;  
                    }  
 
               
            }  
                         
        }    
    }  
 
    
    void imgBtnHolder_Click(object sender, ImageClickEventArgs e)  
    {  
        throw new NotImplementedException();  
    } 

Thanks

 

Princy
Top achievements
Rank 2
 answered on 30 Mar 2011
2 answers
92 views
Hi,
I have a custom provider that Ive created and its works fine with the default edit form. The issue that Im running into is that once I modify my RadScheduler to use an advanced edit form, none of the drop down controls (all of which are populated via resources in the custom provider) have the selected value in edit mode.
Ive tried adding binding expressions for each of the controls in the advanced edit and insert templates, but when I do that I get an error saying that that the Appointment object does not have a definition for a property.
To get around that I can add the CustomAttributes to the radScheduler definition but then the control does not save the data. Also, Im not working with attributes, they are resources.

Can telerik please provide some guidance on this? and please don't recommend that I read the Advanced Templates Demo. Ive read it a number of times and it has not helped.
Veronica
Telerik team
 answered on 30 Mar 2011
1 answer
87 views
I built a custom provider that has mutlivalues for field called attendees.  When I just run that as is (without changing the advanced template) the list of attendees shows up but there are no check-boxes to select from.  Do you know why?

Thanks.
Veronica
Telerik team
 answered on 30 Mar 2011
3 answers
300 views
Hi All,
    In our application we have a dynamically generated Bar Chart and to this bar chart we are creating ChartSeries and adding ChartSeries item and while adding the items to the series i am trying to register a click event for the ActiveRegion and the code is as below in bold but the event never gets fired.

ChartSeries

s0 = new ChartSeries();  

s0.Name =

 

string.Empty;  

 

for (int ic = 0; ic < dt.Rows.Count; ic++)  

 

ChartSeriesItem seriesItem = new ChartSeriesItem();  

seriesItem.YValue = (

 

double)dt.Rows[ic]["Quantity"];  

seriesItem.Name =

 

"Settlement";  

seriesItem.Appearance.Border.Color =

 

Color.Black;  

 

DateTime dt1 = Convert.ToDateTime(dt.Rows[ic]["Date"]);  

seriesItem.XValue = dt1.ToOADate();

seriesItem.ActiveRegion.Click +=

 

new RegionClickEventHandler(ActiveRegion_Click);  

seriesItem.ActiveRegion.Tooltip =

"Number of News:" + dt.Rows[ic]["Quantity"] + "";  

 

 

RadToolTipManager1.TargetControls.Add(

null, seriesItem.ActiveRegion.Tooltip.ToString(), true);  

 

 

s0.AddItem(seriesItem);

}

 

 

radchart1.Series.Add(s0); 
I even tried the below  way of registering the click event for the Active region at chart level but in vain.

 

radchart1.ChartTitle.ActiveRegion.Click +=

 

new RegionClickEventHandler(ActiveRegion_Click);

Please correct me if i am doing something wrong.

Regards,
Preetam.

 

 

Ves
Telerik team
 answered on 30 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?