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

I am trying to install RadControls_for_ASP.NET_AJAX_2009_2_826_dev (aka Q2 2009 SP1) to work with Visual Studio 2010.  During the install wizard, I selected "Complete".  It presents me with a summary of what will be installed.  However, within that summary it shows that none of the Visual Studio extensions will be installed...none of those are shown as checked/selected to be installed.

I run the install process and open VS 2010 and there is no telerik menu, no telerik items in the toolbox, and the RadControls do not display correctly in our pages.

I'm running Windows XP SP3, VIsual Studio 2010 beta, and I verified I am the administrator on my machine.  This is working fine for a co-worker who is running the same setup.

This is my first attempt installing telerik controls on this machine, and it's a fresh install of VS 2010.  I'm wondering if this is a licensing issue or something, because I tried installing the RadControls Q3 Beta, and the 2010 extension was selected in the install summary, and the telerik menu was displayed in VS 2010.  Unfortunately, the Q3 beta isn't a viable solution for us, as we use the Q2 RadControls.  The particular license I'm using belonged to a different employee, but has since been switched to me.

Is there a place where I can download and install the Visual Studio Extensions seperately?  It seems it's not going to install them with the main installer provided with my Telerik account.

Thanks,
Nate
Erjan Gavalji
Telerik team
 answered on 09 Jan 2010
1 answer
173 views
Hello all!

i have the following rad controls on my page.

<

 

 

rad:RadTextBox ID="txtOtherNames" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OtherNames") %>'>

 

 

 

</rad:RadTextBox>

 

 

<

 

 

rad:RadComboBox ID="txtGender" runat="server" value='<%# DataBinder.Eval(Container, "DataItem.Gender") %>' >

 

 

 

<Items>

 

 

 

<rad:RadComboBoxItem ID="RadComboBoxItem1" runat="server" Text="Male" Value="M" />

 

 

 

<rad:RadComboBoxItem ID="RadComboBoxItem2" runat="server" Text="Female" Value="F" />

 

 

 

</Items>

 

 

 

</rad:RadComboBox>

 

 

<

 

 

rad:RadDatePicker ID="txtDOB" runat="server" SelectedDate='<%# DataBinder.Eval(Container, "DataItem.Dob") %>'>

 

 

 

</rad:RadDatePicker>

 

 

 

<asp:RequiredFieldValidator ID="txtDOBValidator" runat="server" ControlToValidate="txtDOB"

 

 

 

Display="Dynamic" ErrorMessage="<div>Date expected</div>" />

 

<

 

 

rad:RadComboBox ID="txtGuardian" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.GuardianId") %>'>

 

 

 

</rad:RadComboBox>

 

The textbox and date picker work correctly ie. are binding but the comboboxes are not adjusting according to the records in the table.

What shld i use in the

='

 

 

<%# DataBinder.Eval(Container, "DataItem.GuardianId") %>' clause.

 

 

thnx so much

Simon
Telerik team
 answered on 08 Jan 2010
3 answers
199 views
Hi,

I am following the example on http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx.
It works fine, so I updated it a bit to move the external form into the usercontrols and updated related code like find control and ajax setting registration etc, I then add code to dynamically load the EmployeesGrid usercontrol by follow the logic in this post http://www.telerik.com/help/aspnet-ajax/ajxloadusercontrols.html

I can load the user control, and select then delete item on the grid by using the grid's command button.

However, if I click edit to load a row into the external form and click update or delete button in the external form, I got exceptions.

For example, if I press the delete button on debug mode, and debug into the event hander below:
protected void Delete_Click(object sender, EventArgs e)
    {
        //RadGrid employeesGrid = (this.FindControl("EmployeesGrid1").FindControl("RadGrid1") as RadGrid);
       // RadGrid1 now in the same user control as the external form so can reference directly
        (RadGrid1.SelectedItems[0] as GridDataItem).FireCommandEvent("Delete", string.Empty);
    }
RadGrid1's SelectedItems count always is 0. So seems the status is not persist during the ajax postback.

So I created another simple user control with another RadGrid with paging. Then if dynamically load that usercontrol, the paging seems not working. I add a OnPageIndexedChange event handler and put a break point inside it, the code flow after I page the grid to page 2 is:
main aspx page page_load which load the usercontrol
usercontrol page_load
grid NeedDataSource is called (note: current page index on the grid at this point is still 0)
grid PageIndexChanged is called and the event argument's NewPageIndex is 1, but current page index of the grid is still 0.

So I am confused what the code flow should be, did I missed something? What should I do to make these two examples working?

Many thanks in advance for your time.



NewB
Top achievements
Rank 1
 answered on 08 Jan 2010
6 answers
269 views
I couldn't find any examples, or forum posts, so I thought I'd ask:

I'm trying to initialize a DateTimeColumnEditor to todays date after the user presses the 'Insert' button. I assume the correct place to do this is the 'ItemCommand' handler making sure it's handling a 'InitInsertCommandName'.

When I try to find the column editor using Radgrid1.MasterTableView.GetInsertItem(), I get an exception, claiming that the grid isn't in insert mode. Since this handler only gets called once for this command, I assume there's a different magic spell I need to perform this task.

Can anyone help?

TIA 
Dave Hayward
Top achievements
Rank 1
 answered on 08 Jan 2010
7 answers
135 views
Hello,

I am adding a row to several grids at once by adding an item to their respective collections and then rebinding the grids.  I would like the grids to go into edit mode for the newly-added rows.  How do I do this?

I am using InPlace editing, and advanced data-binding (NeedDataSource event).

Thanks,
Aaron
abonfig
Top achievements
Rank 1
 answered on 08 Jan 2010
2 answers
119 views
Hello, I have not been able to find a guide on how to do this, does one exist?  Or is it not possible to convert them easily?

Edit more detail:
I am converting to asp.net ajax controls has skins that are slightly modified versions of the default skins, and i'm wondering what is the best way to convert those to the new skin layout/format
G W
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
159 views
Hello,
i have a problem: in my ASP page i have a RadGrid with ID="RGDati", i want to read the data into RadGrid cells via javascript;
I'm using this method:

    function readData(){
        var grid = window["<%# RGDati.ClientID %>"];
        alert(grid); // output: "undefined"
        for (var i = 0; i < grid.MasterTableView.SelectedRows.length; i++)  
        {  
            var row = grid.MasterTableView.SelectedRows[i];  
            var cellID = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.SelectedRows[i], "EmployeeID");    
            alert(cellID.innerText);  
        }
    }


but it crash because grid is "undefined"!
If I use this statement
var grid = window["<%= RGDati.ClientID %>"];
i have this error message:

Error Message:The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Stack Trace: at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated)

Please, can you help me?
Schlurk
Top achievements
Rank 2
 answered on 08 Jan 2010
1 answer
138 views
My requirement is as follows:
My page opens in a RadWindow with RadSplitter in 2 Radpanes. both RadPanes have 2 different pages. In the second RadPane, I want to have a RadEditor which will have only one custom button which will open another page in a Radwindow. The new page will have a grid with some values, the data from the selected grid rows has to be inserted in the RadEditor on a button click event. The value from the grid has to be inserted in the editor where the cursor was before the customized button is clicked. Can that be done using RadEditor?

Thanks.
Rumen
Telerik team
 answered on 08 Jan 2010
3 answers
62 views
When the dropdown of my combobox comes down it drops way too far down


Simon
Telerik team
 answered on 08 Jan 2010
1 answer
162 views
Hi,
In my pie chart ,I don't want to display the name of series, just use chart title to tell what the chart is about.
How can I do this?

thanks
-Qing-
Schlurk
Top achievements
Rank 2
 answered on 08 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?