Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
We recently upgraded our Telerik.Web.UI.DLL and OpenAccess ORM to the latest versions and found that our ViewState for each page jumped significantly - example from 8KB to 200KB. This was across the board on almost all our pages.

After much digging around we found that this was being caused by the StoreOriginalValuesInViewState property of the OpenAccessDataSource object, which defaults to true if not set. I could not find anything in the forums or the Support site about this issue, so I thought this might help somebody else that runs into this. Setting this value to false for each data source allowed our viewstate to go back to normal.
Ivailo
Telerik team
 answered on 19 Aug 2011
1 answer
85 views
I have a radscheduler bound to a sqldatasource.  I would like to get access to the data as it is being read into the radscheduler from the sqldatasource.  What I would like to do is change a 'field' value for one of the fields.  I've been searching all over the place for this but have not found any code to do so.

Thanks in advance.
Richard
Top achievements
Rank 1
 answered on 19 Aug 2011
4 answers
126 views
Please see the attached screenshots.

The first is of a form shown in a popup RadWindow. The application is using the Black skin. Note that the background colour of the form is the correct colour for the Black skin. This happens automagically; I didn't make it happen. The second shows the RadSpell dialog opened. Note the background colour.

Looking at the generated HTML, it seems that my RadWindow form applies the class .rfdZone to the <html> element (I have a RadFormDecorator on the page, is that why?) whereas the RadSpell dialog doesn't.

It looks a bit pants.

Is it possible to change it?

--
Stuart
Marin Bratanov
Telerik team
 answered on 19 Aug 2011
1 answer
214 views
I've searched through support and these forums, and while I've found several answers to this question, none of them specifically suit my needs.

I'm storing all my DateTime data in UTC format in my SQL 2005 database.  What I'd like is extend the RadDatePicker (and RadDateTimePicker) so that when they display a date from the DB, they automatically shift it to the loca timezone.  Then when they write any date to the DB, they shift it back to UTC.

I was thinking of creating an extension class that inherits the RadDateTimePicker and overriding the DataBind() method within it.  I'm not quite sure how to accomplish this though.  It'd be easy enough to shift the displayed date when it's read from the database, but I can't figure out how I would shift the date written back to the DB.

I've also seen places on these forums talking about AJAX and Javascript, and how the control will provide the UTC-shifted date using some of those methods.

Most of my RadPickers are databound objects on the EditTemplates of RadGrids.  They are tied to LinqDataSources and not populated in the codebehind, so manipulating the times through codebehind would take a lot of reengineering. 

Any suggestions on how I could create an extension class or manipulate the data on the client side, so that I am always looking at local time but always working with UTC in the database?
Johny
Top achievements
Rank 1
 answered on 19 Aug 2011
3 answers
98 views
Hi all,

I have a combobox which contains checkboxes inside. The first item is "ALL", it means when this item is checked, the other checkboxes will be unchecked and disabled.
When the first item is unchecked, the other items will be enabled for user checking them.

How can I know if user is interacting with the first item for doing the above action?

Thanks for your help
Manish
Top achievements
Rank 2
 answered on 19 Aug 2011
2 answers
179 views
this is an almost perfect solution except when there are more than one fieldName on the page.i add the 1st one and put in a value in the text field - so far so good.
add the 2nd one & changed the Filter Expression - it changes the expression on the top one and clears the text box. i sort of underStand why it's doing that, but what i don't know is how to tell it which one i'm on.
for instance  say, two Field Editors: Workordernumber & PoNumber.(in that order)
i create one: workordernumber & put in a value.
then create another & when i change from workordernumber to PoNumber on the 2nd one, it changes the 1st one at the top and blanks out the Value previously put in. it's performing the RecreateControl on the wrong one.....or rather, not the one i intended. how could i limit the "ChangeExpression" to the one that's being change.
thanks again for any help
rik

 

 

protected void WorkOrdersRadFilter_ItemCommand(object sender, RadFilterCommandEventArgs e)

 

{

 

 

if(e.CommandName == RadFilter.AddExpressionCommandName)

 

{

e.Canceled =

 

true;

 

 

 

RadFilterStartsWithFilterExpression item = new RadFilterStartsWithFilterExpression("WORKORDERNUMBER");

 

(e.ExpressionItem

 

as RadFilterGroupExpressionItem).Expression.AddExpression(item);

 

WorkOrdersRadFilter.RecreateControl();

}

 

 

else if (e.CommandName == RadFilter.ChangeExpressionFieldNameCommandName)

 

{

 

 

string myCmdArg = e.CommandArgument.ToString();

 

 

 

if (myCmdArg != "WOTYPENAME" & myCmdArg != "STATUS_MESSAGE" & myCmdArg != "MATERIALTYPE" & myCmdArg != "CREATEDDATE")

 

{

e.Canceled =

 

true;

 

 

 

RadFilterStartsWithFilterExpression item = new RadFilterStartsWithFilterExpression(e.CommandArgument.ToString());

 

 

 

//replace the current item with the new item that has the default filter set to StartsWith

 

 

 

int i = e.ExpressionItem.OwnerGroup.Expression.Expressions.IndexOf((e.ExpressionItem).OwnerGroup.Expression.FindByFieldName((((RadFilterSingleExpressionItem)(e.EventSource)).Expression).FieldName));

 

e.ExpressionItem.OwnerGroup.Expression.Expressions.RemoveAt(i);

e.ExpressionItem.OwnerGroup.Expression.Expressions.Insert(i, item);

WorkOrdersRadFilter.RecreateControl();

}

}

}

rik butcher
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
115 views
Good morning,
today i bought a full version of Telerik Ajax ASP.NET components and i am trying to use RadImageEditor for croping my images. What i need to do is edit crop dialog - remove two its buttons - http://imageshack.us/photo/my-images/651/imgzkz.jpg/

Can you please help me?

Thanks
Amadeo Mareš
Bozhidar
Telerik team
 answered on 19 Aug 2011
6 answers
140 views
I am using a radgrid control where i have paging and autogenerate columns set to true. When i select a page on the radgrid it shows a panel id on the top and if i select again it works fine. It means it shows the panel id on every alternative select of a page in the grid. Can you help me to reslove it please?
Iana Tsolova
Telerik team
 answered on 19 Aug 2011
3 answers
413 views
Team,

In one of our application we are binding the dynamically generated datatable (With all Field datatypes are String) to a Radgrid.
Problem is when we apply sorting on those string fields it wont sort numerically, instead of that sorting occurs on string.

My question is without change the datatypes in datatable is it possible to change the columns of Radgrid to numeric before apply sorting..

Pls. help me on this. Client wants it immediately.


Thanks,
Tsvetina
Telerik team
 answered on 19 Aug 2011
17 answers
1.7K+ views
I'm using the RadTreeView control.

How to Change the Expand and Collapse Icons to be e.g. arrows instead of + and - icons?

Currently the plus and minus icons are embedded in the Telerik assembly judgying by the background-image value:

url("WebResource.axd?d=VgJdxXzsswqOdCD5rvTw9qbASzacFrx1ogUDI2C8a8ec2xoyM_TB0dE7ON7_Qufmatd1FUHdwBxJuyWB5iw6-kRks3J05ogSsFdHXjCEjQfuCDzPhAViqekZ41WXyBJy0y5vpj0JBT8YkXRnUrmL8-ofV0U1&t=634342277869187417")

are there any other images embedded e.g. arrows that I can use?

Thanks,
Kate
Telerik team
 answered on 19 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?