Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
78 views
In my application I need to fire a server side function when I click on item, even though if it is already selected.
We have a OnSelectedIndexChanged event which fires if the index is changed else not.

please help me to achieve this.. 


Sunil
Top achievements
Rank 1
 asked on 25 Mar 2013
5 answers
221 views
Hi,

is it possible with no programming side (code behind) set something like set maxvalue to minimaly 10% above maximum in steps of ....

For examle I have value 1197 and when I set autoscale chart is displaying to 1200 and I want it to display to 1400  (1197 +10% = 1316 but as step is 100, 1400 is maxValue)

Marko

Danail Vasilev
Telerik team
 answered on 25 Mar 2013
3 answers
133 views
I am a complete newbie to RadControls. I have a RadGrid with a GridButtonColumn that is a link button whose text is the data value returned from the database. I have a RadWindowManager with a RadWindow inside of it that then contains a htmlChart. The CommandName on the GridButtonColumn is openWin(); return false;. The full javascript is as follows:

function openWin() {
    window.radopen(null, "RadWindow2"):
}

I also have a RadAjaxManager which I have set the LinkButton to update the RadWindowManager, RadWindow2, and the htmlChart. I have tried all, none, and each individually thinking this was an ajax issue.

Any help you can offer would be GREATLY appreciated. The next step is how to load the chart....???

Thanks you though...one step at a time!

Shinu
Top achievements
Rank 2
 answered on 25 Mar 2013
1 answer
88 views
Is it possible to build own RadFilterGroupOperation or RadFilterDataFieldEditor for MS SQL full-text search operator CONTAINS? Meybe you may suggest some solution. I'd like to generate SQL with where clause like that:  
.... CONTAINS([columnName], 'NEAR(value1, value2)')
- columnName  from Filter FieldName property 
- NEAR operator from FilterFunction 
- value1, value2 from editor texbox

 
 
Marin
Telerik team
 answered on 25 Mar 2013
3 answers
387 views
This is the first time we're using the RadHtmlChart control (in the past, we've used others successfully - like the RadCalendar - just fine). I can't get ANYTHING to show up. I'm using some of your sample code on a test page:

My test.aspx file:

<%@ Page Language="C#" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Test</title>
</head>
<body>
    <form id="form1" runat="server">
        <p>This is a test...</p>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <telerik:RadHtmlChart runat="server" ID="PieChart1" Transitions="true">
            <PlotArea>
                <Series>
                    <telerik:PieSeries StartAngle="90">
                        <LabelsAppearance Position="Circle" DataFormatString="{0} %" />
                        <TooltipsAppearance DataFormatString="{0} %" />
                        <Items>
                            <telerik:SeriesItem BackgroundColor="Purple" Exploded="true" Name="Internet Explorer" YValue="18.3" />
                            <telerik:SeriesItem BackgroundColor="Orange" Exploded="false" Name="Firefox" YValue="35.8" />
                            <telerik:SeriesItem BackgroundColor="Green" Exploded="false" Name="Chrome" YValue="38.3" />
                            <telerik:SeriesItem BackgroundColor="Blue" Exploded="false" Name="Safari" YValue="4.5" />
                            <telerik:SeriesItem BackgroundColor="Red" Exploded="false" Name="Opera" YValue="2.3" />
                        </Items>
                    </telerik:PieSeries>
                </Series>
            </PlotArea>
            <ChartTitle Text="Browser Usage for April 2012">
            </ChartTitle>
        </telerik:RadHtmlChart>
    </form>
</body>
</html>


But when I look at it in my browser window, I just see "This is a test..." and then blank.

I'm sure I'm missing something obvious ... what do I need to add/change to get the chart to show?
Danail Vasilev
Telerik team
 answered on 25 Mar 2013
3 answers
149 views
Hi,

I am having a RadCombobox which is beinv populated from a Webservice. So my requirement is I want to know if it is possible to set a delay timer before requesting for items as well as to cancel the request if the request is not serviced within a partcular time interval?

Thanks,
Karl.
Princy
Top achievements
Rank 2
 answered on 25 Mar 2013
1 answer
88 views
I'm creating a simple test program and use the set_startTime method, it doesn't work. It should start from 6:am (I hard code it).
Please refer to the attached png

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
function OnPopupOpening(sender, args) {
var MDate = sender.get_minDate();
sender.set_minDate(2013 + '-' + 3 + '-' + 13 + '-' + 6 + '-' + 00 + '-' + 0 + '-' + 0);
var MDateAfter = sender.get_minDate();
var TWStartTime = sender._timeView.get_startTime();
sender._timeView.set_startTime(6 + '-' + 00 + '-' + 0 + '-0-0');
var TWStartTimeAfter = sender._timeView.get_startTime();
var picker = $find("<%= RadDateTimePicker2.ClientID %>");
var timeview = sender.get_timeView();
var NDate = new Date(2013, 2, 13, 6, 0, 0, 0);
$telerik.toTimeView(timeview).set_startTime(NDate);
var TWStartTimeAfter = sender._timeView.get_startTime();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">

<div>

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>

<telerik:RadDateTimePicker ID="RadDateTimePicker1" Runat="server"
Culture="en-US"
HiddenInputTitleAttibute="Visually hidden input created for functionality purposes."
WrapperTableSummary="Table holding date picker control for selection of dates.">
<TimeView CellSpacing="-1" interval="00:30:00"></TimeView>

<TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>

<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%"></DateInput>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
</telerik:RadDateTimePicker>

</div>
<div>

<telerik:RadDateTimePicker ID="RadDateTimePicker2" Runat="server"
Culture="en-US"
HiddenInputTitleAttibute="Visually hidden input created for functionality purposes."
WrapperTableSummary="Table holding date picker control for selection of dates.">
<TimeView CellSpacing="-1" interval="00:30:00"></TimeView>

<TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>

<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

<DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy" LabelWidth="40%"></DateInput>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
<ClientEvents OnPopupOpening="OnPopupOpening" />
</telerik:RadDateTimePicker>

</div>
<telerik:RadButton ID="RadButton1" runat="server" Text="RadButton">
</telerik:RadButton>
</form>
</body>
</html>

Angel Petrov
Telerik team
 answered on 25 Mar 2013
5 answers
461 views
Hello, my problem is that I can't write in the content area of the RadEditor.


The situation is that I've a RadWindow with a RadEditor inside it (ContentAreaMode='Div', custom skin, EditModes 'Design' only) and it works (lets the user write in) in Google Chrome, but not in Firefox (IE not tested). Is there any known reason for this?. An example of what I'm saying is (the page is a content page):

<asp:Content ContentPlaceHolderID="cphContenido" runat="server">

    <table width="100%">
        <thead>
            <tr class="rwContentTitle">
                <th>...</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <fieldset>
                        <rad:RadEditor ID="reTextoCampo" runat="server"
                            ContentAreaMode="Div"
                            EditModes="Design"
                            EnableEmbeddedBaseStylesheet="false"
                            EnableEmbeddedSkins="false"
                            Height="375"
                            MaxTextLength="500"
                            Skin="XXXX"
                            Width="100%">
                            <Tools>
                                <rad:EditorToolGroup>
                                    <rad:EditorTool Name="Cut" />
                                    <rad:EditorTool Name="Copy" />
                                    <rad:EditorTool Name="Paste" />
                                </rad:EditorToolGroup>
                            </Tools>
                            <Modules>
                                <rad:EditorModule Name="RadEditorStatistics" Visible="true" />
                            </Modules>
                        </rad:RadEditor>
                            
                    </fieldset>
....

Thanks in advance.

PD: I forgot to say that the page is the content of the RadWindow :D...
Slav
Telerik team
 answered on 25 Mar 2013
10 answers
247 views
Hi,

I am using combox which is loaded via webservice on demand. I am noticing that its very slow. From the moment i type something in a combo till it reaches webservice at server there is a delay of around 3 seconds. Even the "Loading.." text is not shown rapidly. 

Here is the code:

<telerik:RadComboBox ID="radList" Runat="server" EnableEmbeddedSkins="False" Skin="search" Width="120px" NoWrap="True" Height="200px" DropDownWidth="225px" EnableLoadOnDemand="true" 
OnClientItemsRequesting="OnClientItemsRequesting" ItemRequestTimeout="2000"   
OnClientSelectedIndexChanged="onChanged"   
EnableViewState="false" LoadingMessage="Loading..." EmptyMessage="Type to get results" 
>   
 
<WebServiceSettings Method="GetItems" Path="~/WebServices/Search.asmx" />   
</telerik:RadComboBox> 
 


And the javascript function called:

function OnClientItemsRequesting(sender, eventArgs)  
 
{   
 
 
var text = eventArgs.get_text();   
 
if( text.length < 3)   
 
{   
 
eventArgs.set_cancel(true);   
 
}  
 
else{   
 
var context = eventArgs.get_context();  
 
context["FilterString"] = text;   
 
}  
}

This is the only thing that I do for defining the conotrol. Is there any way to improve the perfomance, as 3  seconds just to get to server is really slow.

My second question is there a way to change mode of combo to textbox?

Thanks in advance for your help.

Best regards,

Khurram

Nencho
Telerik team
 answered on 25 Mar 2013
3 answers
113 views
Hi,

I have a RadCalendar control with AjaxManager on my page.  Everything seems to work fine.  I have one problem with Javascript error and it doesn't clear stated what it is.  All it said is "Unknown Runtime Error".  When I click on ASP.NET, it saved my changes and closed the window.  However, it also gave me a runtime error in Javascript from the following line of code in RadCalendar.js file.  Please let me know what am I missing here?

if

(_9==RadCalendarUtils.RENDERINCOLUMNS&&_c){

for

(i=0;i<this.Cols;i++){

var

_37=_2.rows[_36].cells[_14+i];

if

(this.isNumber(_37.innerHTML)){

_37.innerHTML=_15[i];    ///This is where I have the error. 

Radoslav
Telerik team
 answered on 25 Mar 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?