Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
167 views
Hi

How can i bind the sql datatable to treeview control.

Here i have loop all the records and bind the data table.How can i do that one without looping in Rad treeview control.

Dim daSuppliers As New SqlDataAdapter("SELECT CompanyName,SupplierID FROM Suppliers", objConn) 

Dim daProducts As New SqlDataAdapter("SELECT ProductName, ProductID, SupplierID FROM Products", objConn)

            daSuppliers.Fill(objDS, "dtSuppliers")

            daProducts.Fill(objDS, "dtProducts")
            //Giving the relation

objDS.Relations.Add("SuppToProd", _

    objDS.Tables("dtSuppliers").Columns("SupplierID"), _

    objDS.Tables("dtProducts").Columns("SupplierID"))

                Dim nodeSupp, nodeProd As TreeNode

                Dim rowSupp, rowProd As DataRow

For Each rowSupp In objDS.Tables("dtSuppliers").Rows

    nodeSupp = New TreeNode

    nodeSupp.Text = rowSupp("CompanyName")

    nodeSupp.value = rowSupp("SupplierID")

    TreeView1.Nodes.Add(nodeSupp)

         For Each rowProd In rowSupp.GetChildRows("SuppToProd")

             nodeProd = New TreeNode

             nodeProd.Text = rowProd("ProductName")

             nodeProd.value = rowProd("ProductID")

             nodeSupp.Nodes.Add(nodeProd)               

         Next

  Next

 

 

 

 

 

 

 


At the same time i need to improve the performance because supplier table has more than1000 records and product table has 3000 records.How can i do this one.

Shinu
Top achievements
Rank 2
 answered on 18 May 2009
1 answer
157 views

Dear sir,

I am dynamically created a dock and load user controls, once we close any dock then how can it show.
i got javascript but not wokring on server side.
I need a server side code because our dock also a dynamcially so how can I find dock...? and how can be show..?

thanks with reagrds

Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 18 May 2009
2 answers
1.1K+ views
I want to close the radwindow on button click .... i have one from on that form show radwindow button after that button mouse over open rad window. In that rad window one Employee.aspx form on that form close button. when i click that button close the open radwindow+Employee.aspx form. How to close it ?
i am trying this code 

 

<input id="CloseButton" title="BAck to main Window" type="button" value="Close Form" onclick ="Closerad(); " /></td>

 

 

function Closerad()

 

{

 

 

 

var oManager = GetRadWindowManager();

 

 

 

var oWnd = oManager.GetWindowByName("RadWindow1");

 

 

 

 

 

//oWnd.Hide();

 

 

 

 

 

oWnd.Close();

document.getElementById(

 

"Button2").focus ();

 

 

}

but it showing script erro object Expected of employee.aspx form . how to resolve this problem urgent

Its urgent

Thank you so Much !!!!!!!!

 

Shinu
Top achievements
Rank 2
 answered on 18 May 2009
6 answers
174 views
Just above my RAD Scheduler, I've placed a hyperlink that says "Add a New Appointment".  If double-clicking the RAD Scheduler cell to add a new Appointment isn't intuitive enough for the average User, then the User should know enough to click this link.

I currently have the click event of this link wired up to the JavaScript AppointmentInserting event.  When this event is invoked by double-clicking the RAD Scheduler date cell to add a new Event, I have access to the passed in (sender, eventArgs) values.  Several values are set, our custom Advanced Edit form opens with a modal underlay, and everything works as expected.

Going back to the new hyperlink I've added, I would like the click event of the link to replicate the same functionality as above.  However, I do not have access to the (sender, eventArgs) values.  Ideally, I would like to trick the event handler into thinking that the event was fired from the RAD Scheduler.  Because I do not have access to the (sender, eventArgs) values, the JS event does not function as expected.  The Advances Edit form opens with a modal underlay, but it is soon blown away because I wasn't able to successfully call eventArgs.setCancel(true).

Is this functionality possible? For your reference, I've posted my code below.

Thanks!
Mike

------------------------------------------------------------------------------------------------------------------

<div>   
   
 
 
 
   
 
   
 
<asp:LinkButton ID="lbAddNewSchedulerEvent" OnClientClick="javascript:AppointmentInserting();" runat="server">Add New Scheduler Event</asp:LinkButton>   
   
 
 
 
</div>  
 
<div>   
   
 
   
 
   
 
   
 
   
 
<telerik:RadScheduler  
........  
</telerik:RadScheduler>   
   
 
   
 
   
 
   
 
</  
 
   
 
 
 
div>  
 
function AppointmentInserting(sender, eventArgs)   
   
 
   
 
   
 
{  
 
   
 
    try   
    {  
        var start = formatDate(eventArgs.get_startTime());   
    }  
 
 
 
   
 
   
 
    catch (e)   
    {  
 
 
 
   
 
        var start = "01/01/2009";   
    }  
 
   
 
 
 
 
    try    
   
 
   
 
    {  
 
 
 
   
 
        var isAllDay = eventArgs.get_isAllDay();   
    }  
 
 
 
   
 
    catch (e)   
    {  
 
 
 
   
 
        var isAllDay = true;   
    }  
 
 
 
   
 
    //New appointment    
    window.radopen(  
 
 
 
   
 
    "DefaultTemplates/AdvancedForm.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "AdvancedForm");   
   
 
 
 
    try    
    {   
   
 
        eventArgs.set_cancel(  
 
 
 
true);   
    }   
   
 
 
 
   
 
    catch (e)   
    {  
 
        alert(  
 
 
 
"I need to make sure the Advanced Edit form doesn't close here...How can I invoke a Cancel??");   
   
 
        alert(e);  
 
    }  
}  
 
 
 
 
 

 

 

 

 

 

 

 

 

 

Veselin Vasilev
Telerik team
 answered on 18 May 2009
2 answers
116 views
Hi

I'm having problems finding an example of how I Bind the Scheduler to a LinQ datasource from backend. The "LinqDataSource" example shows how to bind in the markup. But that is not flexible enough.

Do you have an example or some code showing how to do it?

Regards
Rune
Rune
Top achievements
Rank 2
 answered on 18 May 2009
1 answer
167 views
Hi;
Please I need your help to lead me, I start to work with "RadScheduler Control"  but I need to exchange information between the MS-Outlook and my RadScheduler, so how I can do that, I need your advice.
Thanks

Ban
Dimitar Milushev
Telerik team
 answered on 18 May 2009
5 answers
264 views
Hello,

A quick clarification.
It appears that Standard edition of RadEditor requires ASP.NET AJAX Extensions while Lite does not?
Am I correct?

For the support for Flash objects embedding, we are considering to move to the standard edition.
I suppose FlashManager is the only way, since, with the Lite, even if I place it in the HTML view, it is removed when saved.

Should I understand that to implement functions such as this, the Standard edition needs to work on top of the ASP.NET AJAX Extensions?

Finally, we are with MOSS version 12.0.0.6341.
http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3
Is this, a pretty manual installation, still the only way to install ASP.NET AJAX Extensions?

Thank you very much in advance for your prompt response.
kazu
Michael
Top achievements
Rank 1
 answered on 18 May 2009
1 answer
196 views
Is it possible to word wrap the text appearing on tabs?
Paul
Telerik team
 answered on 18 May 2009
3 answers
87 views
hello to all expert

                          Good Day ! i would like to ask some again to all of you who knows very will, here's my question in my page i have two textbox namely idnumber and firstname, one button namely search and one grid. i'm using stored procedure to load the data on the grid..now when the user input an idnumber or firstname and click the button search it will filter..is there a way to filter the data inside the grid without having any stored proc.on my search button to filter the data..

sample codes is highly appreciated

thanks to all
Princy
Top achievements
Rank 2
 answered on 18 May 2009
1 answer
106 views
This page covers the "CollapseDelay property in RadPanelBar.

You will note that the example of this property's use on the page refers to "ClosingDelay".

--
Stuart
Paul
Telerik team
 answered on 18 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?