Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
245 views
Hi all,

I'm evaluating RadEditor for MOSS.

When I try to use it (either as a web part or as a replacement for OOTB editor), I get "Trying to use an SPWeb object that has been closed or disposed and is no longer valid." error.

Has anybody any idea what's going on?

Luc
Lini
Telerik team
 answered on 10 Sep 2008
2 answers
545 views
I'm facing an issue with databinding RadGrid to an ObjectDataSource, which admittedly I'm rather new at.

Users fill out a simple form and then click a button. This button should create a new object, and add it to a stongly-typed collection (list) of objects.

  protected void btnAddCustomer_Click(object sender, EventArgs e)  
    {  
        Customers custs = (Customers)Session["Customers"];  
        Customer cust = new Customer();  
        cust.CustomerID = this.cbCustomerList.SelectedValue;  
        custs.Add(cust);  
        Session["Customers"] = custs;          
        this.rgCustomers.Databind();         
 
    } 

I was supposing that after the call to Databind, the RadGrid should update with the current customer record, but it doesn't. "No Records to Display" remains there perpetual. (I am using RadAjaxManager, so that the button updates the radgrid)

So what am I missing? The Add method does work. but the objectdatasource doesn't seem to be doing the job.

<asp:ObjectDataSource ID="odsCustomers" runat="server"   
DataObjectTypeName="EClassLibrary.Customer" InsertMethod="Add"   
SelectMethod="Select" TypeName="EClassLibrary.Customers">  
</asp:ObjectDataSource> 

 public DataTable Select()  
        {  
            DataTable myTable = new EDataSet.dtCustomersDataTable();  
            EDataSet.dtCustomersRow myRow = (EDataSet.dtCustomersRow) myTable.NewRow();  
 
            foreach (Customer cust in this)  
            {  
                myRow.CustomerName = prov.GetCustomerName();  
                myRow.Company = prov.GetCustomerCompany();  
                myRow.JobTitle = prov.GetCustomerJobTitle();  
                myRow.UserID = prov.GetProviderUserID();  
                myTable.Rows.Add(myRow);                 
            }  
            return myTable;  
        } 

Someone please point out my begginer's mistake and put me out of my misery. Thanks in advance.


Ahmad
Top achievements
Rank 1
 answered on 10 Sep 2008
1 answer
140 views
Is it possible to do 2-way databinding of controls within a multi-page control? For example, if I have a formview control within a pageview of a multipage control, can a textbox control in the formview control be bound to a database field and be updated using the native .Net 2.0 data binding?

Thanks,

Dana
Yana
Telerik team
 answered on 10 Sep 2008
1 answer
129 views
Hi,

my question is not directly related to rad controls but I dare to ask it anyway :).
How do I preserve the state of a control over multiple requests? For example:

I have two RadGrids on my page. The first shows all available objects of some type
while the other one shows the selected objects. When I click the add-button in the first
grid, an object representing this row is added to an ArrayList (server side) which is a member variable of the page object.
The second grid is bound to that ArrayList. Now, the problem is when I click on a line for the second time, the ArrayList is empty again because the page object is re-created.
So what would be the best solution to preserve this ArrayList?

Many thanks in advance for your sugestions.
Best Regards,
Robert  
Sebastian
Telerik team
 answered on 10 Sep 2008
1 answer
165 views

Animation can be both useful and bad when it comes to usability.. I tend to like it (besides the showoff) - but the menu animation does one thing that I don’t like: It display the first item last!

1) An option that could display the menu where the animation reveals the first item first would be very welcome. This would also eliminate the scroll "effect". Just like expanding nodes in a treeview animates.

2) Another animation type could be added: Fade (aka. opacity/transparency).. Since the animation is generic - this should be restricted to pop-ups like menu, date/time pickers, combobox etc. since it wouldn’t make much since to e.g. expanding nodes in a treeview.

Thanks

Yana
Telerik team
 answered on 10 Sep 2008
0 answers
90 views
Hi all,

i have put delete button in grid. and set grid pagging to 5.

when i m on second page and there only one record on this page. when i delete record then no databinding means grid become blank.

how to change page index or what to do for this??

Thanks

Test
Top achievements
Rank 1
 asked on 10 Sep 2008
1 answer
119 views
Hi.

I've createad a context menu, and so far its ok The only problem that im facing is when the user right-clicks the first node, the context-menu only shows the last item, the others items gets behind the search bar. The context menu does not rearrange itself over the upper browsing area.

How can I resolve this?

Cheers.
Yana
Telerik team
 answered on 10 Sep 2008
6 answers
376 views
Hi,$0$0$0$0Could you please help me out to resolve the problem stated below?$0$0$0$0$0I have a RadGrid bound to dataset and I am using inPlace mode for editing purpose. For one of the column I need to have ComboBox. Now I would like to have the selected value in the ComboBox  set to the original value when it goes in Edit mode.$0$0For instance - if the original value is US then US needs to be selected in the ComboBox when it is in Edit mode.$0$0$0$0$0Any suggestion would be appreciated.$0$0$0$0$0Thanks a lot.$0$0Milan G$0$0$0$0$0$0$0
Milan Gurung
Top achievements
Rank 1
 answered on 10 Sep 2008
9 answers
304 views
Hi Telerik Team !
I have the follw code :

        protected void radTreeTestCase_NodeExpand(object o, RadTreeNodeEventArgs e)
        {
            // expand node STRQ
            if (e.NodeClicked.Level == 0)
            {
                e.NodeClicked.Nodes.Clear();
                int strqID = Convert.ToInt32(e.NodeClicked.ID);
                ......
                    nodeFEAT.Image = "../Images/Level1.gif";
                    nodeFEAT.ExpandMode = ExpandMode.ServerSide;
                    e.NodeClicked.Nodes.Add(nodeFEAT);                  

                e.NodeClicked.Focus();

                }
            }
.....

And then It occur Error :

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 1611:                    e.NodeClicked.Nodes.Add(nodeFEAT);
Line 1612: }
Line 1613: e.NodeClicked.Focus();
Line 1614: }

Source File: e:\Project EPM\EPM_site\EPM Website\EPM\ProjectInfo\pgTestCase.aspx.cs    Line: 1613

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.UI.Control.Focus() +31
EVSOFT.EPM.Web.Project.ProjectInfo_pgTestCase.radTreeTestCase_NodeExpand(Object o, RadTreeNodeEventArgs e) in e:\Project EPM\EPM_site\EPM Website\EPM\ProjectInfo\pgTestCase.aspx.cs:1613
Telerik.WebControls.RadTreeView.OnNodeExpand(RadTreeNodeEventArgs e) +56
Telerik.WebControls.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String s) +786
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +242
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3826


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


So I can't user method Focus to focus. So You can explain this error for me and help me  solve with this problem to can focus with Control RadTreeView ?

Thank you verry much !

Veselin Vasilev
Telerik team
 answered on 10 Sep 2008
2 answers
90 views
Hello,

I have encountered a problem, trying to expand a node of my treeview

I have tried in two situations

The first one, a simple "test.aspx" page with a treeview, his script manager and an onload function:

function my_onload_expand() {  
  var m_treeview = $find("<%= TreeView1.ClientID %>");  
 
  var node = m_treeview.findNodeByText("Root");  
 
  node.expand();  

And this is perfectly working

If i place the same page inside a splitter, everything stops working, and m_treeview is null

The body of my default.aspx with the splitter is the following
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
        <telerik:radsplitter id="RadSplitter1" runat="server" height="100%" width="100%" Orientation="Horizontal" Skin="Default2006">  
            <telerik:radpane id="panel_header" runat="server" Height="68" ContentUrl="header.aspx" MaxHeight="68" MinHeight="68"></telerik:radpane> 
            <telerik:radsplitbar id="RadSplitbar1" runat="server" CollapseMode="Forward" /> 
            <telerik:radpane id="contentPane" runat="server" Scrolling="None">  
                <telerik:radsplitter id="RadSplitter2" runat="server" height="100%" width="100%" Skin="Default2006">  
                    <telerik:radpane id="panel_menu" runat="server" width="250" ContentUrl="test.aspx"></telerik:radpane> 
                    <telerik:radsplitbar id="RadSplitbar2" runat="server" CollapseMode="Forward" /> 
                    <telerik:radpane id="panel_list" runat="server" ContentUrl="list.aspx"></telerik:radpane> 
                </telerik:radsplitter> 
            </telerik:radpane> 
        </telerik:radsplitter> 

Am i doing something wrong?
SeRiAlKiL
Top achievements
Rank 1
 answered on 10 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?