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

I am using a grid in my page for the user to insert data into.  on opening the page I want the grid to open the insert mode.  I put this in and it works but the default values are not showing in the fields.  if I just load the page and click on the insert link the values are there.  is there a way I can get my default values to show while opening this on the page load?

 

protected

 

void RadGrid2_PreRender(object sender, EventArgs e)

 

{

 

if (!Page.IsPostBack)

 

{

RadGrid2.MasterTableView.IsItemInserted =

true;

 

RadGrid2.Rebind();

}

}

my column editor looks like this

<

 

telerik:GridNumericColumnEditor ID="CCTavelCostColumnEditor" runat="server">

 

 

<NumericTextBox runat="server" ID="NumericTextBox3" Width="80px" Value="0" NumberFormat-DecimalDigits="0" Type="Currency"

 

 

</NumericTextBox>

 

 

</telerik:GridNumericColumnEditor>

if it helps my column is like this

 

<

 

telerik:GridNumericColumn Aggregate="Sum" DataField="TRAVELCOST" HeaderText="TRAVEL COST" UniqueName="TRAVELCOST" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"

 

 

DataType="System.Decimal" DataFormatString="{0:C}" ColumnEditorID="CCTavelCostColumnEditor" ItemStyle-Width="80px"

 

 

 

 

 

FooterAggregateFormatString="{0:C}" FooterStyle-HorizontalAlign="Right">

 

 

 

 

 

<FooterStyle HorizontalAlign="Right"></FooterStyle>

 

 

 

 

 

<HeaderStyle HorizontalAlign="Right"></HeaderStyle>

 

 

 

 

 

<ItemStyle HorizontalAlign="Right"></ItemStyle>

 

 

 

 

 

</telerik:GridNumericColumn >

 

Pavlina
Telerik team
 answered on 30 Apr 2010
1 answer
116 views
I have a RadGrid bounded with an ObjectDataSource. I have a DateTime parameter that gives some problem.
When I try to update data i get the following error: "Cannot convert value of parameter 'Data' from 'System.String' to 'System.DateTime' ".
I tried also to specify the format of date:
 <telerik:GridBoundColumn DataField="Data" DataType="System.DateTime"  

 

HeaderText="Data" SortExpression="Data" UniqueName="Data" EditFormHeaderTextFormat="{0:dd/MM/yyyy HH:mm:ss}" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">

 

 

 

</telerik:GridBoundColumn>

or to use:

<

 

 

telerik:GridDateTimeColumn DataField="Data" DataType="System.DateTime" HeaderText="Data" SortExpression="Data" UniqueName="Data" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

I get always the same error, what can I do to solve?

 

 

 

 

Pavlina
Telerik team
 answered on 30 Apr 2010
1 answer
229 views

Hi Telerik Team,

In Rad combo box,
we are displaying default Text from Coding,like

DropDownCompany.Items.Insert(0,

New RadComboBoxItem("All Companies", "-1"))

this  "All Companies"  Text is displaying with no styles.

how to make that text as Italic font while selected.


Regards,
Surya Murthy.




 

Veronica
Telerik team
 answered on 30 Apr 2010
1 answer
175 views
Hi,

I am binding some data to Radgrid and sorting option is there in Radgrid.

My issue is that on sorting data for one column of Radgrid sorting icon
in another column is visible. I want on sorting one column of Radgrid
sorting icon in another column should not be visible.

Any help on this will be grateful.



Pavlina
Telerik team
 answered on 30 Apr 2010
2 answers
155 views
I captured a screen shot from the demo site which shows the grid menu items.

All of the grid menu items are lacking a space between words.  This appears to be something that has been there for a while, but now we have users coming to us to spell out these options correctly.

For example,
NoFilter -> No Filter
NotEqualTo -> Not Equal To

Has anyone else ran into this before?  I haven't been able to find any other forum post related to it. 

Is this the type of request I should submit to that public issue tracking site?

Thanks
Tim
Jeff
Top achievements
Rank 1
 answered on 30 Apr 2010
6 answers
125 views
Hi all.

I have a RadPanelBar inside of a Table that is set to a height of 100%.  The RadPanelBar is also set to 100%.

The basic structure of the panel is this:

<t

 

 

elerik:RadPanelBar ID="RadPanelBar1" runat="server" onitemclick="RadPanelBar1_ItemClick" CausesValidation="False" ExpandMode="FullExpandedItem" BorderWidth="0px"height="100%" Width="100%">
 
<Items>
 
<telerik:RadPanelItem runat="server" Expanded="True" Selected="True" Text="HOME" Value="parent">
 
<Items>
 <
telerik:RadPanelItem runat="server" Text="LINKS" Value="links">
 
</telerik:RadPanelItem>
 
<telerik:RadPanelItem runat="server" Text="about us" Value="aboutus">
 <
/telerik:RadPanelItem>
 
<telerik:RadPanelItem runat="server" Text="contact us" Value="contactus">
 </
telerik:RadPanelItem>
<telerik:RadPanelItem runat="server" Text="portal login" Value="login">
 
</telerik:RadPanelItem>
 
</Items>
 
</telerik:RadPanelItem>
</telerik:RadPanelBar>

My Table is 1 row 2 columns.  The background of column 1 is gray.  This is where the RadPanel lives.
In IE8 and Chrome the page renders as expected. The panel is expanded and i can see all of HOMEs child items.

In Firefox the panel is shrunk and only displays the first child "LINKS" under home.  However, the column in which it resides is full height because i can see the gray background in the open space.

Any thoughts as to how to increase the height of the RadPanelItem to fill the column?

 

 

 

Thanks

 

Kamen Bundev
Telerik team
 answered on 30 Apr 2010
1 answer
99 views
hi,
I have a problem in my page uses telerik RadAjaxManager
 i add a usercontrol into the  page
this user control has a clasic HtmlInputFile to upload files
I added this control to RadAjaxManager

RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnUpdate, DTC_btn_Attachments.FindControl("File1"));



the problem that when i choos file from and submet the btnUpdate that save upload and save what selected files use HtmlInputFile
RadAjaxManager seems clear or not seing what path selected via HtmlInputFile (part of usercontrol as i mentioned)

any help please,

Ihab


Mira
Telerik team
 answered on 30 Apr 2010
0 answers
156 views
A rare VS2010 crash was reported due to insufficient registry access permissions by the Telerik.CommonPackage.
The problem is related to the attempt of the CommonPackage to remove the "Welcome!" message added by the installer.

The problem is now fixed. A Latest Internal Build is available for RadControls for ASP.NET AJAX.

Erjan Gavalji
The Telerik team
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 30 Apr 2010
2 answers
125 views
I've seen a number of posts which cover the colour coding of appointments, but none which would appear to apply to using the ExchangeScheduleProvider as the data source.

I need to emulate the same basic colours that a user using Oulook would see. Exchange stores this data under the "Categories" attribute of the calendar item, and by default uses values such as "Red Category".

Having looked through a Telerik Appointment object at runtime which references an appointment in Exchange which has a category set, this data does not seem to appear anywhere in the Appointment object. Specifically, the Resources collection is empty.

Can this be achieved, and has my searching failed to find an existing forum topic?

Thanks.
jwhitley
Top achievements
Rank 1
 answered on 30 Apr 2010
2 answers
67 views
In the new appontment  template I have dropdown with 3 items using Resources. but the top element is displaying "-". I want to remove "-" and want to write "--Select--" instead.

How can I achieve it ?

I am using asp.net ajax radscheduler. and this is inbuilt advance template not custom template.
chirag shah
Top achievements
Rank 1
 answered on 30 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?