Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
369 views
Hello Sir/Madam,

I am currently using  rad grid in my project and i am facing problem in Edit template as u can see in my first screen shot that i have attached named(Telerik_Rad_grid1) this is your design that i actully want in my project after click on edit button and here you are using bound controls and i am using template controls and using asp controls under edit template as u can see in my second screen shot of my grid named(Telerik_Rad_grid2) whats the design at run time so please tell me how can i make similar like your's design and i also have used all EditFormSetting But no result so please tell me asap.

Thanks in advance
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Apr 2013
3 answers
138 views
Hi, based on the docs, MultiColumn headers are not supported with FrozenColumns.

So, to overcome this, I created each column as a templated column and wanted to place the "MultiColumn" in the top row of the table as shown below.  This kind of works as long as this appears within the boundries of the radGrid, however, as I scroll horizontally to the left, "Company Data" appears outside the grid.  I understand why due to the absolute + z-index style, but I thought there may be a way to have it layered to avoid this. (See screen shots for example)

    <telerik:GridTemplateColumn  UniqueName="Column2" SortExpression="Column2" >
            <HeaderTemplate>
                <table>
                    <tr>
                        <td>
                          <span style="position:absolute; margin-left:-10px; z-index:5">Company Data</span>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Column 2
                        </td>
                    </tr>
                </table>
        </HeaderTemplate>
....
Marin
Telerik team
 answered on 05 Apr 2013
1 answer
169 views
Hello

Is there a way to programmatically check server-side for an ajaxsetting that may or may not already exist in the AjaxSettings collection for the ajax manager? I thought a function like this one should do it, to create a setting object (='mytestsetting') against which then you could use it as a parameter to match against myajaxmanager.AjaxSettings.Contains(mytestsetting), but should I expect it to recognize that a matching setting with the exact same ajaxified source and updated target already exist?

        Public Function CheckForExistingAjaxSetting(ByRef ajaxifiedctrl As Control, ByRef updatedctrl As Control, ByRef rlp As RadAjaxLoadingPanel) As AjaxSetting

            Dim setting As New AjaxSetting()
            Dim target As AjaxUpdatedControl = Nothing
            If Not rlp Is Nothing Then
                target = New AjaxUpdatedControl(updatedctrl.UniqueID, rlp.UniqueID)
            Else
                target = New AjaxUpdatedControl(updatedctrl.UniqueID, Nothing)
            End If
            setting.UpdatedControls.Add(target)
            setting.AjaxControlID = ajaxifiedctrl.UniqueID
            Return setting

        End Function


 somewhere else in server code:

       Dim mytestsetting As AjaxSetting = CheckForExistingAjaxSetting(foo, bar, loadingpanel)
       If
Not (myajaxmanager.AjaxSettings.Contains(mytestsetting)) Then ....
           
.... add the setting programmatically
       End If


Could you say if there is a better way to do this that works?

Thankyou

Maria Ilieva
Telerik team
 answered on 05 Apr 2013
1 answer
141 views
I have a dynamic menu to which I want to add a static item. So I create my static menu item (has some html for layout, but also a User Control embedded in it all within an Item Template) and set AppendDataBoundItems="true". Excellent. It works.

Unfortunately my static item is in Index Position=0. I get that the data items are "appended", but I would like to put my static item last (after all of the dynamic Items). I could do it in code-behind, but I wonder if you know of an easier way (without having to create controls)?

Kate
Telerik team
 answered on 05 Apr 2013
3 answers
299 views
I am trying to retrieve the values of dynamically created controls in a Radgrid.  I have read dozens of posts similar to this, but cannot seem to sort it out.

Here is the scenario:

  1. I have a Radgrid on my page with static GridTemplateColumns setup
  2. In one column I have a blank ItemTemplate
  3. OnItemDatabound (which happens as an AJAX callback) I insert a dynamic control, and potentially set it's value (e.g. textbox, datepicker, combobox).  This control type is based on the data - so I cannot do this in OnItemCreated
  4. Everything looks right when the screen comes back - I have a grid with custom controls in each row, and the proper values all set
  5. Then you do some other things on the screen - and eventually click SAVE
  6. On Save I loop through the Radgrid items, find the controls by ID and retrieve their values - to then save off

It is the last part that has me stumped.

At first I was getting a null reference to the controls - and found that my dynamic controls where not in the GridItem container where I had created them.

After a bit of reading, I added code that loops through and re-initializes the controls in the grid.  To do this I Rebind the Radgrid right before looping through the Radgrid items, setting a flag that has the code in ItemDatabound only create the Controls with the proper ID and then .Adds() them to the GridDataItem - skipping the parts that set the default values of the controls

At this point I can now get the control with .FindControl(myID) - but the .text or .selectedvalue, etc is null.  

Is this kind of scenario supported with the RadGrid and AjaxManager?
Jayesh Goyani
Top achievements
Rank 2
 answered on 05 Apr 2013
3 answers
161 views
Hi all

I have a problem.
In my Grid i have the following Code for the part whit the pageable:

.Pageable(paging =>
           paging
               .PageSize(500)
               .Style(GridPagerStyles.Status)
               .Position(GridPagerPosition.Bottom)
       )

Now, when I have more than 500 Items, I can't go to this, then I don't allowed to click to another page in the part of .Style(...).
What can I do, to ask the Grid how many Items that I have, and when it's more than the 500, I allowed the paging?
But only in this situation. 
If I have less then thes 500 I would not to enable and see the Paging. Then I will only see the number of Items...

Thanks
Marco 
Eyup
Telerik team
 answered on 05 Apr 2013
5 answers
845 views
Hi

I am using RadUpload to upload an excel spreadsheet file to a web server.
I then want to map the columns to a database table and import the content to a database,
in code behind. (preferably VB)

I feel there must be some existing code or a third party component to do that, but I have
not been able to find anything.  Can anyone give me some pointers?

OK I can write the code, but this must exist somewhere already.

Thanks

Clive
Kate
Telerik team
 answered on 05 Apr 2013
5 answers
136 views
Hi,

I have a short form that the end user fills it. When he hits the 'submit button' it saves the fields into a database table and it returns it's identity seed.
Now I added the RadAsyncUpload control, and need to associate the seed of the form with the uploaded file.
The problem is that the RadAsyncUpload.FileUploaded event runs before the 'submit button' event.

What is the workaround for this case?

    Protected Sub RadAsyncUpload1_FileUploaded(sender As Object, e As Telerik.Web.UI.FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded

        Dim targetFolder As String = RadAsyncUpload1.TargetFolder

        Dim newName As String = hdnPesquisaID.Value & System.Guid.NewGuid.ToString 

        e.File.SaveAs(Path.Combine(Server.MapPath(targetFolder), newName + e.File.GetExtension()))

    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

        hdnPesquisaID.Value = "returns identity seed from database"

    End Sub
Jorge
Top achievements
Rank 1
 answered on 05 Apr 2013
2 answers
150 views
I spend all morning updating resources in my app and debugging. And after I finally got my project to successfully rebuild, I have a very dynamic RadGrid that has two problems.

Now keep in mind the code has not changed and it has always worked fine. I don't know if these issues are related or not.  I can provide code, but I didn't make any changes. I did run the Telerik Upgrade Wizard, but I don't think it would have changed lines of code in my apps. 

1. I dynamically set images and Hyperlinks in a Hyperlink column.  After the updated my images are not showing. And my assigned URL/Links are not updating.

2. When a filter is changed, the results are not being updated.  The page refreshes the records load but the filter criteria is not behaving. I put a postback button in to try to catch the problem and I can't figure it out. Eventually if I postback the filter is passed and loaded.  

Is there anything anyone can recommend to check or try?  I'm about to do a system restore and revert back to my old 2012 version, I'm kinda freaking out because I have a lot of work that is not functioning now and I need to do an update on the production code.

Thanks
Jason  
Maria Ilieva
Telerik team
 answered on 05 Apr 2013
2 answers
191 views
hi, i am student. i have downloaded telerik radcontrols (trial version-30 days) to develop my project web application in asp.net. but my web application will take 2 and half month to get completed. so after trial version expires can i use it again? what should i do to extend validity of product?
Rachana
Top achievements
Rank 1
 answered on 05 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?