Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views

Web Service methods normally return only a list with the current appointments (i.e. public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo)

What if current appointments are for a specific user Id?
Can I pass a user Id into expected the web methods?

i.e (i.e. public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) ?

Or is the Web Service approach not correct if I will require to pass more parameters along?


thanks

EDIT:

yeah this is probably irrelevant. I think I spoke too soon since I can get the user info I need in my custom schedule provider using the HTTP Context.

Cheers all.

Peter
Telerik team
 answered on 19 Nov 2009
6 answers
190 views
I'm trying to turn off a text box but set_visible doesn't seem to do anything.  Here's a short example:

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

 

<%

@ 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">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml">

 

<

 

head runat="server">

 

 

<title></title>

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function pageLoad() {

 

$find(

'<%= RadNumericTextBox1.ClientID %>').set_visible(false);

 

}

 

</script>

 

 

</telerik:RadCodeBlock>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

</telerik:RadScriptManager>

 

 

<div>

 

Test

<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"

 

 

Culture="English (Canada)" Width="125px">

 

 

</telerik:RadNumericTextBox>

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

 

Dimo
Telerik team
 answered on 19 Nov 2009
9 answers
130 views
Hi,

i got following runtime error while testing the tooltips made by the tooltipmanager:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Telerik.Web.UI 2009.'.

This error appears unpredictable when i go through all the controls i targeted with my tooltipmanager. On mouseover the tooltip opens and the loading image appears then it crashes. But there was a number of succeeded tooltips befor showing/doing the same.

Maybe is there a problem with my Version of Telerik RadControls for AJAX Q1 2009 and the tooltipified grid?

cheers, uspec
Sebastian
Telerik team
 answered on 19 Nov 2009
1 answer
468 views
I have a bar chart that I am binding to data collected at run-time. I need to be able to add a series of line charts to the chart but I'm having a hard time getting them to appear.

In my code below I am getting some data using linq and binding it to my chart. I then want to add a line series to the chart to represent a target (For eample my chart shows test scores for a group of students using a bar chart and I want to add a line across the 80% mark to represent a target score) How would I go about doing this?

I tried:
var ReopenRate = from myRow in dtTSEdata.AsEnumerable()  
                 orderby myRow.Field<int>("tm_join") descending  
                 select new { name = myRow.Field<string>("ln_fi"), value = myRow.Field<System.Nullable<double>>("reopen_rate") };  
 
 
RadChart1.DataSource = ReopenRate;  
RadChart1.DataBind();                      
RadChart1.Series[0].DefaultLabelValue = "#Y{P1}";  
RadChart1.Series[0].PlotArea.YAxis.Appearance.CustomFormat = "P0";  
 
// attempting to add line series to chart
ChartSeries csud = new ChartSeries();  
csud.Type = ChartSeriesType.Line;  
csud.AddItem(80, "Target", System.Drawing.Color.Red); 

I have also tried a few other ways unsuccessfully and I haven't been able to find any examples. There must be something I am missing.

By the way, my bar chart is displayed horizontally and I would like the line to run vertically (I.E. at the 80% mark).

Thanks!
Paul
Top achievements
Rank 1
 answered on 19 Nov 2009
0 answers
119 views
Greets.

We currently have a system in place for creating and maintaining schedules that leverages the built in job and scheduling features of Sql Server.

Sql Server is able to create jobs and schedules very easily and accepts various recurrence parameters and such when creating these tasks.

I'm looking into this right now but I'm wondering how easy it is to integrate the RadScheduler with Sql Server's scheduling system.
Does the recurrence data that we get out of the control easily map to what Sql Server's scheduling system expects?

I want to use RadSchedule to set up an appointment for say Today at Noon. At noon I want Sql Server's job to fire and put some piece of information on some SchedulerTask queue.
I'm wondering if I need to prepare myself to do a lot of custom stuff to translate data from the RadSchedule control in order to have Sql understand that information when creating a scheduled job.

Has anyone tried this?
towpse
Top achievements
Rank 2
 asked on 19 Nov 2009
1 answer
166 views
Dear All,

Forgive the newbie question but am stumped trying to find an elegant solution to this.

I have an ASPX page with a RadGrid control working without issue. However upon initial load a QueryString parameter is passed that I want to remove from future postbacks (or any kind); therefore if the page is called as "WebPage1.aspx?MyParam=Test" the postback URL for paging calls/etc needs to have this parameter removed.

Could someone point me in the right direction? I don't want to use Javascript and thought perhaps parsing out the QS in ItemCreated might work, but am struggling to make it cover all calls.

Many thanks!
Sebastian
Telerik team
 answered on 19 Nov 2009
2 answers
484 views
Hi all

I'm after some help with achieving the following.

I am programmatically creating my RadGrid and it is to contain GridBoundColumns and a GridButtonColumn. The grid button column is to allow for clicking and opening another page. However I would like the ImageUrl for the grid button column to be dependant upon a column value in the datatable. For instance if the value in the column of the row in the datatable is true then show one image but if it is false then show another.

At this point my ascx page looks like so:

<

 

telerik:RadGrid ID="radGrid1" runat="server" OnItemDataBound="DataBoundMethod">

 

 

 

<MasterTableView>

 

 

 

<RowIndicatorColumn>

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn>

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

</ExpandCollapseColumn>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 

 

 

</ClientSettings>

 

</

 

 

telerik:RadGrid>

 

 


My ascx.cs page then includes (amongst other btis of code) the following method where I thought I could do what I wanted

protected

 

void DataBoundMethod(object sender, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

 

    if (e.Item is GridDataItem)

 

    {

 

 

        GridDataItem dataItem = e.Item as GridDataItem;

 

 

 

        
        //Need to do something here to alter the ImageUrl
     }

 

}

Any thoughts on this? If I am going down the wrong road that is ok, I'm fairly new to the Telerik stuff so am still learning. Any help be would be greatly appreciated.

Many thanks

 

Jaytee
Top achievements
Rank 1
 answered on 19 Nov 2009
5 answers
220 views
Aggregates are blank when binding server-side.

I Have the following GridBoundColumn:

 <telerik:GridBoundColumn Aggregate="Sum" SortExpression="UNIT_PRICE" HeaderText="UNIT_PRICE"
HeaderButtonType="TextButton" DataField="UNIT_PRICE" DataFormatString="{0:$###,###.##}"
FooterAggregateFormatString="TOTAL: {0:C}">
</telerik:GridBoundColumn>

On the server I have.

Protected

 

Sub RadGrid1_DetailTableDataBind(ByVal source As Object, ByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles RadGrid1.DetailTableDataBind

 

 

Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)

 

 

Dim OrderID As String = dataItem.GetDataKeyValue("WORK_ORDER").ToString()

 

 

Dim openstockDetail As SqlDataReader = DealerOpenStocks.GetOpenStockDetail(OrderID)

 

e.DetailTableView.DataSource = openstockDetail

 

End Sub

 

 

Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadPanelBarEventArgs) Handles RadPanelBar1.ItemClick

 

 

Dim openstock As SqlDataReader = DealerOpenStocks.GetOpenStock(e.Item.Text)

 

Radgrid1.DataSource = openstock

RadGrid1.DataBind()

 

'ProductImage.Src = "images/" & e.Item.Text & ".jpg"

 

 

End Sub


Everything works fine except that my footer totals are not showing up. Any ideas?


Below is all the code if needed.

 

<

 

telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" ShowStatusBar="True" AutoGenerateColumns="False"

 

 

ShowFooter="True" GridLines="Horizontal" Skin="Outlook">

 

 

<MasterTableView Width="100%" ClientDataKeyNames="WORK_ORDER" DataKeyNames="WORK_ORDER"

 

 

Name="Master">

 

 

<DetailTables>

 

 

<telerik:GridTableView DataKeyNames="WORK_ORDER" Name="Sub" Width="100%">

 

 

<Columns>

 

 

<telerik:GridBoundColumn SortExpression="WORK_ORDER" HeaderText="WORK_ORDER ID" HeaderButtonType="TextButton"

 

 

DataField="WORK_ORDER">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="PART_ID" HeaderText="PART ID" HeaderButtonType="TextButton"

 

 

DataField="PART_ID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn SortExpression="DESCRIPTION" HeaderStyle-Width="250px" HeaderText="DESCRIPTION"

 

 

HeaderButtonType="TextButton" DataField="DESCRIPTION" UniqueName="DESCRIPTION">

 

 

<HeaderStyle Width="250px"></HeaderStyle>

 

 

<ItemStyle Width="250px" />

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn Aggregate="Sum" SortExpression="UNIT_PRICE" HeaderText="UNIT_PRICE"

 

 

HeaderButtonType="TextButton" DataField="UNIT_PRICE" DataFormatString="{0:$###,###.##}"

 

 

FooterAggregateFormatString="TOTAL: {0:C}">

 

 

</telerik:GridBoundColumn>

 

 

 

 

</Columns>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="WORK_ORDER" HeaderText="WORK_ORDER" SortExpression="WORK_ORDER"

 

 

UniqueName="WORK_ORDER">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="DESCRIPTION" SortExpression="DESCRIPTION"

 

 

UniqueName="DESCRIPTION">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="MODEL" HeaderText="MODEL" SortExpression="MODEL"

 

 

UniqueName="MODEL">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="UNIT_PRICE" DataType="System.Decimal" HeaderText="UNIT_PRICE"

 

 

SortExpression="UNIT_PRICE" UniqueName="UNIT_PRICE" DataFormatString="{0:C}">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True">

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

</ClientSettings>

 

 

</telerik:RadGrid>


 

 

 

 

stewster
Top achievements
Rank 1
 answered on 19 Nov 2009
11 answers
381 views
Any estimates on when this bug will be fixed (ie, not searching child nodes)?
Sam Kaplan
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
171 views

Need help!!!

I have the radEditor inside the webpage and when I click on the spellcheck button within Editor, below error shows up..

The webpage runs on a sharepoint 2007 server (MOSS). Not sure anything is different with this/

I have verified the handler within the web.config file

<httpHandlers>
      <!-- Telerik Toolbox handlers -->
      <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <!-- Telerik Toolbox handlers -ENDS HERE -->
 </httpHandlers>


LOCATION DETAILS

 <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
  <location path="Telerik.Web.UI.SpellCheckHandler.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

Under handler section

<handlers>
          <!-- Telerik Controls UI Handlers -->
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
      <add name="Telerik.Web.UI.DialogHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" />
      <!-- Telerik Controls UI Handlers - Ends here-->
    </handlers>


----------------------

ERROR

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Fri, 13 Nov 2009 22:01:36 UTC


Message: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.
Parameter name: data
Line: 6
Char: 62099
Code: 0
URI: http://rmdev1.development.org/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ad2d891f5-3533-469c-b9a2-ac7d16eb23ff%3ae330518b%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3ac8618e41%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4552b812-caf7-4129-9b53-8f199b5bce6c%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3aed16cbdc%3a11a04f7e%3a1e771326%3ae524c98b%3ae330518b%3ac8618e41%3ae4f8f289%3a39040b5c%3adc7e0bd%3a1569bb5f%3a63b115ed%3ac408cfaa

--------------------

My dictionary files are in APP_DATA\RadSpell\*.tdf

I have used fiddler to check the response but not helped much --

raw response -

POST /Alerts/_layouts/rm/Telerik.Web.UI.SpellCheckHandler.axd HTTP/1.1
Accept: */*
Accept-Language: en-us
Referer: http://rmdev1.development.org/Alerts/_layouts/rm/SendAlertByRole.aspx
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM 8; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Host: rmdev1.development.org
Content-Length: 501
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: WSS_KeepSessionAuthenticated=80; ASP.NET_SessionId=hjgw1qyu0oezta45pl43s155; MSOWebPartPage_AnonymousAccessCookie=80
Authorization: Basic VmlqYXlhZG1pbjpWaWpheTEyMw==

DictionaryLanguage=en-US&Configuration=F3FcUiFxLkRWWX86VRAAWFR%2BXzJkKQcyWgYRQHR1OWIjKnpfH2AlB1EEYn5nLgMYJ35XQh9yDFlRY3A6fxIAaWN%2BandvPgd1dFkCampcA1sQdGJPEV0iRVYVQG9iLgcrCAZATxJaKn1tBnc3fRE2UWd%2FVHViA3ASW3MWR29YD1kLdHIFEVolB34GSEN5HCkjIFtUCxJzFHVQBncEfxMUamd%2Fci5hARsKWHI0dG1YJVEQd1BPEXMDD2MXRHVXKQN2E256SwlzGFpWfHcvfAIDQ2ZSXBZVdTEYaloGW1xiF2kRKFx%2FImAcYFJwZmF7dA8xHF1UDBdxBHpiWUkrfQEqX2lUCRJVdTEYamwSaW5xKUI%3D&CommandArgument=%26nbsp%3Bsadf%20asdf%20dsaf%20sf%20sadfds%20f&CommandName=SpellCheck

HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
SharePointError: 0
Set-Cookie: WSS_KeepSessionAuthenticated=80; path=/
Set-Cookie: MSOWebPartPage_AnonymousAccessCookie=80; expires=Fri, 13-Nov-2009 22:31:27 GMT; path=/
X-Powered-By: ASP.NET
Date: Fri, 13 Nov 2009 22:01:28 GMT

ab0
?



Stanimir
Telerik team
 answered on 19 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?