Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
My application currently use RadControls for ASP.NET Q1 2007. I want to upgrade the controls to the newest. I am considering upgrading to RadControls for ASP.NET Ajax, but it seems it is not compatible with .NET 2.0. Could I use RadControls for ASP.NET Ajax with .NET 2.0? If so, how do I upgrade? If not, how do I upgrade to RadControls for ASP.NET Q2 2008?

Thanks!
Princy
Top achievements
Rank 2
 answered on 04 Sep 2008
1 answer
258 views

Hello,


I would like to find the textboxes in my editformsettings on the client side. Basically, I want to be able to press a button (e.g. Geocode) during editing to lookup a value. After selecting the right value from the list, I want it to update the textbox(s) appropriately. Initially, I did it via brute force for one row: document.getElementById('RadGrid1_ctl01_ctl05_tbCity').value = 'yada';

Now with multiple rows, I can't do this. How do I get the name of the textbox generated in my editform. Any insight?

Thanks in advance,
Albert Gorup


<

rad:RadGrid ID="RadGrid1"

runat="server" AutoGenerateColumns="False"

GridLines="None" Skin="FFCIGreen"

ShowStatusBar="True"

EnableAJAXLoadingTemplate="True"

OnUpdateCommand="RadGrid1_UpdateCommand"

OnInsertCommand="RadGrid1_InsertCommand"

OnSelectedIndexChanged="RadGrid1_OnSelectedIndexChanged"

PageSize="10" Width="100%">

<ClientSettings>

<Selecting AllowRowSelect="True"></Selecting>

</ClientSettings>

<AJAXLoadingTemplate>

<div >Loading....</div>

</AJAXLoadingTemplate>

<MasterTableView DataKeyNames="AddressID" AutoGenerateColumns="false" EditMode="EditForms" CommandItemDisplay="Top" >

<Columns>

<rad:GridButtonColumn UniqueName="SelectCommandColumn" CommandName="Select" Text="Select"

HeaderText="Select">

</rad:GridButtonColumn>

<rad:GridButtonColumn UniqueName="EditCommandColumn" CommandName="Edit" Text="Edit"

HeaderText="Edit">

</rad:GridButtonColumn>

<rad:GridBoundColumn DataField="AddressID" HeaderText="AddressID" SortExpression="AddressID"

UniqueName="AddressID" Visible="false">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="StreetAddress" HeaderText="StreetAddress" SortExpression="StreetAddress"

UniqueName="StreetAddress">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="StreetAddress2" HeaderText="StreetAddress2" SortExpression="StreetAddress2"

UniqueName="StreetAddress2" Visible="false">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" UniqueName="City">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="StateCD" HeaderText="StateCD" SortExpression="StateCD"

UniqueName="StateCD">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode" SortExpression="ZipCode"

UniqueName="ZipCode">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="GeoCode" HeaderText="GeoCode" SortExpression="GeoCode"

UniqueName="GeoCode" Visible="false">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="County" HeaderText="County" SortExpression="County"

UniqueName="County" Visible="false">

</rad:GridBoundColumn>

<rad:GridBoundColumn DataField="CountryCD" HeaderText="CountryCD" SortExpression="CountryCD"

UniqueName="CountryCD" Visible="false">

</rad:GridBoundColumn>

</Columns>

<RowIndicatorColumn Visible="True">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric" Position="Bottom" >

</PagerStyle>

<EditFormSettings EditFormType="Template" >

<FormTemplate>

<table>

<tr>

<td>

Address:

</td>

<td>

<asp:TextBox ID="tbStreetAddress" runat="server" Text='<%# Bind( "StreetAddress" ) %>'>

</asp:TextBox></td>

</tr>

<tr>

<td>

Address #2:

</td>

<td>

<asp:TextBox ID="tbStreetAddress2" runat="server" Text='<%# Bind( "StreetAddress2" ) %>'>

</asp:TextBox></td>

</tr>

<tr>

<td>

City:

</td>

<td>

<asp:TextBox ID="tbCity" runat="server" Text='<%# Bind( "City" ) %>'>

</asp:TextBox></td>

</tr>

<tr>

<td>

State:

</td>

<td>

<asp:DropDownList id="ddStateCD" runat="server" SelectedIndex='<%# GetSelIndex(DataBinder.Eval( Container, "DataItem.StateCD" )) %>'>

<asp:ListItem Value="">&nbsp;</asp:ListItem>

<asp:ListItem Value="AA">ALABAMA</asp:ListItem>

<asp:ListItem Value="AK">ALASKA</asp:ListItem>

<asp:ListItem Value="AR">ARIZONA</asp:ListItem>

<asp:ListItem Value="AK">ARKANSAS</asp:ListItem>

<asp:ListItem Value="CA">CALIFORNIA</asp:ListItem>

<asp:ListItem Value="CO">COLORADO</asp:ListItem>

<asp:ListItem Value="CT">CONNECTICUT</asp:ListItem>

<asp:ListItem Value="DE">DELAWARE</asp:ListItem>

<asp:ListItem Value="DC">DISTRICT OF COLUMBIA</asp:ListItem>

<asp:ListItem Value="FL">FLORIDA</asp:ListItem>

<asp:ListItem Value="GA">GEORGIA</asp:ListItem>

<asp:ListItem Value="HA">HAWAII</asp:ListItem>

<asp:ListItem Value="ID">IDAHO</asp:ListItem>

<asp:ListItem Value="IL">ILLINOIS</asp:ListItem>

<asp:ListItem Value="IN">INDIANA</asp:ListItem>

<asp:ListItem Value="IO">IOWA</asp:ListItem>

<asp:ListItem Value="KA">KANSAS</asp:ListItem>

<asp:ListItem Value="KE">KENTUCKY</asp:ListItem>

<asp:ListItem Value="LA">LOUISIANA</asp:ListItem>

<asp:ListItem Value="MA">MAINE</asp:ListItem>

<asp:ListItem Value="MD">MARYLAND</asp:ListItem>

<asp:ListItem Value="MA">MASSACHUSETTS</asp:ListItem>

<asp:ListItem Value="MI">MICHIGAN</asp:ListItem>

<asp:ListItem Value="MN">MINNESOTA</asp:ListItem>

<asp:ListItem Value="MS">MISSISSIPPI</asp:ListItem>

<asp:ListItem Value="MO">MISSOURI</asp:ListItem>

<asp:ListItem Value="MT">MONTANA</asp:ListItem>

<asp:ListItem Value="NE">NEBRASKA</asp:ListItem>

<asp:ListItem Value="NV">NEVADA</asp:ListItem>

<asp:ListItem Value="NH">NEW HAMPSHIRE</asp:ListItem>

<asp:ListItem Value="NJ">NEW JERSEY</asp:ListItem>

<asp:ListItem Value="NM">NEW MEXICO</asp:ListItem>

<asp:ListItem Value="NY">NEW YORK</asp:ListItem>

<asp:ListItem Value="NC">NORTH CAROLINA</asp:ListItem>

<asp:ListItem Value="ND">NORTH DAKOTA</asp:ListItem>

<asp:ListItem Value="OH">OHIO</asp:ListItem>

<asp:ListItem Value="OK">OKLAHOMA</asp:ListItem>

<asp:ListItem Value="OR">OREGON</asp:ListItem>

<asp:ListItem Value="PE">PENNSYLVANIA</asp:ListItem>

<asp:ListItem Value="RI">RHODE ISLAND</asp:ListItem>

<asp:ListItem Value="SC">SOUTH CAROLINA</asp:ListItem>

<asp:ListItem Value="SD">SOUTH DAKOTA</asp:ListItem>

<asp:ListItem Value="TN">TENNESSEE</asp:ListItem>

<asp:ListItem Value="TX">TEXAS</asp:ListItem>

<asp:ListItem Value="UT">UTAH</asp:ListItem>

<asp:ListItem Value="VE">VERMONT</asp:ListItem>

<asp:ListItem Value="VI">VIRGINIA</asp:ListItem>

<asp:ListItem Value="WA">WASHINGTON</asp:ListItem>

<asp:ListItem Value="WV">WEST VIRGINIA</asp:ListItem>

<asp:ListItem Value="WI">WISCONSIN</asp:ListItem>

<asp:ListItem Value="WY">WYOMING</asp:ListItem>

</asp:DropDownList>

</td>

</tr>

<tr>

<td>

Zip Code:

</td>

<td>

<asp:TextBox ID="tbZipCode" runat="server" Text='<%# Bind( "ZipCode" ) %>'>

</asp:TextBox>

</td>

</tr>

<tr>

<td>

County:

</td>

<td>

<asp:TextBox ID="tbCounty" runat="server" Text='<%# Bind( "County" ) %>'>

</asp:TextBox>

</td>

</tr>

<tr>

<td>

Geo Code:

</td>

<td>

<asp:TextBox ID="tbGeoCode" runat="server" Text='<%# Bind( "GeoCode" ) %>'>

</asp:TextBox>&nbsp;<input type="button" onclick="javascript:GeoCodeLookup()" id="btnGeoCodeLookUp" value="GeoCode"/>

</td>

</tr>

<tr>

<td align="right" colspan="2">

<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'

runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

</asp:Button>&nbsp;

<

asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

CommandName

="Cancel"></asp:Button></td>

</tr>

</table>

</FormTemplate>

</EditFormSettings>

</MasterTableView>

</rad:RadGrid>

Shinu
Top achievements
Rank 2
 answered on 04 Sep 2008
5 answers
178 views
I was able to force my main grid into edit mode by using the pre-render event as discussed in the documentation.  I would like to force only my child grid into edit mode, how do I do that?

Murray
Princy
Top achievements
Rank 2
 answered on 04 Sep 2008
3 answers
158 views
Do the values in a custom attribute need to be unique?

I am wanting to create a custom attribute called Group to link a bunch of nodes together (they do not have the same parent) and then be able to find them all using findNodeByAttribute - but according to the documentation it looks like this method only returns 1 node. If this is the case is there another way to do this?

Thanks.
Darren
Top achievements
Rank 1
 answered on 03 Sep 2008
1 answer
212 views
Hello,

I have a column in a DataTable wich cotains a value frm an enum.
To display and editthis value in a radGrid I use a GridDropDownColumn.

But I have some difficulties:

1) It is impossible for me to bind declaratively the DropDown to a table as my values are in an enum, so to insert/modify, I added an ItemDatabound handler where I find the radComboBox by its uniqueName then add RadComboboxItems to it.
Here I have found no way to bind to some table. Its working as this but not very effiscient.
2) when not in Edit mode, I am unable to display in the column containing the int value a text from my enum text rather then an int.
In fact I display nothing.
Previous strategy of finding the RadComboBox and adding items does not work.
I have tryed to find my item and set display text manually, using  e.Item["ItemUniqueName"].Text, but I get "&nbsp;"


Shouldn't all this be automatic ?

Thanks for help.
CS
                   
andy
Top achievements
Rank 1
 answered on 03 Sep 2008
3 answers
100 views
I have decided to use the edit form and embed a child grid inside rather than use hierarchy. This is my setup:

Provider table and each provide can have one or more contacts.

My main page lists providers, and when I click to edit (or insert) a provider, one of the controls in the form is a subgrid of the contacts. In order to do this, I need to know what the current selected provider is. How can I set or get a variable that would contain the current provider_id and use this in my select statement for the contact table?

Thanks,
Laura
andy
Top achievements
Rank 1
 answered on 03 Sep 2008
8 answers
2.4K+ views

Hi telrik

I'm having a RadGrid that  contains a column of type  GridCheckBoxColumn 

when the grid first populated the checkboxes for the GridCheckBoxColumn type  is read only

how can I enable it.

L
Top achievements
Rank 1
 answered on 03 Sep 2008
1 answer
167 views
Has anyone achieved a running total innately in the RadGrid that acts like a checkbook-register or does it truly need to be a backend cursor operation to achieve this look and feel.  i need to place a "Balance" on the last column that adds-subtracts a value in another column over time.

Thanks in advance.
Doug
Doug Odegaard
Top achievements
Rank 2
 answered on 03 Sep 2008
1 answer
216 views
I need some suggestions.

I've got this requirement that the user selects a month and a year.  The user can not select a day, as I must always have the dates start on the first.
So something like Effective Date = Jan 01, 1997

I like the date picker, but  I don't want to show the calendar of days.  The user will attempt to pick the 15th, and I'll override their selection to the 1st, and then I'll get a ticket that it didn't pick the user selected value of the 15th.

I think just a list of Months and list of Years would be great.  Perhaps something with text boxes and the up/down arrows.  I'm shoving this in an InLine Edit of a grid.

Any thoughts, any controls that I missed to look at?

Thanks!

Tim
-DJ-
Top achievements
Rank 1
 answered on 03 Sep 2008
1 answer
70 views
Hi,

I am using RadMaskedTextBox i know if i do this  (###) ###-#### it will take numeric values but what if i want something like this. ______@yahoo.com. i tried using aaaa@yahoo.com in the custom mask but it will show something like this on the screen @yah.@yahoo.com. what should i do to let user enter any input but with a mask @yahoo.com.

ramya
Missing User
 answered on 03 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?