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

I am using Scrolling option in Grid. But both the Horizontal and vertical scroll bars occur simultaneously. Is there any solution to make only one scroll bar to appear.
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2009
2 answers
133 views
How in the world do I get the value from a GridTextBoxColumnEditor control?  I've tried every way I can find and it always comes back empty on the update command of my grid.
Clarence Klopfstein
Top achievements
Rank 1
 answered on 09 Apr 2009
2 answers
199 views
Hello,
I have a number of template fields in a RadGrid which I wish to validate.
I've managed most validation using the Client side "RequiredFieldValidator" and server side validation using the CustomValidator.
I now want to validate one control based on the value of another control in the template.

eg
In the template field I have a Radiobuttonlist with 3 options (ie "Yes", "No", "NA"). If the user selects "No" then they have to enter text in a Textbox or the update should not proceed. If the answer is Yes they dont need to complete the Textbox.

Previously I achieved this in Gridview through something like the following. Its clunky but it works. It checks the Update data when the user tries to update. If it fails the validation they get a message and the update is cancelled.
    Private Sub GridView2_RowUpdating(ByVal sender As ObjectByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView2.RowUpdating  
        Dim InCompliance As String = e.NewValues("Incompliance")  ' this is the value of the selected Radiobutton item
        ' test if there are any comments
        If e.NewValues("Comments"Is System.DBNull.Value Or e.NewValues("Comments") = "" Then 'no comments in textbox
            If ((Trim(InCompliance) <> "Yes")) Then ' User has selected No or NA from Radiobuttonlist
                MessageBox("You must enter a comment if you have entered a No or N/A answer")  
                e.Cancel = True 'Cancel update
            End If 
        End If 
 
    End Sub 
How do I achieve the same in the Radgrid?

Cheers
Robert

SA water
Top achievements
Rank 1
 answered on 09 Apr 2009
2 answers
129 views
I know all the examples are for Beta 1, but I haven't been on that for a while.  Using the getting started example, I don't get any errors, but I also don't get my RadMenu to display.  Has anyone gotten this (or any RadControls) working in MVC RTM? 

Doug Odegaard
Top achievements
Rank 2
 answered on 09 Apr 2009
2 answers
115 views
Hi,
I tried to display the line chart from database. In order to display several dynamic linechart in the same place, I add a Combobox which is also connected to the database, so user can select the ID to display the linechart interactively. The following code is working to display the line chart based on the default value from combobox. However, when I change the selected value in the combobox, the linechart did not change. Could you help me please, how to make the linechart change based on the selected value from combobox ? Thank you very much in advanced. 
Example of  MyDB coulmn :   ID , SampleNum, Y1
                                               1  ,    1 ,              2
                                               1  ,    2 ,              10
                                               1  ,    3 ,               4
                                               2  ,    1,               3
                                               2  ,    2,               15
                                               2  ,    3,                6

Regards.

<body>

    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <div>

   

    </div>

    <telerik:RadComboBox ID="RadComboBox1" Runat="server" DataSourceID="ds1"

        DataTextField="ID" DataValueField="ID">

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

    </telerik:RadComboBox>

    <asp:AccessDataSource ID="ds1" runat="server" DataFile="~/App_Data/MyDB.mdb"

        SelectCommand="SELECT [ID] FROM [Station]"></asp:AccessDataSource>

    <telerik:RadChart ID="RadChart1" runat="server" DataSourceID="ds2"

        DefaultType="Line" Width="1016px">

    </telerik:RadChart>

    <asp:AccessDataSource ID="ds2" runat="server" DataFile="~/App_Data/MyDB.mdb"

        SelectCommand="SELECT [Y1] FROM [Data] WHERE ([ID] = ?) ORDER BY [SampleNum]">

        <SelectParameters>

            <asp:ControlParameter ControlID="RadComboBox2" DefaultValue="ID" Name="ID"

                PropertyName="SelectedValue" Type="String" />

        </SelectParameters>

    </asp:AccessDataSource>

    </form>

</body>


fimus
Top achievements
Rank 1
 answered on 09 Apr 2009
2 answers
119 views
Hi,
I tried to display the line chart from database. In order to display several dynamic linechart in the same place, I add a Combobox which is also connected to the database, so user can select the ID to display the linechart interactively. The following code is working to display the line chart based on the default value from combobox. However, when I change the selected value in the combobox, the linechart did not change. Could you help me please, how to make the linechart change based on the selected value from combobox ? Thank you very much in advanced. 
Example of  MyDB coulmn :   ID , SampleNum, Y1
                                               1  ,    1 ,              5
                                               1  ,    2 ,              10
                                               1  ,    3 ,               4
                                               2  ,    1,               3
                                               2  ,    2,               15
                                               2  ,    3,                6

Regards.


<body>

    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <div>

   

    </div>

    <telerik:RadComboBox ID="RadComboBox1" Runat="server" DataSourceID="ds1"

        DataTextField="ID" DataValueField="ID">

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

    </telerik:RadComboBox>

    <asp:AccessDataSource ID="ds1" runat="server" DataFile="~/App_Data/MyDB.mdb"

        SelectCommand="SELECT [ID] FROM [Station]"></asp:AccessDataSource>

    <telerik:RadChart ID="RadChart1" runat="server" DataSourceID="ds2"

        DefaultType="Line" Width="1016px">

    </telerik:RadChart>

    <asp:AccessDataSource ID="ds2" runat="server" DataFile="~/App_Data/MyDB.mdb"

        SelectCommand="SELECT [Y1] FROM [Data] WHERE ([ID] = ?) ORDER BY [SampleNum]">

        <SelectParameters>

            <asp:ControlParameter ControlID="RadComboBox2" DefaultValue="ID" Name="ID"

                PropertyName="SelectedValue" Type="String" />

        </SelectParameters>

    </asp:AccessDataSource>

    </form>

</body>

fimus
Top achievements
Rank 1
 answered on 08 Apr 2009
2 answers
74 views
Hi,
I have a database with 4 Columns, Lets say: ID, t, Y1, Y2
I would like to plot two RadCharts (Line charts), the first chart display the "Y1" value at Y-axis and "t" value at the X-axis. The second chart will display the "Y2" value at the Y-axis and "t" value at X-axis. The value of both charts will change when the value of "ID" in the Combo Box is changing when user select different ID. Also, I just wondering if we could make both of the line charts can be zoom-in and zoom-out. Please guide me with the simple steps.
Thank you very much for helping.

Kind Regards
fimus
Top achievements
Rank 1
 answered on 08 Apr 2009
1 answer
256 views
Using Javascript, is there a way to do this?  Every time the .ascx page loads I want to use Javascript to popup a radAlert box.

This .ascx has no form or body.

Thanks
Shaun Peet
Top achievements
Rank 2
 answered on 08 Apr 2009
7 answers
119 views
Hello everybody!

All my radajaxloadingpanels suddenly don't show up anymore after they have been displayed for the first time.

This issue only occurs in FF not in IE. I guess this issue airsed when I updated the telerik.web.ui the other month but I'm not 100% sure.

Are there any known issues about this ?

Kind Regards
Ivan Stoilkov
Top achievements
Rank 1
 answered on 08 Apr 2009
1 answer
104 views

I have implemented the AppointmentInsert and it works perfectly. However, the AppointmentUpdate and AppointmentDelete never fire. any ideas?

 

<

 

telerik:RadScriptManager ID="RadScriptManager1" Runat="server" />

 

 

 

<telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="RadScheduler1">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007" />

 

 

 

 

 

 

<telerik:RadScheduler ID="RadScheduler1" runat="server" Skin="Office2007"

 

 

OnAppointmentInsert="RadScheduler1_AppointmentInsert"

 

 

OnAppointmentDelete="RadScheduler1_AppointmentDelete"

 

 

OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"

 

 

DataKeyField="AppointmentID" DataStartField="StartDate" DataEndField="EndDate" DataSubjectField="Subject"

 

 

DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"

 

 

DisplayDeleteConfirmation="true" />

 

mdkangas
Top achievements
Rank 1
 answered on 08 Apr 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?