Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
168 views
I have a grid where the last column is a GridClientSelectColumn which is going to be used as multi delete function so the user does not have to click delete over and over. I have looked around but i can not seem to figure out how to set the value of the check box as the id number (AdminGroupsId) and then retrieve it when i post it.

Thank you for your help
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2009
1 answer
267 views
Is there an easy way to set/clear all checkboxes in the GridCheckBoxColumn or GridTemplateColumn column by using RadGrid client-side API?
Princy
Top achievements
Rank 2
 answered on 06 Jan 2009
4 answers
158 views

Hi

I have been trying to figure out what went wrong. I followed the example on th code library Automatic insert/update/delete using ObjectDataSource.

please help. Thanks a million.

ALTER PROCEDURE [dbo].[spUpdPerInfo]
@ID as nvarchar(100),
@ContactNo as nvarchar(20),
@Email as nvarchar(100),
@ModDate as datetime,

as

UPDATE [tblPerInfo] SET [ContactNo] = @ContactNo, [Email] = @Email, [ModDate] = @ModDate WHERE [ID] = @ID

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

Public Sub PerInfo_Update(ByVal ID As String, ByVal ContactNo As String, ByVal Email As String)

        Dim sqlcmd As New SqlCommand("spUpdPerInfo", getConn)
        sqlcmd.CommandType = CommandType.StoredProcedure
 
        sqlcmd.Parameters.Add(New SqlParameter("@ID", SqlDbType.NVarChar, 50))
        sqlcmd.Parameters("@ID").Value = ID
        sqlcmd.Parameters.Add(New SqlParameter("@ContactNo", SqlDbType.NVarChar, 50))
        sqlcmd.Parameters("@ContactNo").Value = ContactNo

        sqlcmd.Parameters.Add(New SqlParameter("@Email", SqlDbType.NVarChar, 500))
        sqlcmd.Parameters("@Email").Value = Email

        sqlcmd.Parameters.Add(New SqlParameter("@ModDate", SqlDbType.DateTime))
        sqlcmd.Parameters("@ModDate").Value = DateTime.Now

        sqlcmd.ExecuteNonQuery()

        getConn.Close()

End Sub

-------------------------------------------------------------------------------------------------------------
<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True"
                    DataSourceID="ObjectDataSource1" GridLines="None" 
                    AutoGenerateColumns="False" AllowAutomaticUpdates="True">
<MasterTableView DataKeyNames="ID" DataSourceID="ObjectDataSource1">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="ID" DataType="System.String" HeaderText="ID"
          readonly="true"  UniqueName="ID" SortExpression="ID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ContactNo" HeaderText="Contact No"
            UniqueName="ContactNo"  SortExpression="ContactNo">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Email" HeaderText="Email"
            UniqueName="Email"  SortExpression="Email">
        </telerik:GridBoundColumn >
     </Columns>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" />
<EditFormSettings>

<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
</MasterTableView>
                </telerik:RadGrid>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
                    SelectMethod="SearchID" TypeName="DAL" UpdateMethod="PerInfo_Update">
                    <UpdateParameters>
                        <asp:Parameter Name="ID" Type="String" />
                        <asp:Parameter Name="ContactNo" Type="String" />
                        <asp:Parameter Name="Email" Type="String" />                    
                    </UpdateParameters>
                    <SelectParameters>
                        <asp:SessionParameter DefaultValue="alpha" Name="choice" SessionField="choice"
                            Type="String" />
                        <asp:SessionParameter DefaultValue="A" Name="search" SessionField="value"
                            Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
          

L
Top achievements
Rank 1
 answered on 06 Jan 2009
1 answer
102 views
how do I know in code behind that this question is asked...

i tried this one: string test = e.Container.Appointment.RecurrenceState.ToString();
but threw an exception in both cases so no game...

i would also be perfect if the popup did not show at all and only that appointment is
edited......

BR Sander
Brian Mains
Top achievements
Rank 1
 answered on 05 Jan 2009
3 answers
323 views

Hi,

 I am using RadGrid  and I designed the UI with Telerik Controls.

I had 3 Text boxes such as “txt_A”,”txt_B” and “txt_C” and I am adding as “txt_A”,”txt_B” values at client side and displaying in to “txt_C”.

In this manner I  have to implement DML Operations(Insertion/Updation). I am successfully inserting record, but come to the point of implementing Update functionality i am getting the problem.

Before Explaining the problem let me explain how I am implementing the TextBox Calculations…

 Iam performing this Operation as follow …

var price = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl02_ctl03_txtResDetailsPrice');

    var txtPriceinsUS = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl02_ctl03_txtPriceinsUS');

Problem

In this manner I have inserted 3 records and now 3 records are Binded to  Grid.

 But while updating the record I am not getting the Control ID as same Above.. here I am getting 3 Id each..for example here I am mentioning the one Control ID as follows while updating 1st record.

       price = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl05_txtResDetailsPrice');

var txtPriceinsUS = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl02_ctl05_txtPriceinsUS');

 

For 2nd Record Updation:-

price = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl07_txtResDetailsPrice');

var txtPriceinsUS = document.getElementById('ctl00_ContentPlaceHolder1_rgRFQResponseDetails_ctl00_ctl02_ctl07_txtPriceinsUS');

so on…

Please help me how to find the Exact ID even while Updating (static ID)..

 

 

Daniel
Telerik team
 answered on 05 Jan 2009
1 answer
87 views
Firefox 3.5  space -> ' '
IE                space -> '?'

RadControls for ASPNET AJAX Q3 2008

http://flvs.daum.net/flvPlayer.swf?vid=HEkvH7bzj-8$
Tervel
Telerik team
 answered on 05 Jan 2009
3 answers
117 views
Hi, I would like to know how the 'Click Preview' event is fired on the client. I am using the RadEditor for a fairly large web application. I need to be able to change all HyperLinks to Open in New Window after User types them in and then clicks on 'Preview'. Also, what would be the best way to convert all HyperLinks to Open in New Window after pasteing from Word. I'm not sure why you would ever open an external hyperlink inside of the RadEditor because there is no way to 'Return' and all the tool bars get disabled. Thank you very much.

Isaac.
Tervel
Telerik team
 answered on 05 Jan 2009
2 answers
85 views
hi there. i am facing a problem while reading the raddateinput value. if i set my control to accept only time from the user then i want my code should get the time as a value, but instead i get the value as "date time" "01/01/2009 11:11:11 AM" i only want the time part.

thanks
nitesh monga
nitesh monga
Top achievements
Rank 1
 answered on 05 Jan 2009
2 answers
75 views
I have radgrid1 that has an editable row that displays information in a formtemplate with table data with textboxes and comboboxes. Also in the formtemplate I have a radgrid called radgrid2.  I have the formtemplate populating the textboxes and comboboxes correctly, but how do I access radgrid2 within the formtemplate to bind data? 

If code is needed please let me know and I can provide.

Thanks in advance.
Jon-Jon Kershaw
Top achievements
Rank 2
 answered on 05 Jan 2009
3 answers
141 views
Hi,
 I want to download the source code for RadControls for ASP.NET AJAX. Can some body guide me?
thanks,
Kunal Bhatnagar
Kunal Bhatnagar
Top achievements
Rank 1
 answered on 05 Jan 2009
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?