This is a migrated thread and some comments may be shown as answers.

Error in processing the textbox within table needdatasource event

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ankit Dwivedi
Top achievements
Rank 1
Ankit Dwivedi asked on 30 Jan 2010, 09:07 AM

Sir, I have taken  a table with four textboxes in it, which are assigened different fields that are fetched from the database by using the NeedDatasource event of the table.


Private Sub table1_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles table1.NeedDataSource, table1.NeedDataSource

        Dim ds2 As New DataSet()

        Dim table As Telerik.Reporting.Processing.Table = DirectCast(sender, Telerik.Reporting.Processing.Table)

        objReporting = New Reporting

        Dim category As String

        Dim category1 As String

        category = Me.ReportParameters("officecode").Value

        category1 = Me.ReportParameters("Postcode").Value

        objReporting.OfficeCode = category

        objReporting.OfficeGroup = category1

        ds2 = objReporting.FetchSalary()

        Dim view As DataView = ds2.Tables(0).DefaultView

        view.Sort = "TotalSalary DESC"

        table.DataSource = view

    End Sub



Me.lblPresentPost.Location = New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0.099999986588954926, Telerik.Reporting.Drawing.UnitType.Inch), New Telerik.Reporting.Drawing.Unit(0.40000009536743164, Telerik.Reporting.Drawing.UnitType.Inch))

Me.lblPresentPost.Name = "lblPresentPost"

Me.lblPresentPost.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(0.91458332538604736, Telerik.Reporting.Drawing.UnitType.Inch), New Telerik.Reporting.Drawing.Unit(0.17500001192092896, Telerik.Reporting.Drawing.UnitType.Inch))


 Me.lblPresentPost.Value = "= Fields.presentpost"


 for further details please see the attached doc file



1 Answer, 1 is accepted

Sort by
Telerik team
answered on 01 Feb 2010, 12:06 PM
Hello Ankit Dwivedi,

You cannot attach files in our public forums, thus we did not find any doc file with further content about the exact problems you're experiencing. Please open official support ticket if you need to attach files or elaborate on your problem here so that we can advise you accordingly.

Kind regards,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
General Discussions
Asked by
Ankit Dwivedi
Top achievements
Rank 1
Answers by
Telerik team
Share this question