Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hello -

I am encountering an issue with a grid inside an EditForm for a parent grid that I cannot seem to correct.

When I choose to edit a row in the parent grid the form comes up and I am able to modify the fields placed directly on the form. On that same form is another grid that also has an edit form that needs to be completed. When I click to add/edit the child grid it simply flashes and the editform does not appear.

I tracked this down to code that I have in the PreRender event for the parent grid to change the editcolumn text from "Edit" to "View" depending on the users selection and then rebind the grid. This event fires when I click the add/edit in the child grid and prevents the form from appearing. If I remove the rebind from the prerender event for the parent the text for the editcolumn no longer changes and the child grid no longer shows any data but the editform does appear when add/edit is selected. Additionally, when I do click the add/edit button and the form comes up, all of the rows that should have been shown the first time also appear.

Is there a way to get around the rebind in prerender so that I can swap the text for the editcolumn?

How can I refresh the child grid to show the records when it is rendered and keep them showing?

Any assistance is greatly appreciated!

Thanks,
Shawn

Iana Tsolova
Telerik team
 answered on 20 Dec 2010
12 answers
150 views
Hi All,

I might be missing something but I've got the RadFormDecorator set up in my project and this is styling all default form items in the desired style (a custom skin). However, any input fields which are using the RadInput aren't picking up the FormDecorator stylesheet and I can't seem to find anything in the documentation to suggest how to do this. Is there something really simple that I'm missing? I've tried setting the Skin path on the RadInput field to an empty string but still no joy.

Thanks in advance for any help,
Tim
Erik
Top achievements
Rank 2
 answered on 20 Dec 2010
2 answers
106 views
Dear Sir,

I am facing the following problem:
I want to add a custom attribute to a RadRotatorItem during databinding, but the method generated by the visual studio (when i double click on the proper event) is:

protected void ItemRotator_DataBound(object sender, EventArgs e) {...}
And I do not know how to get a reference to the specific item. 

I tried this
RadRotatorEventArgs Event = (RadRotatorEventArgs)e;
but I get an error at runtime


Is there a solution to my problem 
Thank you for your time...
Thomas Sarmis.
Thomas
Top achievements
Rank 1
 answered on 20 Dec 2010
1 answer
119 views
How do i get the values from a grid when i have multiple rows selected?

I am using datakeynames in my grid and if i was to retrieve one row i'd use the following:

radgrid1.selectedvalue

I have tried using radgrid1.selectedvalues but don't appear to be getting anywhere - I can only see one value being returned no matter what i use - hashtable, arrary etc.

Please help

Thanks

Princy
Top achievements
Rank 2
 answered on 20 Dec 2010
5 answers
228 views
I've got a hierarchical grid bound to a dataset with AutoGenerateHierarchy set to true.I'm setting the column widths in the OnColumnCreated event handler by setting HeaderStyle.Width. ( note that tablelayout is set to fixed). so that the columns in each level of the hierarchy align.

This works fine except when there are fewer columns than needed to fill the width. In this case IE8, all the columns on each level of the hierarchy stretch to the page width and align (which isn't really the expected behaviour as I'm setting a fixed width, but looks ok as they align), whereas in the case of IE7 the columns in the master table stretch to the page width but the columns in the detail tables are rendering as the fixed width I have assigned programatically so master and detail columns are not aligning.

I need either all the columns to stretch and align in IE7 or (preferably) all the columns to render as the asigned fixed width on both master and detail tables in both IE7 and IE8. Any Suggestions?

Thanks in advance :)
Pavlina
Telerik team
 answered on 20 Dec 2010
1 answer
162 views
Hi,

I have using Radgrid Export to PDF option. i have four columns in my radgrid. i am using linkbutton in my grid. but all record download but linkbutton column not showing in PDF. i am using in aspx page in this code.

<ExportSettings ExportOnlyData="true" IgnorePaging="True" OpenInNewWindow="true" >
                                <Pdf FontType="Subset" PaperSize="Letter" PageTitle="Employee Password List"  />
                                <Excel Format="Html"  />
                                <Csv RowDelimiter="NewLine" FileExtension="Csv"/>
                            </ExportSettings>
                            <PagerStyle Mode="NextPrevNumericAndAdvanced" />

and vb page

If e.ExportType = ExportType.Pdf Then
            dgPortalUsers.ExportSettings.IgnorePaging = True
            dgPortalUsers.ExportSettings.OpenInNewWindow = True
            dgPortalUsers.ExportSettings.ExportOnlyData = True
            e.ExportOutput = Replace(e.ExportType, "<br/>", "")
        End If

I have three doubts in this page

1. How to display linkbutton(Text) in PDF and Excel
2. How to hide Filter option what we enter some text.
3. How to restrict particular row in this grid. like name=John means we need to download without this row.


I have attached images also. Please check and help me ASAP.

Thanks in Advance,
Dhamu.
Princy
Top achievements
Rank 2
 answered on 20 Dec 2010
3 answers
94 views
We're using Telerik.Web.UI 2008.2.826.20 and have a RadRotator on our page to cycle among 20 cartoon images. We're using the FromCode rotator type. Both our ID on the control AND our CssClass are set to "rotCartoons". Below is our JavaScript code:

    Sys.Application.add_load(function(){
    
        jQuery(function($){
            var rotator = $find($(".rotCartoons").attr("id"));
           
            $("a[href=#cartoon-previous]").click(function(e){
                e.preventDefault();
                rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Right);
               
            });
           
            $("a[href=#cartoon-next]").click(function(e){
                e.preventDefault();
                rotator.showNext(Telerik.Web.UI.RotatorScrollDirection.Left);
            });
        })
    
    });

It basically binds jQuery click handlers to to left and right anchors. On each click, it gets the rotator in JS and calls showNext() in the correct direction. When we load the page nothing happens as expected. Once we hit either the Previous or Next button, showNext() is called in the respective direction and it slides in the next cartoon, then a few seconds later it goes again to the next, etc.. How do we prevent it from auto-rotating to the next cartoon?

Thanks in advance,
Mark
Fiko
Telerik team
 answered on 20 Dec 2010
1 answer
142 views
Version: Telerik.Web.UI (2009.2.701.20)

Hallo,

we are using the ComboxBox to show a selecting of persons in our company.
All persons have a status (activ, deactiv, deleted)  we show in an icon in the ImageUrl Property of the ComboBox Icon.

After we load the data to the ComboBox all icons are shown the status of the persons (to do this we use telerik help article).
And we use the autocomplete function of the ComboxBox so that that the users of your application can select person by searchstring.
The autocomplete result dropdownlist shows the person find by the searchstring but no icons are show in this list.

So the question is, if it is possible to see also the item icons in the autocomplete dropdownlist of the ComboBox.

Thank you and Merry Christmas and Happy New Year from Berlin
Torsten Baumelt
Dimitar Terziev
Telerik team
 answered on 20 Dec 2010
3 answers
89 views
Hi. This isn't a Telerik specific question but I do want to implement the solution with Telerik controls where possible and appropriate. I just wondered whether anyone could offer any initial comments or guidance.

I have external users for a site that I am developing and they can create photo albums and upload photos. I would appreciate any comments about how best to implement this. In particular:

- I assumed that all photos would be uploaded under a single folder (?) but should each user effectively have their own directory or should I just put all photos (potentially a large number) in one directory

- I had considered renaming files on upload and just creating a guid which I convert to a string and use as the filename on the server. I was then going to have a database table to record which user "own" the photo and the photo's filename. A further table can then create "virtual photo album" (ie have fields for album name, user...). The first table can have an additional field that allocates the photo to an album.

- Is there a way to resize .jpg files on upload?

- Are there any code examples here that show something similar to the above.

Dobromir
Telerik team
 answered on 20 Dec 2010
1 answer
39 views
Hi  to all Teleriks!!!
Here i attach one image its show like flash content, but i need to to do in Rad Chart animated, if i have Three parts

  1. Fat
  2. Cals
  3. Portin
if i click Fat area the area will be focused and separate from the chart like Explode Pie chart

Thanks in advancE
       vinoth X 
Evgeni "Zammy" Petrov
Telerik team
 answered on 20 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?