Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
264 views
How can I set the z-index for a custom dialog in the Editor? 

We have a web page with a RadEditor placed inside a RadPane.  A custom dialog has been added to the Editor which loads a java applet.  The problem is when clicking the button to launch the applet, it is appearing behind the RadMenu control on the web page.

I would like to set the z-index of the custom dialog to be higher than the RadMenu.  I tried the suggestion in the following link, but am not having any success... http://www.telerik.com/community/forums/aspnet-ajax/editor/z-index-of-image-manager.aspx

Here is the call for showing the custom dialog...
editor.showExternalDialog
(
  '/TestDevelopment/Controls/EquationEditorStyle.aspx',
  argument,
  620,
  420,
  myCallbackFunction,
  null,
  'Equation Editor',
  true,
  Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
  false,
  true
);

Any suggestions would be greatly appreciated!  Thanks!!
Alejandro
Top achievements
Rank 1
 answered on 11 Feb 2016
6 answers
329 views
I have the following column in my grid

<telerik:GridCheckBoxColumn DataField="staffActive" AutoPostBackOnFilter="true" ShowFilterIcon="false"  DefaultInsertValue="True" FilterControlAltText="Filter Staff Active column" CurrentFilterFunction="EqualTo" CurrentFilterValue="True"  HeaderText="Active" SortExpression="staffActive" UniqueName="staffActive" EditFormColumnIndex="1">
</telerik:GridCheckBoxColumn>

As you can see I have DefaultInsertValue set to True. However when I go to add a new record the checkbox isn't checked, can anyone think of any reason this may be happening? I should be able to set it to checked in my code but I would like to know what I am doing wrong with this.
Pavlina
Telerik team
 answered on 11 Feb 2016
12 answers
245 views

After the last couple patches to Telerik, the legend item click event for the RadHtmlChart is running very slow.  I am using asp.net.   It is slow for the built in click for one chart with no javascript or server code for it.  It is also very slow, and often times out, when capturing OnLegendItemClick event for one of seven charts to set the legend on the other charts to have the same visibility properties.  Is there a way to speed this up?

Here is my javascript for the OnLegendItemClick event.

function OnLegendItemClick(args) {
// hiddenchartClicked prevents any possible looping of click events
// args.preventDefault fixes the problem of the currently clicked item not becoming visible again
// It was making all other charts visible except the clicked one,
// so I set all charts and stopped it from toggling.
if ($('#hiddenchartClicked').val() != "")
return;
var seriesName = args.text;
var visibility = !args.series.visible;
var seriesIndex = args.seriesIndex;
var seriesChart = args.sender.element[0].id
$('#hiddenchartClicked').val(seriesChart);
args.preventDefault();
for (var i = 0; i < 7 ; i++) {
var chartID = "RadDemandChart" + i.toString();
var chart = $find(chartID);
chart._chartObject.options.series[seriesIndex].visible = visibility;
chart.repaint();
}
$('#hiddenchartClicked').val("");
}

Thank you so much.

Danail Vasilev
Telerik team
 answered on 11 Feb 2016
7 answers
230 views

​I tried: chrtBenefitCost.ChartTitle.Text = "Traveler Benefit/Cost Ratio​                                                              Total Societal Benefit/Cost Ratio"

as result i got: Traveler Benefit/Cost Ratio​Total Societal Benefit/Cost Ratio

I tried to &nbsp; but it resulted in strange format

Any suggestions?

 

Danail Vasilev
Telerik team
 answered on 11 Feb 2016
1 answer
128 views

How set the Document Manager button Visible false / display None, on  Hyperlink Manager?

Se attached image...

Vessy
Telerik team
 answered on 11 Feb 2016
17 answers
725 views
I tryed several workarounds but wasn't able to find a way to do it.
I have a user form (username, email, pass,...) where the user can upload an avatar.
What I'm trying to achieve here is that the user can upload the avatar and a thumbnail is shown, but until the form is ultimately submit (with a button wich is referenced in the PostbackTriggers) the avatar+thumb are not saved but stay in Telerik temp dir for uploaded files.
It seems that if I want to show the uploaded file while the user still has to complete and submit the whole form, I have to somehow trigger the PostbackTriggers otherwise I wan't be able to access the uploaded file to show it on the page.
On the other side, if I trigger PostbackTriggers when the user uploads the avatar (to show a preview of it) then I won't be able to access uploaded file when the form is ultimately submit since the RadAsyncUpload file collection has already been deleted.
What I don't understand in the logic implemented in this control is why I cannot access uploaded files collection unless PostBacktriggers are fired. I mean.... I can understand this to have the RadAsyncUpload_FileUploaded event fire automatically for each uploaded file when PostBacktriggers fires. This is a great implementation BUT I really don't understand why I shouldn't be able to access "manually" the collection even if PostBacktriggers are not fired with RadAsyncUpload.UploadedFiles.
On thing is to let the FileUploaded event fire when one of the PostBacktriggers is "clicked", another thing should be to be able to access manually the UploadedFiles collection at anytime server-side. I'm missing the logic behind this limitation in the control.

I really hope this possibility will be implemented, it will make most common integration scenarios much more seamless and really I don't understand why it should not be. In the meanwhile, since in the hiddenfield

id="ctl00_MainContent_RadAsyncUpload1_ClientState" ... value="{'isEnabled':'true','uploadedFiles':[{"fileInfo":{"FileName":"originalFileName.jpg","ContentType":"image/jpeg","ContentLength":4405,"DateJson":"2005-03-10T19:32:35.000Z","Index":0},"metaData":"CS8S/Z0J/b2982..."}]}" ...
All the file informations are present (including temp file name/dir in encripted JSON metadata field I suppose), could you suggest a workaround to parse this server side on button click even when PostbackTriggers is not fired? I think it's the only and simpliest solution so far for temporary uploaded files manipulation (like for example image preview...)

Thanks in advance
Vasssek
Top achievements
Rank 1
 answered on 11 Feb 2016
3 answers
233 views

Hi

 

I have issues with a filter that i have placed in a radwindow - the dropdowns ect is put behind the window its self - this is my code:

 

<telerik:RadWindow RenderMode="Lightweight" ID="modalPopup" runat="server" Width="360px" Height="360px" Modal="true" OffsetElementID="main" Style="z-index: 100001;" Skin="Windows7">
    <ContentTemplate>
        <telerik:RadFilter ID="TableEditFilter" runat="server" FilterContainerID="rgTableEdit" ExpressionPreviewPosition="Bottom" Style="z-index: 100002;" />
    </ContentTemplate>
</telerik:RadWindow>
<script type="text/javascript">
    //<![CDATA[
 
    function ShowmodalPopup(sender, args) {
        $find("<%=modalPopup.ClientID%>").show();
        return false;
    }
    //]]>
</script>

and is activated by a button click in a GridTemplateColumn:

<telerik:RadButton Image-ImageUrl="~/Images/filter_16x16.png" runat="server" ID="FilterButton" Width="16" Height="16" skin="Windows7" OnClientClicked="ShowmodalPopup" AutoPostBack="false"  />

Viktor Tachev
Telerik team
 answered on 11 Feb 2016
1 answer
146 views

Hi Admin,

 

i Was trying this demo code ( http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx) for overlay menu. Is that possible to create sub menu for this type of menu ? 

 
Ivan Danchev
Telerik team
 answered on 11 Feb 2016
3 answers
584 views
Hi! It's possible hide or disable the back button? and disable the option too to change the step? Other dude it's possible set a time for each step? for example the step one only has 3 minutes after 3 minutes pass to the step2
Nencho
Telerik team
 answered on 11 Feb 2016
4 answers
178 views

Prior to our recent upgrade to 2016.1.113.40 the below chart rendered fine, after our upgrade, we get a JS error.  To correct this I had to change the series from LineSeries to a ScatterLineSeries.

 

Is this a known issue?

 

<telerik:RadHtmlChart ID="rChart1" Visible="true" runat="server" BorderStyle="Outset" BorderWidth="2px" CssClass="Center"
                        Height="400px" Width="980px" Legend-Appearance-Visible="true">
                        <ChartTitle Text="Acme Engineering and Manufacturing Corporation">
                            <Appearance>
                                <TextStyle FontFamily="Tahoma" Bold="true" FontSize="10pt" />
                            </Appearance>
                        </ChartTitle>
                        <Legend>
                            <Appearance Visible="true" BackgroundColor="White" Position="Right"></Appearance>
                        </Legend>
                        <Appearance>
                            <FillStyle BackgroundColor="LightSteelBlue" />
                        </Appearance>
                        <PlotArea>
                            <XAxis DataLabelsField="Day" Name="Day Of The Month" Color="Black" Step="1" BaseUnitStep="1"
                                MinorTickType="None" StartAngle="1" MinValue="1">
                                <TitleAppearance Text="Days Of The Month" Visible="true">
                                    <TextStyle FontSize="8pt" FontFamily="Tahoma" Bold="true" />
                                </TitleAppearance>
                                <MajorGridLines Visible="true" />
                                <MinorGridLines Visible="false" />
                            </XAxis>
                            <YAxis MaxValue="4500000" MinValue="0" Step="500000" Visible="true">
                                <TitleAppearance Text="Acme Net Sales Dollars">
                                    <TextStyle FontSize="8pt" FontFamily="Tahoma" Bold="true" />
                                </TitleAppearance>
                                <MajorGridLines Visible="true" />
                                <MinorGridLines Visible="false" />
                                <LabelsAppearance DataFormatString="{0:C0}"></LabelsAppearance>
                            </YAxis>
                            <Appearance FillStyle-BackgroundColor="White"></Appearance>
                            <Series>
                                <telerik:LineSeries DataFieldY="RunningGoalAmount" Name="Monthly Goal">
                                    <Appearance>
                                        <FillStyle BackgroundColor="Blue" />
                                    </Appearance>
                                    <LineAppearance LineStyle="Smooth" Width="3"/>
                                    <LabelsAppearance Visible="false"></LabelsAppearance>
                                    <MarkersAppearance MarkersType="Circle" Size="8" />
                                    <TooltipsAppearance Color="White" DataFormatString="{0:C0}"></TooltipsAppearance>
                                </telerik:LineSeries>
                            </Series>
                            <Series>
                                <telerik:LineSeries DataFieldY="RunningTotalAmount" Name="Shipments">
                                    <LineAppearance LineStyle="Smooth" Width="3" />
                                    <LabelsAppearance Visible="false"></LabelsAppearance>
                                    <Appearance>
                                        <FillStyle BackgroundColor="Red" />
                                    </Appearance>                                   
                                    <MarkersAppearance MarkersType="Circle" Size="8" />
                                    <TooltipsAppearance Color="White" DataFormatString="{0:C0}"></TooltipsAppearance>
                                </telerik:LineSeries>
                            </Series>
                        </PlotArea>
                    </telerik:RadHtmlChart>

JS error with above.

Unhandled exception at line 32775, column 1 in http://localhost/FantasticWeb/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;Telerik.Web.UI:en-US:0e68002b-2938-4ae4-8b39-d22194ea1513:16e4e7cd:f7645509:22a6274a:ed16cbdc:24ee1bba:c128760b:19620875:874f8ea2:92fe8ea0:fa31b949:4877f69a:f46195d3:490a9d4e:bd8f85e4:86526ba7:e330518b:88144a7a:1e771326:8e6f0d33:1f3a7489:2003d0b8:c8618e41:1a73651d:333f8d94:e4f8f289:7c926187:8674cba1:b7778d6c:c08e9f8a:a51ee93e:59462f1:4cd1fec6:77613e24:f0c58c30:9b7cc2d2:8d1fecce:ec7335e:d944e0f6:c442ac3f:69667591:6b6b9ee5:595e7652:58366029
 
0x800a138f - JavaScript runtime error: Unable to get property '0' of undefined or null reference

 

 Changing the Series to a ScatterLineSeries versus LineSeries seems to have resolved this.  I also changed the DataFormatString on the Label to 1.

<Series>
                                <telerik:ScatterLineSeries DataFieldX="Day" DataFieldY="RunningGoalAmount" Name="Monthly Goal">
                                    <Appearance>
                                        <FillStyle BackgroundColor="Blue" />
                                    </Appearance>
                                    <LineAppearance LineStyle="Smooth" Width="3"/>
                                    <LabelsAppearance Visible="false"></LabelsAppearance>
                                    <MarkersAppearance MarkersType="Circle" Size="8" />
                                    <TooltipsAppearance Color="White" DataFormatString="{1:C0}"></TooltipsAppearance>
                                </telerik:ScatterLineSeries>
                            </Series>
                            <Series>
                                <telerik:ScatterLineSeries DataFieldX="Day" DataFieldY="RunningTotalAmount" Name="Shipments">
                                    <LineAppearance LineStyle="Smooth" Width="3" />
                                    <LabelsAppearance Visible="false"></LabelsAppearance>
                                    <Appearance>
                                        <FillStyle BackgroundColor="Red" />
                                    </Appearance>                                   
                                    <MarkersAppearance MarkersType="Circle" Size="8" />
                                    <TooltipsAppearance Color="White" DataFormatString="{1:C0}"></TooltipsAppearance>
                                </telerik:ScatterLineSeries>
                            </Series>
 

 

 

 

 

Danail Vasilev
Telerik team
 answered on 11 Feb 2016
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?