Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
110 views
Hi,

I am reposting my question as a new thread here. 
I am trying to deploy my application from my development machine to the client test server. The application works well on my development machine and one of our local servers. 
After a postback(from a button)  it throws 'sys.argumentnullexception:Value cannot be null. Parameter name:id Javascript error and does not do anything.
The error is from grid.get_masterTableView(). The grid is databound in the button postback.
Servers are both Windows 2003 and my development machine is XP. I am using 2009 Q1 version of telerik controls

I was able to reproduce this scenerio on one of our spare machine (also a XP). Here is what I did on that:
I installed telerik controls and my application started working without the javascript errors. Out of curiosity I then uninstalled telerik controls from the machine. My application still works without issues.
Thats make me think that its not the install per se, but during the install telerik is making some setting change which was missing earlier. Anybody have any idea what this could be? I will have to do it manually on the client test server because I cannot install/uninstall telerik controls on that machine.
Also, the version I installed was 2009 Q1(without the SP) so I had to go through the step of reinstalling SMdiagnostics.dll and System.Runtime.Serialization.dll in the GAC. Could this have fixed the issue?
Thanks.
sp
Top achievements
Rank 1
 asked on 03 Jun 2009
1 answer
127 views
Hi everyone,

I have an issue when navigate through the differente pages of a radgrid.
My form has a Radmultipage control with two radpageviews.

The Radgrid is on radpageview 2.

When I use all others controls from radpageview 2 everything is correct, the call has a isPostback status equals to true.

But if i change the page using radgrid pager, the call enters the loadpage event with a isPostback status equals to false.
The radpageview 2 renders correctly (the rad grid is showing the correct page with the correct data) but the radpageview 1 has all its controls resetting losing all the informations.

Is it normal that this call has a ispostback status equals to false?

thank you and have good day.
regis
Top achievements
Rank 1
 answered on 03 Jun 2009
2 answers
390 views

I have RADUpload component on a page that allows for uploads of files to the server and inserting of records onto a database after the upload is complete.

Here’s the scenario, a file is uploaded via the RADUpload component. After a successful upload, a table in the database called FILES is populated with data about the uploaded file (ie file name, size, mime type, etc). After data is inserted into the FILES table via stored procedure, the primary key of that recently inserted record is returned to my application via a Scope Identity request. I will call this primary key IDFILES.

After the IDFILES primary is returned to my application, I then grab that data, and perform another insert—this time to a different table called PLANSETS.

All the above is done automatically for every uploaded file.

All the above functions with no problems—unless you are uploading multiple files using that one RADUPLOAD component. However, if you upload more than one file, only the last uploaded file returns the IDFILES data.

Is there a workaround in RADupload that allows me to be able to see that IDFILES even if multiple files are being uploaded?

My code is below:

 

        If ruShell.UploadedFiles.Count > 0 Then

            For Each validFile As UploadedFile In ruShell.UploadedFiles

                Dim targetFolder As String = Server.MapPath("/Plansets/" & rcbStreets.SelectedValue & "/" & rcbAddresses.SelectedValue & "/1")

                'Dim targetFolder As String = "~/Plansets/" & rcbStreets.SelectedValue & "/" & rcbAddresses.SelectedValue & "/1"

                validFile.SaveAs(Path.Combine(targetFolder, validFile.GetName()), True)

 

                sqlPlansetFiles.InsertParameters("description").DefaultValue = validFile.GetNameWithoutExtension

                sqlPlansetFiles.InsertParameters("contenttype").DefaultValue = validFile.ContentType

                sqlPlansetFiles.InsertParameters("size").DefaultValue = validFile.ContentLength

                sqlPlansetFiles.InsertParameters("extension").DefaultValue = validFile.GetExtension

                sqlPlansetFiles.InsertParameters("filename").DefaultValue = validFile.GetName

                sqlPlansetFiles.InsertParameters("path").DefaultValue = "~\Plansets\" & rcbStreets.SelectedValue & "\" & rcbAddresses.SelectedValue & "\1\" & validFile.GetName

 

                sqlPlansetFiles.Insert()

                'Label1.Text = sqlPlansetFiles.InsertParameters("newIDPlansetFiles").DefaultValue.ToString

 

                sqlPlansets.InsertParameters("idaddresses").DefaultValue = rcbAddresses.SelectedValue

                sqlPlansets.InsertParameters("idPlansetTypes").DefaultValue = "1"

                sqlPlansets.InsertParameters("idplansetcategory").DefaultValue = "1"

                sqlPlansets.InsertParameters("isdeleted").DefaultValue = "0"

                sqlPlansets.InsertParameters("idplansetfiles").DefaultValue = idPlansetFiles

                sqlPlansets.InsertParameters("modifieddate").DefaultValue = Now

                sqlPlansets.Insert()

 

            Next

            'labelNoResults.Visible = False

            'repeaterValidResults.Visible = True

            'repeaterValidResults.DataSource = RadUpload1.UploadedFiles

            'repeaterValidResults.DataBind()

        Else

            'labelNoResults.Visible = True

            'repeaterValidResults.Visible = False

        End If

 

    Private Sub sqlPlansetFiles_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles sqlPlansetFiles.Inserted

        'Label1.Text = sqlPlansetFiles.InsertParameters("newIDPlansetFiles").DefaultValue.ToString

 

 

        idPlansetFiles = Convert.ToInt32(e.Command.Parameters("@newIDPlansetFiles").Value)

 

       

        'Label1.Text = newProductID

    End Sub

PJ Rodriguez
Top achievements
Rank 1
 answered on 03 Jun 2009
2 answers
140 views
Is there a way to position the window based on the element  than opened it? Similar to tooltip's "relelativeto" property? 

My preference would be tooltip, but I can't accomplish it because of an issue currently being reviewed by support. 
Scott
Top achievements
Rank 2
 answered on 03 Jun 2009
2 answers
88 views
I have the requirement, in numerous screens whereas the user will be presented with
textbox(s) to enter search criteria, and upon their entry of one or many search items
we wil retrieve the data and bind it to the grid.

When the screen opens where is a BIG HOLE in it where I was hoping some type of
placeholder, etc would display the results grid. I have googled and tried some of the
solutions to no avail.

I would love to have a something there to indicate "This is where the search results" are
going to go, possibly with the actual column headings?

Thanks!

Jim Douglas
James
Top achievements
Rank 1
 answered on 03 Jun 2009
4 answers
71 views
Hi guys,

I've been trying to implement self-referencing hierarchy in a grid, but not getting it to work.

Documentation:
http://www.telerik.com/help/aspnet-ajax/grdselfreferencinghierarchy.html

Demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

The problem is that when I click the expand button nothing happens. In Firebug I get the following description:

_353.parentNode is undefined 
_toggleExpand()(click clientX=28, clientY=194, undefined)ScriptRe...=318ed896 (line 4864) 
onclick(click clientX=28, clientY=194)zZ2%2F3o...vQw%3D%3D (line 2) 
[Break on this error] var _355=_353.parentNode.parentNode; 

It points to:
ScriptResource.axd?d=f5247yF8mFQSNUezaysMu7egrLBLdhSVt05lttKDr_VMDoiX_VRdIH7dxSOgEVvXEncLy5lBAmaFxHk85Zb9Tw2&t=318ed896

Does anyone have a clue what might be going on here?

Regards,
-DJ-
-DJ-
Top achievements
Rank 1
 answered on 03 Jun 2009
1 answer
94 views
Hi,

I am having a scenario as on grid paging need to display some custom values in a lable i.e. when I change grid page the value of a lable should get changed. But as Ajax asynchronous post back is used for paging even if I write lable value change code inside page index changed event it will not get reflected. To work that I used updatepanel. I kept that lable inside updatepanel and called Update() method of panel inside page index chagned method of grid. But still the lable value is not getting changed.

Can you please provide me a link where I can see an example in which on page index changed of a grid some other panel control values getting changed?

Thanks,
Avi
Veli
Telerik team
 answered on 03 Jun 2009
2 answers
109 views
I am looking for styling info on the resource grouping row header - which displays the resource name.

For some reason the text seems to be larger than the other text in the scheduler - about the same size as the large date font in the header. (I'm using embeded skins) The large text is being cut-off by the calendar to the right of this row header.

I found this post: http://www.telerik.com/community/forums/aspnet-ajax/scheduler/radscheduler-style.aspx

Which describes the .rsVerticalHeaderTable styles. Is this the correct style attribute for this area? If so, is there any way to modify this style without modifying the full skin? I want to continue to use embeded skins, just reduce the font size for all skins in this area. Can I simply just add a <script type="text/css"> tag to my page modifying this style to have it affect the scheduler regardless of what skin is selected? Alternatively, if there was a way to force this text to wrap at the border of the calendar, that would suffice.

Thank you.
Joe
Top achievements
Rank 1
 answered on 03 Jun 2009
9 answers
259 views
Hi,
   I have an app (RADGRID, formtemplate) where I have a user defined button. I have the form is displayed with the button on the form.  Right now the only thing the button should do when I click it is to simply redisplay the form. This works ok when the form is in insert mode. But when it is in edit mode and I click the button, the app is redisplayed with the header portion being displayed twice, one on top of the other ............

Before Button pressed while in edit mode...                              After button pressed while in edit mode ...

GRIDHEADER                                                                           GRIDHEADER
COMMANDTEMPLATE                                                             COMMANDTEMPLATE
COLUMNHEADER                                                                     COLUMNHEADER
FORMTEMPLATE                                                                     GRIDHEADER
GRID                                                                                         COMMANDTEMPLATE
PAGER                                                                                      COLUMNHEADER
                                                                                                 FORMTEMPLATE
                                                                                                  GRID
                                                                                                  PAGER
  
   I am wondering what the edit mode is doing (maybe in itemcreated) that is not being done when the form is in edit mode ? Any place I can go to read up on the edit and insert form cycle ?

  thanks for your time
Sebastian
Telerik team
 answered on 03 Jun 2009
0 answers
103 views
I have  a asp chart in a hierarchical grid.
When the detail table details are clicked the chart disappears.
Any way to avoid this?


kollam2003
Top achievements
Rank 1
 asked on 03 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?