Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
307 views
Two questions, one hopefully very simple so will start with that.

My dataset contains values like (14.8206902137731, 15.4773593366931, 14.6153823359167,13.9488355186086 etc). When I view them on my bar chart the first three values are rounded to 15 and the 4th to 14 and thus look identical. How do I show at least some difference between them (rounding to 2 decimal points is sufficient)?

Second question - based on user input, I need to dynamically add a horizontal line on across the graph (y-axis), reading something like "your value". I'm thinking I'd do this by creating a marked zone, set ValueStartY and ValueEndY to the user input value (once calculated).
Seems to work but not quite sure where the label is (or isn't) and I'm concerned that the label is displayed inside the marked zone but as I need to have the zone set so it displays as a line, then I can't see the label?
I have Label TextBlock-Visible = true and have tried various settings for TextBlock-Position to no avail - no text appears. I just want a label to appear to the right of the Marked Zone. 

thanks in advance
--M
Ves
Telerik team
 answered on 19 Feb 2010
1 answer
111 views
Hi,

I have the code bellow.
It seems that when I press save the controls: RadEditor and RadTextEditor with multiline cannot be updated after async postback.
They will loose the values (there is empty).
Also the RadEditor loose its features.

I want to have a RadAjaxMnaager into MasterPage (which is) and on other controls and pages to have proxy. But I have the problem with these controls

Thank you.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomSectionEditForm.ascx.cs" Inherits="ModulesAdministration.Articles.__Components.CustomSectionEditForm" %> 
 
<%@ Register src="../../__Components/EditForm/CustomSectionBoxEditFormTemplate.ascx" tagname="CustomSectionBoxEditFormTemplate" tagprefix="SciDev" %> 
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormCancel.ascx" tagname="CustomSectionEditFormCancel" tagprefix="SciDev" %> 
<%@ Register src="../../__Components/EditForm/CustomSectionEditFormSave.ascx" tagname="CustomSectionEditFormSave" tagprefix="SciDev" %> 
<%@ Register src="CustomSectionComboBoxTreeView.ascx" tagname="CustomSectionComboBoxTreeView" tagprefix="SciDev" %> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" > 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server"> 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="PanelEditForm"> 
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="PanelEditForm" LoadingPanelID="RadAjaxLoadingPanel" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 
 
<asp:Panel ID="PanelEditForm" runat="server">   
    <SciDev:CustomSectionBoxEditFormTemplate ID="CustomSectionBoxEditFormTemplate" runat="server" 
        HeaderText="Please edit the record bellow:" > 
        <ContentTemplate> 
            <asp:FormView ID="FormViewEdit" runat="server" DefaultMode="Edit" DataKeyNames="Id"  
                DataSourceID="CustomObjectDataSourceEditDataSourceID" 
                Width="100%"> 
                <EditItemTemplate> 
 
                    <!-- <edit fields section> --> 
                    <div style="margin-top: 0px; margin-bottom: 0px;"> 
                        <asp:Label ID="LabelId" runat="server" Text='<%# Bind("Id") %>' visible="false" /> 
                        <asp:Label ID="LabelCultureCode" runat="server" Text='<%# Bind("CultureCode") %>' visible="false" /> 
 
                        <table cellpadding="0" cellspacing="0" width="100%"> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <Note> --> 
                                    <div style="margin-top: 2px; margin-bottom: 24px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <SciDev:CustomLabel ID="CustomLabelNote" runat="server"  
                                                        Localizable="true" 
                                                        CssClass="WebsiteSkeleton_Font_TextNote" 
                                                        Text="Note: The fields marked with (*) are mandatory and the those marked with (@) are multilanguage !"/> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Note> --> 
                                </td> 
                            </tr> 
                           <tr> 
                                <td style="width: 100%"> 
                                    <!-- <Parent category> --> 
                                    <div style="margin-top: 2px; margin-bottom: 8px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <%= Translator.Translate("Parent category")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <SciDev:CustomSectionComboBoxTreeView ID="CustomSectionComboBoxTreeView" runat="server" 
                                                       SelectedValue='<%# Bind("IdParent") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Parent category> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <Author> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedAuthor" runat="server"  
                                                        Localizable="true" 
                                                        Mandatory="true" 
                                                        Multilanguage="true" 
                                                        Text="Author"/> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <SciDev:CustomRadTextBox ID="CustomRadTextBoxAuthor" runat="server" 
                                                        Width="256px" 
                                                        Mandatory="true" 
                                                        Text='<%# Bind("Author") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Author> --> 
                                </td> 
                            </tr> 
                             <tr> 
                                <td style="width: 100%"> 
                                    <!-- <Subject> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSubject" runat="server"  
                                                        Localizable="true" 
                                                        Mandatory="true" 
                                                        Multilanguage="true" 
                                                        Text="Subject"/> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <SciDev:CustomRadTextBox ID="CustomRadTextBoxSubject" runat="server" 
                                                        Width="512px" 
                                                        Height="32px" 
                                                        TextMode="MultiLine" 
                                                        Mandatory="true" 
                                                        Text='<%# Bind("Subject") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Subject> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <Summary, Content, Description, Comments> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td> 
                                                    <telerik:RadTabStrip ID="RadTabStrip" runat="server" SelectedIndex="0" Skin="Default"  
                                                        Width="100%" 
                                                        MultiPageID="RadMultiPageEdit"> 
                                                        <Tabs> 
                                                            <telerik:RadTab runat="server"> 
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedSummary" runat="server"  
                                                                        Localizable="true" 
                                                                        Mandatory="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Summary"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"> 
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedContent" runat="server"  
                                                                        Localizable="true" 
                                                                        Mandatory="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Content"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"> 
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedDescription" runat="server"  
                                                                        Localizable="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Description"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                            <telerik:RadTab runat="server"> 
                                                                <TabTemplate> 
                                                                    <SciDev:CustomLabelDecorated ID="CustomLabelDecoratedComments" runat="server"  
                                                                        Localizable="true" 
                                                                        Multilanguage="true" 
                                                                        Text="Comments"/> 
                                                                </TabTemplate> 
                                                            </telerik:RadTab> 
                                                        </Tabs> 
                                                    </telerik:RadTabStrip> 
                                                    <telerik:RadMultiPage ID="RadMultiPageEdit" runat="server" Width="100%"  
                                                        SelectedIndex="0"> 
                                                        <telerik:RadPageView ID="RadPageViewSummary" runat="server"> 
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorSummary" runat="server" 
                                                                Content='<%# Bind("Summary") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewContent" runat="server"> 
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorContent" runat="server"  
                                                                Content='<%# Bind("Content") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewDescription" runat="server"> 
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorDescription" runat="server"  
                                                                Content='<%# Bind("Description") %>' /> 
                                                        </telerik:RadPageView> 
                                                         
                                                        <telerik:RadPageView ID="RadPageViewComments" runat="server"> 
                                                            <SciDev:CustomRadEditor ID="CustomRadEditorComments" runat="server"  
                                                                Content='<%# Bind("Comments") %>' /> 
                                                        </telerik:RadPageView> 
                                                    </telerik:RadMultiPage> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </Summary, Content, Description, Comments> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <ActivationDateTime> --> 
                                    <div style="margin-top: 8px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <%= Translator.Translate("ActivationDateTime")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <SciDev:CustomRadDateTimePicker ID="CustomRadDateTimePicker" runat="server" 
                                                        Localizable="true" 
                                                        DbSelectedDate='<%# Bind("ActivationDateTime") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </ActivationDateTime> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <IsLocked> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <%= Translator.Translate("IsLocked")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <asp:CheckBox ID="CheckBoxIsLocked" runat="server" Checked='<%# Bind("IsLocked") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </IsLocked> --> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td style="width: 100%"> 
                                    <!-- <IsDeleted> --> 
                                    <div style="margin-top: 2px; margin-bottom: 2px;"> 
                                        <table cellpadding="0" cellspacing="0" width="100%"> 
                                            <tr> 
                                                <td align="left" valign="middle"> 
                                                    <%= Translator.Translate("IsDeleted")%> 
                                                </td> 
                                                <td align="left" valign="middle" style="width: 85%;"> 
                                                    <asp:CheckBox ID="CheckBoxIsDeleted" runat="server" Checked='<%# Bind("IsDeleted") %>' /> 
                                                </td> 
                                            </tr> 
                                        </table> 
                                    </div> 
                                    <!-- </IsDeleted> --> 
                                </td> 
                            </tr> 
                        </table> 
                    </div> 
                    <!-- </edit fields section> -->              
 
                    <!-- <save cancel section> -->  
                    <div style="margin-top: 8px; margin-bottom: 8px;">                            
                        <table cellpadding="0" cellspacing="5"> 
                            <tr> 
                                <td> 
                                    <div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "> 
                                        <SciDev:CustomSectionEditFormSave ID="CustomSectionEditFormSave" runat="server" 
                                            OnSaveClick="CustomButtonSave_Click" /> 
                                    </div> 
                                </td> 
                                <td> 
                                    <div style="margin-top: 0px; margin-bottom: 0px; margin-left: 16px; margin-right: 16px; "> 
                                        <SciDev:CustomSectionEditFormCancel ID="CustomSectionEditFormCancel" runat="server"/> 
                                    </div> 
                                </td> 
                            </tr> 
                        </table>      
                    </div> 
                    <!-- </save cancel section> --> 
 
                </EditItemTemplate> 
            </asp:FormView> 
 
            <SciDev:CustomObjectDataSourceEdit ID="CustomObjectDataSourceEdit" runat="server"  
                DataSourceID="CustomObjectDataSourceEditDataSourceID" 
                DataObjectTypeName="Project.PresentersTier.Presenters.InteractiveWorld.ArticlePresenter" 
                TypeName="Project.PresentersTier.PresenterControllers.InteractiveWorld.ArticlePresenterCtrl"   
                SelectMethodOnCreateMode="CreateDefault"  
                InsertMethodOnCreateMode="MakePersistent" 
                SelectMethodOnUpdateMode="GetByIdAndCultureCode" 
                UpdateMethodOnUpdateMode="MakePersistent" 
                OnValidation="CustomObjectDataSourceEdit_Validation" 
                OnInserted="CustomObjectDataSourceEdit_Inserted" 
                OnUpdated="CustomObjectDataSourceEdit_Updated" > 
            </SciDev:CustomObjectDataSourceEdit> 
        </ContentTemplate> 
    </SciDev:CustomSectionBoxEditFormTemplate> 
</asp:Panel> 
 
 
 
 

Pavel
Telerik team
 answered on 19 Feb 2010
1 answer
109 views
Hello,

I'm using ASP.NET AJAX RadGrid control with ASP.NET MVC and I'm wondering what solution would be best for saving per customer "ClientSettings" from RadGrid without using doPostBack?

My RagGrid Client settings:
<ClientSettings Resizing-AllowColumnResize="True" ReorderColumnsOnClient="True" Resizing-EnableRealTimeResize="True" AllowRowHide="True" AllowKeyboardNavigation="True" AllowColumnsReorder="True" AllowColumnHide="True" EnableAlternatingItems="False" /> 

Is there, a way to get all this settings on some client event and save them to a cookie or make ajax post?

Thanks
Georgi Krustev
Telerik team
 answered on 19 Feb 2010
1 answer
91 views
My Panel Bar item has weird color like tile on IE. No problem on FireFox or Chrome. Any idea?
Yana
Telerik team
 answered on 19 Feb 2010
9 answers
150 views
I want to use a radiobutton as an additional field in the radUpload control.
I wish to force the user to select either of two choices.
I have created the javascript so they show up correctly on the page, but I cannot access the values from the UploadedFiles collection.

here is the java to create the additional fields.
var numberOfCustomFields = 0;  
function OnClientAddedHandler(sender, eventArgs)  
{  
  var inputRow = eventArgs.get_row();  
  var uList = inputRow.parentNode;  
  var count = 0;  
      
  //new row for a User Manual Category check box  
  newRow = document.createElement("li");  
  count++;  
  uList.insertBefore(newRow, inputRow);  
  var label = document.createElement("span");  
  label.innerHTML = "Manuals/Add. info";  
  label.style.fontSize = 12;  
  input = document.createElement("input");  
  input.type = "radio";  
  input.name = "group" + count;  
  input.id  = sender.getID("radUserManual");     
  newRow.appendChild(input);  
  newRow.appendChild(label);  
    
  //new row for a Cut-Sheets Category check box  
  newRow = document.createElement("li");  
  count++;  
  uList.insertBefore(newRow, inputRow);  
  var label = document.createElement("span");  
  label.innerHTML = "FFE Cut Sheet";  
  label.style.fontSize = 12;  
  input = document.createElement("input");  
  input.type = "radio";  
  input.name = "group"+ count;  
  input.id = sender.getID("radCutSheet");     
  newRow.appendChild(input);  
  newRow.appendChild(label);  
   
  // Set the number of fields from the count    
  numberOfCustomFields = count;  
}  
function OnClientDeletingHandler(sender, eventArgs)  
{  
   var input = eventArgs.get_fileInputField();  
   deleteCustomFields(input);  
}  
function OnClientDeletingSelectedHandler(sender, eventArgs)  
{  
  var inputs = eventArgs.get_fileInputFields();  
    
  for (i = 0; i < inputs.length; i++)  
  {  
    deleteCustomFields(inputs[i]);       
  }  
  eventArgs.set_cancel(true);  
}  
function deleteCustomFields(input)  
{  
   var li = input.parentNode.parentNode;  
   var ul = input.parentNode.parentNode.parentNode;  
     
   for (var i = 0; i < numberOfCustomFields; i++)  
   {     
       ul.removeChild(li.previousSibling);          
   }      
   ul.removeChild(li);  
}  
 

and here is where i am trying to get the additional fields values.

For Each f As Telerik.Web.UI.UploadedFile In RadUpload1.UploadedFiles  
                If f.GetIsFieldChecked("radCutSheet") Then  
                    sCategory = "Cutsheet" 
                ElseIf f.GetIsFieldChecked("radUserManual") Then  
                    sCategory = "User Manual" 
                End If  
 
                If Directory.Exists(strPath & Replace(txtStockNumber.Text.Trim, "-", "") & "/") Then  
                    f.SaveAs(strPath & Replace(txtStockNumber.Text.Trim, "-", "") & "/" & f.GetName, True)  
                Else  
                    Directory.CreateDirectory(strPath & Replace(txtStockNumber.Text.Trim, "-", "") & "/")  
                    f.SaveAs(strPath & Replace(txtStockNumber.Text.Trim, "-", "") & "/" & f.GetName, True)  
                End If  
 
                'Insert record into the database - because this file may exists we need to create a stored proc  
                'that will do an insert or an update.  
                'StoreNameinDB(strPath & Replace(txtStockNumber.Text.Trim, "-", "") & "/" & f.GetName, sCategory)  
 
            Next 
bharti ten
Top achievements
Rank 1
 answered on 19 Feb 2010
3 answers
120 views
Hi,
My program logic is as below:
(1).Information in RadGrid is all show in label.
(2).User click on the Edit Icon which has CommandName= "Edit".
(3). GirdView turn into Edit Mode and user key in the information in the textBox.
(4)User click on the Update icon which has CommandName ="Update" and then fire UpdateCommand event.

My problem is in the UpdateCommand Event , i am not able to get the information that has been edited by user.I can only get information that is as before edited.
The purpose to have UpdateCommand event fire is to have checking and perform update action.
Does any one has idea on this?

My Coding is as below:



[code]
Protected Sub ajaxGridPlant_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles ajaxGridPlant.UpdateCommand
       
        Dim strCompanyNo As String
        Dim strPlantName As String
        Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
        Dim strPlantNo As String
        Dim strLastModifiedBy As String
        Dim dteLastModifiedOn As DateTime


        Try




            strCompanyNo = CType(editedItem.FindControl("ddlCompanyNo"), RadComboBox).SelectedItem.Value

            strPlantNo = CType(editedItem.FindControl("txtPlant"), TextBox).Text

            strPlantName = CType(editedItem.FindControl("txtPlantName"), TextBox).Text

            strLastModifiedBy = CType(editedItem.FindControl("lblEditLastModifiedBy"), Label).Text
            dteLastModifiedOn = CType(editedItem.FindControl("lblEditLastModifiedOn"), Label).Text


            If strPlantNo = "" Then
                Throw New Exception("OMG!!")

            End If

            'UpdateRecord(strCompanyNo, strPlantNo, strPlantName, strLastModifiedBy, dteLastModifiedOn)

        Catch ex As Exception
            Alert(ex.Message)

        End Try
[/code]
johnson lim
Top achievements
Rank 1
 answered on 19 Feb 2010
1 answer
262 views
I'm trying to use a GridNumericColumn in a Grid using InPlace editing.  The field is a decimal 18,10 in Sql Server. Length of 8 to left and 10 to right of decimal.  The field displays properly in both item and edit modes. However, when you click on the field to edit, the field cuts off to only 2 decimal places to the right.   I've tried several different things but haven't got it to work.  I figured there be a decimal postion property but don't see one. The line is listed below in its current format. But this isn't working properly.

                            <telerik:GridNumericColumn UniqueName="Reduction" SortExpression="Reduction" HeaderText="Reduction" DataField="Reduction" FooterText="NumericColumn footer" NumericType="Number" AllowRounding="false" DataType="System.Decimal" KeepNotRoundedValue="true" DataFormatString="{0:F10}"  >                              
                            </telerik:GridNumericColumn>   


Thanks
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2010
1 answer
283 views
    <script type="text/javascript">                                                                                                                                            
        function docFileGridOnRowCreated(sender, eventArgs) { } 
        function docFileGridOnRowCreating(sender, eventArgs) { } 
         
        function docFileGridOnRowDblClick(sender, eventArgs)  
        {  
            alert(eventArgs.get_gridDataItem().get_dataItem()); 
        } 
    </script>      
    <style type="text/css">                         
    </style>   
 
       
    <asp:Button ID="btn" runat="server" Text="Save" /> 
    <cym:RadGrid ID="docFileGrid" runat="server" DataSourceID="docFileODS" 
        ClientSettings-ClientEvents-OnRowDblClick=""> 
        <ClientSettings> 
            <ClientEvents OnRowCreated="docFileGridOnRowCreated" 
                OnRowCreating="docFileGridOnRowCreating" OnRowDblClick="docFileGridOnRowDblClick" />             
        </ClientSettings> 
        <MasterTableView DataKeyNames="AccountFileID, AccountID, FileID, GUID"> 
            <Columns>                 
                <rad:GridBoundColumn DataField="FileName" HeaderText="Name" />    
        </MasterTableView> 
    </cym:RadGrid> 

I've subscribed to the OnRowCreated/OnRowCreating event as per the documentation's instructions; however, get get_dataItem() and get_dataKeyValue() methods return null.  What am I doing wrong?
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2010
4 answers
121 views
When I use Editor control on the custom user control and try to export PDF, the PDF is not generating. Any Ideas to fix this?
Praveen
Top achievements
Rank 1
 answered on 19 Feb 2010
12 answers
594 views

So I found this example on how create a dropdown and bind it to the grid.

<!--GridDropDownColumn example-->    
<telerik:GridDropDownColumn DataSourceID="SqlDataSource3" ListTextField="City" ListValueField="City"     
          UniqueName="City" HeaderText="RadComboBox Column" DataField="City"     
          DropDownControlType="RadComboBox">     
</telerik:GridDropDownColumn>     
    
<!--New SqlDataSource for DropDownColumn -->    
<asp:SqlDataSource runat="server" ID="SqlDataSource3" ConnectionString="<%$     
          ConnectionStrings:NorthwindConnectionString %>"     
          SelectCommand="SELECT DISTINCT [City] FROM [Employees]">    
</asp:SqlDataSource>    
 

But lets say I have 3 columns:  Col1, Col2 and Col3

Col1 is a drop down with static values.
Col2 is a dropdown as well but the values displayed will be dependent on what value was selected in Col1.
Col3 is a dropdown as well but the values displayed will be dependent on what values were select in Col1 and Col2.

I would need to use a stored procedure for this, no in-line sql code can be used. 
Would you be able to show me an example of how to do this?

Thanks,
Nathan

ps. if you could do vb examples if possilbe
Erwin Floresca
Top achievements
Rank 1
 answered on 19 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?