Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
365 views
Is there a example available integrating the new FileExplorer with radGrid and a editItem template.

I'm using the demo example File Selector Dialog which im creating the textbox and select file button in my edititemtemplate.  im adding The JS for the button in the edititemtemplate that is calling the OpenFileExplorerDialog function which shows the file explorer then double clicking on the file is calling OnFileSelected with the file name back on my page with the radgrid

How can I take this file name and populate the text box in the edit item template?  I can populate a text box outside the grid but cant figure out how to find the textbox in the edititemtemplate and populate that from the OnFileSelected js function
Mike
Top achievements
Rank 1
 answered on 15 Sep 2010
3 answers
82 views

I just want one bar.. This one bar will contain 2 colors.. One color for 'Disbursed' and one color for 'Remaining'.. I have these 2 values as doubles... so if the values are 200/50 then one color of the bar will cover 25% and the other will cover 75%

What am I missing? As you see I have been poking in the dark (originally it was a datatable but since its just 2 numbers I got them... and now not sure what to do with them.

 

 

 

double dDisbursed = Convert.ToDouble(_grantService.GetFinacialDashboardTotal(234).Rows[0][2].ToString());

 

 

 

double dRemaining = Convert.ToDouble(_grantService.GetFinacialDashboardTotal(234).Rows[0][1].ToString());

 

 

 

// RadChartLOCCS.PlotArea.XAxis.DataLabelsColumn = "GrantID";

 

 

 

 

 

 

 

// RadChartLOCCS.Series[0].DataLabelsColumn = "AwardAmount";

 

 

 

 

 

 

 

// RadChartLOCCS.Series[0].DataXColumn = "AwardAmount";

 

 

 

 

 

 

 

// RadChartLOCCS.Series[0].DataXColumn2 = "LOCCSDisbursed";

 

 

 

 

 

 

 

//RadChartLOCCS.Series[0].DataYColumn = "AwardAmount";

 

 

 

 

 

RadChartLOCCS.DataBind();

 

 

 

<telerik:RadChart ID="RadChartLOCCS" runat="server" DefaultType="StackedBar100" SeriesOrientation="Horizontal">

 

 

 

 

 

 

 

<Series>

 

 

 

 

 

 

 

<telerik:ChartSeries Name="SeriesLOCCS" Type="StackedBar100">

 

 

 

 

 

 

 

</telerik:ChartSeries>

 

 

 

 

 

 

 

</Series>

 

 

 

 

 

 

 

<ChartTitle>

 

 

 

 

 

 

 

<TextBlock Text="LOCCS Budget">

 

 

 

 

 

 

 

</TextBlock>

 

 

 

 

 

 

 

</ChartTitle>

 

 

 

 

 

 

 

</telerik:RadChart>

 

Evgenia
Telerik team
 answered on 15 Sep 2010
4 answers
136 views
Is it possible to have a column span multiple columns only when in edit mode? Something like a property of the EditItemTemplate to tell the column to span multiple columns.
Joe Kalinowski
Top achievements
Rank 1
 answered on 15 Sep 2010
6 answers
263 views

I'm looking for a way to modify the alt rsp. tooltip text for ExpandCollapseColumn-ExpandImageUrl and ExpandCollapseColumn-CollapseImageUrl. I want to have different text on several pages e.g. in one page simple "collapse", in an other page "more information" and so on.

I did similar with the filter menu in Page_Load

Dim Menu As GridFilterMenu = RadGrid1.FilterMenu

            Dim item As RadMenuItem

 

            For Each item In Menu.Items

                item.BackColor = Color.LightGreen

                'change the text for the StartsWith menu item

                If item.Text = "NoFilter" Then

                    item.Text = "kein Filter"

                End If

And so on.

But I didn't find a similar solution for the ExpandImage and CollapseImage in the ExpandColumn.

Any suggestions, ideas?

Thanks

Heinz
Top achievements
Rank 1
 answered on 15 Sep 2010
1 answer
127 views
OnRequestStart="RequestStart"

With regular RadUpload I had to set_enableAjax(false) for RadAjax or else code behind Uploads.Count will be 0 on Postback.

I switched to AsynchUpload and noticed when I comment out the above it is still working fine.  
They are probably two different mechanism so I think it's safe to not needing set_enableAjax(false) anymore.  

Can someone confirm?
T. Tsonev
Telerik team
 answered on 15 Sep 2010
8 answers
793 views

How is it possible to use a custom CSS-File for the RadEditor Content if the RadEditor ist instantiated in a CS Class File and not as a aspx-Control?

We defined a RadControl Object and tried to add our CSS-File by "radEditor.CssFiles.Add(new EditorCssFile(cssUrl));" But it doesn't work tough. It seems that the Method "CssFiles.Add(EditorCssFile file)" doesn't work in the same way as adding a external CSS File trough a aspx Property.

 

this is the sourcecode:

 

 

public class ITeamTextEditor : RadEditor {

 

        public ITeamTextEditor(Page page, String text) {

            ...

            this.EditModes = Telerik.Web.UI.EditModes.Design ^ Telerik.Web.UI.EditModes.Html;

            this.Content = text;

            ...

////doesn't work??////

            String cssUrl = "/EditorContentArea.css";

            *****this.CssFiles.Add(new EditorCssFile(cssUrl));*****

            ...

        }

 

The CSS-File doesn't show up in the Head-Tag of the I-Frame of the RadEditor Content. We tried out your example with a RadEditor in a aspx file and it worked. But if you use the RadEditor inside C#-code, it doesn't.

Best Regards
Rinaldo

Tom Fallwell
Top achievements
Rank 1
 answered on 15 Sep 2010
1 answer
129 views
Hello, I have a scheduler and a 3 radgrids on my page, they are usually tucked away and scheduler is the only thing expanded. I want to be able to pass data to my radgrid or other telerik controls when a menu item "Select" is chosen from appointmentcontextmenu. I can hook into that event just fine, and take what I need from appointment and apply to the other controls, but they don't update... Since only the scheduler is getting refreshed.

Do i need to enable/disable something in this case where I want the entire page to be reloaded? I can pass arguments through the url, but that's messy and I don't like to refresh page just to pass an ID around.

Thanks,
Viktor.
Peter
Telerik team
 answered on 15 Sep 2010
6 answers
116 views
When in Internet Explorer 8, clicking the New Paragraph button causes the browser to prompt the user:

Do you want to allow this webpage to access your Clipboard?
If you allow this, the webpage can access the Clipboard and read information that you've cut or copied recently.

Is there any way this can be avoided?
bdukes
Top achievements
Rank 2
 answered on 15 Sep 2010
2 answers
82 views
I want to have a regular button outside the radgrid, when click it, the grid opens a new row with update, delete command button on the row -- functional exactly the same as when setting grid CommanditemDisplay=top,  but it's not a add new button inside the grid, a button outside the grid.

How can i do that?

Thanks!!!



JJ
Top achievements
Rank 1
 answered on 15 Sep 2010
6 answers
784 views
Hi,
 Here is my req.

When radgrid loads ona page it should not display filter option. When cilck the link button on commanditemtemplate it should display the filter option and when i click hide button it should hide the filter option. Can anyone help me how to do this?

Thanks
Babu
Raj
Top achievements
Rank 1
 answered on 15 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?