Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
I have used RadAjaxManager in MOSS 2007 because I wanted to load one TreeView on click of other TreeView data but due to this the 'Welcome UserName' on right top corner of my page comes on left top corner but the drop down (options) of it (Welcome...) comes on right top corner.

I cannot attach a screen shot of the same to make you understand better but hope you can understand by the description.

Has anyone come up with the resolution of the same?
Nikita Gourme
Top achievements
Rank 1
 answered on 16 Jul 2008
3 answers
162 views
I have a reuirement where i should display the data value with Hyperlink.
and when i click the hyperlink i must be able to open one more page in a new window. and when i click on the Edit or "Add new record" Link that item should also appear in the edit template place

If any one have code related to that please send it to me.
Thanks
-Krishna
Shinu
Top achievements
Rank 2
 answered on 16 Jul 2008
5 answers
362 views
Hi, I am trying to create a Custom FileBrowserContentProvider in order to link to our db file system. On image manager, everything seems ok,  it can retrieve directories, upload images, preview images and even altering the image in the image editor. However when i try to save as thumb nail, it throws javascript error. 

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

I double check and it can save when running the image editor without the Custom  FileBrowserContentProvider. Is there something i have missed?

development environment:

VS2008
IIS7
ASP.NET 3.5
IE 7

Best Regards,

Denny Wong
Axe
Top achievements
Rank 1
 answered on 16 Jul 2008
1 answer
169 views
Hi,

I have two grids. The first grid has a checkbox column and when the checkbox is checked, the corresponding row should be added to the second grid.
I have tried http://www.telerik.com/community/forums/thread/b311D-ekbdh.aspx

But in the example, button triggers the method where selected items get moved but in my case, I need to use the embedded checkbox column to move a selected row but the second grid doesn't get populated after the method where a selected row gets moved. but a strange thing is that when I click a column heading as if sorting then all of sudden the records show up in the second radgrid.

here is my code,

My first grid
<radG:RadGrid   
                            ID="RadGrid_QueryComments" 
                            EnableAJAX="true"   
                            runat="server"   
                            OnNeedDataSource="RadGrid_QueryComments_NeedDataSource"   
                            Title="Double Click on the comment template to Select it.">  
                            <PagerStyle Mode="NumericPages"></PagerStyle> 
                            <MasterTableView Width="100%" DataKeyNames="commentNo" GroupLoadMode="Client">  
                                                                               
                                <Columns> 
                                    <radG:GridTemplateColumn HeaderText="Select">  
                                        <ItemTemplate> 
                                            <asp:CheckBox runat="server" Text='<%# Eval("commentNo") %>' AutoPostBack="true" OnCheckedChanged="ckbSelectedCommentTemplate_CheckedChanged" ID="ckbSelectedCommentTemplate" /> 
                                        </ItemTemplate> 
                                    </radG:GridTemplateColumn> 

The second Grid
<radG:RadGrid ID="RadGrid_SelectedCommentNos"   
                                    EnableAJAX="true" 
                                    AllowSorting="true"   
                                    AllowPaging="true"   
                                    AllowMultiRowSelection="true"   
                                    runat="server" 
                                    OnNeedDataSource="RadGrid_SelectedCommentNos_NeedDataSource">  
                                    <ClientSettings ApplyStylesOnClient="true">  
                                        <Selecting AllowRowSelect="true" /> 
                                    </ClientSettings> 
                                </radG:RadGrid> 

NeedDataSource Methods
protected void RadGrid_QueryComments_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)  
    {  
        ((RadGrid)source).DataSource = this.commentTemplates;  
    }  
 
    protected void RadGrid_SelectedCommentNos_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e)  
    {  
        RadGrid_SelectedCommentNos.DataSource = this.selectedCommentTemplates;  
    } 

commentTemplates and selectedCommentTemplates properties
    public DataTable commentTemplates  
    {  
        get  
        {  
            object res = this.ViewState["commentTemplates"];  
            if (res != null)  
            {  
                return (DataTable)res;  
            }  
 
            // I am just showing pseudocode here  
            // get default records  
            // save into ViewState["commentTemplates"]  
            // finally   
            return theResult;  
        }  
    }  
      
 
    public DataTable selectedCommentTemplates  
    {  
        get  
        {  
            object res = this.ViewState["selectedCommentTemplates"];  
            if (res != null)  
            {  
                return (DataTable)res;  
            }  
            else  
            {  
                // get default value  
                // insert into ViewState["selectedCommentTemplates"] 
                // return theResults  
            }  
        }  
        set   
        {  
            ViewState["selectedCommentTemplates"] = value;  
        }  
    }  
 
 

Lastly checkbox serverside event
    protected void ckbSelectedCommentTemplate_CheckedChanged(object sender, EventArgs e)  
    {  
        DataSet selectedCommentTemplateData = new DataSet();  
        DataTable existingData = selectedCommentTemplates;  
 
        if (((CheckBox)sender).Checked)  
        {  
            // fill selectedCommentTemplateData with this selected record  
            existingData.Merge(selectedCommentTemplateData.Tables[0]);  
            selectedCommentTemplates = existingData;  
        }  
        else  
        {  
            existingData.Rows.Remove(commentTemplates.Select("commentNo=" + ((CheckBox)sender).Text)[0]);  
            selectedCommentTemplates = existingData;  
        }  
 
        RadGrid_SelectedCommentNos.Rebind();  
    } 

Thank you in advance,

Toby
Veli
Telerik team
 answered on 16 Jul 2008
1 answer
64 views
Here is the code for RadTimePiker in javasvcript
('timePikerSelectedTime' is RadTimePiker picker)
 var selTime = window['timePikerSelectedTime'];                               
  selTime.DateInput.Disable();

I am upgrading my control from asp.net Q3 2007 to Asp.net Ajax 2008.

I didn't get the DateInput property in new version.

How can i chage the above code to work my application.
Sebastian
Telerik team
 answered on 16 Jul 2008
1 answer
122 views
I Have this popup error when I click or expand a node of the radtreeview "Specified cast is not valid.s[]_$$_".  I don't know why. I don't know how to debug it.

The popup appears when I execute this javascript function : node.expand();

This error appears all the time in Explorer, and sometimes in Firefox.

Thanks in advance,





Atanas Korchev
Telerik team
 answered on 16 Jul 2008
1 answer
134 views
Envrionment:
MOSS SP1
Telerik rad editor v5.1

Hi,
 I'm re-evaluating the Rad editor for our Intranet deployment and i'm experiencing the following issue:

When editing content using the rad editor for a Wiki page, the styles that are being applied to some elements don't match what is being applied in presentation mode, the effect being 'what you see is not quite what you get'.

I'm using the default theme.

As an example:

Presentation Mode - P elements have ms-propertysheet from core.css applied, resulting in text size of 0.7em and font style of Verdana.

Edit Mode - P elements have no css text size or font style applied, resulting in the standard text size and font of times new roman.

The element hierarchy generated by the rad editor iframe isn't matching what is defined in presentation mode..

Any workarounds?

Tom.





George
Telerik team
 answered on 16 Jul 2008
1 answer
100 views
Hello,

When i upload image and update old, i must open a new page for view the new image in <asp:image>

Do you have a solution ?

Thank you
Bertrand Dessaintes
Top achievements
Rank 1
 answered on 16 Jul 2008
3 answers
86 views
Hello,

I have a page with several usercontrols and a radwindow. When opening the window everything is disabled because it is set to modal. There is a usercontrol that contains a radmenu and the radmenu is not set to modal , hence clickable.

Is this a little bug or am I seeing something wrong here?

thanks in advance

Svetlina Anati
Telerik team
 answered on 16 Jul 2008
1 answer
135 views
When attaching a remote CSS file to RadEditor (so it populates the Apply Styles dropdown and styles the content window) an error appears in Firefox.

The content window gets styled fine, but the dropdown list doesn't get populated and raises the following error when you click to open it:

Error: [Exception... "Security error"  code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)"  location: "......./ScriptResource.axd?d=istbqLAKAKLE7MGyk4QnBSrjUlOysgIJA5wDbtqJvcTScOvohrIs9h6a2TybRNxJf7Nn8kodjh9xLdIIRBFrEg2&t=633493986000000000 Line: ....."]

This is probably due to some client-side security restriction of Firefox that is not present in Internet Explorer.

Is there a workaround or is this in line to be patched?
Rumen
Telerik team
 answered on 16 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?