Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
Hi

Subject says it all really!

I have implemented a database provider based upon http://demos.telerik.com/aspnet-ajax/scheduler/examples/dbschedulerprovider/defaultcs.aspx and that is working fine.

But what I want to do is optimise this like in http://demos.telerik.com/aspnet-ajax/scheduler/examples/optimizedqueries/defaultcs.aspx

How do I get the rangestart, rangeend details of the scheduler into the provider?

Any help / suggestions appreciated.

Thanks
Andrew Wait
Top achievements
Rank 1
 answered on 22 Feb 2011
13 answers
170 views
i want to add number of days returned by combobox according to selection made with my date time picker,its giving me error,object type is not supprted in javascript,and while debugging its giving me object,object in alert box.

please help me
Rahul
Top achievements
Rank 1
 answered on 22 Feb 2011
4 answers
290 views
Hi team,

Table wizard have some styles predefied in one style selector like "telerik-re table1"(Table properties,CSS Class Layout).
How to change and add my custom styles in this dropdown ?

Regards
Rumen
Telerik team
 answered on 22 Feb 2011
1 answer
274 views
I'm working on studio vusl 2005 under. Net framework 2.0, also was working with the 2009 version of telerik, telerik updated version of 2010, 3, 1317, 20, but it generates error.

copy the dll found in the bin20 folder of telerk to the bin folder of my project as tambiene in the web.config I added the new version but it still generates the following error:


No se puede cargar el archivo o ensamblado 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)


I have 2 days trying to fix this problem, moving and copying those dll from one side to another and now not to do, please help
Sebastian
Telerik team
 answered on 22 Feb 2011
1 answer
134 views
I am thinking about using ViewState compression with RadSessionPageStateCompression. I wonder what happens when a page that uses ViewState is open for so long that session expires and then some action causes a postback. Is ViewState gone with the session? I suppose this could lead to some crashes. Is there a way of prevent it?
Nikolay Rusev
Telerik team
 answered on 22 Feb 2011
1 answer
55 views
hi,

i need to export a single records detail to either a pdf file or an excel file.

i'm using the radgrid control and have used the edit form template to display detail information for a single record. i'd like to put the export button here and export only this record's data.

how can this be done?

thanks,
areen
Shinu
Top achievements
Rank 2
 answered on 22 Feb 2011
3 answers
95 views
Can I buy only the RadEditor contol ?

Thanks,
Viorel
Emilia
Telerik team
 answered on 22 Feb 2011
19 answers
443 views
When calling masterTableView.set_virtualItemCount(1234) the method fails with the error "Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: id"

The error is caused by the following lines in set_virtualItemCount():

    if (this._data.sliderClientID != ""
    { 
        var slider = $find(this._data.sliderClientID); 

this._data.sliderClientID is undefined as I'm not using a slider for paging, and naturally "" != undefined in javascript. So the call to $find() is what's causing the error.

I believe the problem would only exist in the debug version of the AJAX.NET library (MicrosoftAjax.debug.js) as the release version does not do type checking on arguments; The call to $find() would simply return null.


Princy
Top achievements
Rank 2
 answered on 22 Feb 2011
2 answers
86 views

Hi all
I have spent Alot time working with the edit radcotrol and I have followed the example in the documentation and I am have a hard time getting the radedit1.content to save
 there is the code

 

 

 

string sqlserver = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

 

 

 

string user_id;

 

 

 

protected void Page_Load(object sender, EventArgs e)

 

 

{

 

 

string userID = Context.User.Identity.Name;

 

 

lookupid(userID);

 

getbody(user_id);

 

}

 

 

public void getbody(string userID)

 

 

{

 

 

SqlConnection conmydata = new SqlConnection(sqlserver);

 

 

conmydata.Open();

 

 

SqlCommand cmdselect = new SqlCommand("select txtarea from txtbody where @userID=userID", conmydata);

 

 

cmdselect.Parameters.AddWithValue(

"@userID", userID);

 

 

 

string strbody = Convert.ToString(cmdselect.ExecuteScalar());

 

 

conmydata.Close();

 

RadEditor1.Content = strbody;

 

}

 

 

public void lookupid(string userID)

 

 

{

 

 

SqlConnection conmydata = new SqlConnection(sqlserver);

 

 

conmydata.Open();

 

 

SqlCommand cmdselect2 = new SqlCommand("select userID from users where @userID=email_address", conmydata);

 

 

cmdselect2.Parameters.AddWithValue(

"@userID", userID);

 

 

 

string stremail = Convert.ToString(cmdselect2.ExecuteScalar());

 

 

conmydata.Close();

 

user_id = stremail;

 

}

 

 

public void edit_finish(object sender, EventArgs e)

 

 

{

 

 

string body = RadEditor1.Content;

 

 

 

SqlConnection conmydata = new SqlConnection(sqlserver);

 

 

conmydata.Open();

 

 

SqlCommand insert = new SqlCommand("update txtbody set txtarea=@txtarea where userID=@userID", conmydata);

 

 

insert.Parameters.AddWithValue(

"@txtarea", body);

 

 

insert.Parameters.AddWithValue(

"userID", user_id);

 

 

insert.ExecuteNonQuery();

 

conmydata.Close();

 

}

 

 

 

Rumen
Telerik team
 answered on 22 Feb 2011
1 answer
115 views
I'm trying to do something that seems simple, but I don't see any examples.  I'm wondering if it's possible.

I want to show a radgrid, where each row is grouping of many detail rows.  Then I want the user to be able to expand the row and see the detail rows.  Both the detail rows and the group rows should have the same columns.

So, picture a datasource like this:

UserId
UserName
InvoiceId
InvoiceAmount

We would want the grid to first show each row with (so:

UserName, Count(), Sum(InvoiceAmount)
For example:

BillJ, 3, $123
JohnM, 2, $323
SteveP, 4, $554

(But we want these in columns that are sortable, not as a comma separated string like the Group Header examples show)

and then when you expanded you would see rows like:

BillJ, 1, $100
BillJ, 1, $20
BillJ, 1, $3


I was hoping to do this with 1 datasource that contains the detail rows, and have the grid figure out the count and sum.

Is this not possible?  Do I have to follow the hierarchy example and use multiple datasources (one where I calculate the sums, counts in the data before binding, and another that has the detail rows)?
Radoslav
Telerik team
 answered on 22 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?