Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
I'm having some trouble changing the image used for the update and cancel buttons, when my grid is set to use InPlace editing. I am currently using this code -

<EditColumn UniqueName="EditCommandColumn1" ButtonType="ImageButton" 
                    CancelImageUrl="~/Images/Undo.png" UpdateImageUrl="~/Images/save.jpg">  
        </EditColumn> 

This code works fine when the EditMode is EditForms, but when set to InPlace, the images revert back to the standard green tick / red cross.
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2009
1 answer
222 views

Recently convert my radgrid from .Net1.1 to 2.0...
DataFormatString works fine with 1.1 but with 2.0 Radgrid Q3 2008 date cannot be formatted as I wanted, and it always adding time.

<rad:GridBoundColumn HeaderText="DOB" DataField="dob" DataFormatString="{0:MM/dd/yyyy}" UniqueName="dob">  
                                    <ItemStyle Font-Size="X-Small" Font-Names="Arial Narrow" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle> 
                                    <HeaderStyle Width="74px"></HeaderStyle> 
                                </rad:GridBoundColumn> 

Any help would be appreciated...
Thanks in advance..

RJ
Top achievements
Rank 1
 answered on 29 Jun 2009
1 answer
109 views
Good Day!

How can I trigger a InitInsert when the button that is being click is residing outside the grid. The scenario is: I have a toolbar and a grid. When user click the "New" button in the toolbar I need to show the insert form of my radgrid(editmode=popup).

Thanks is advance!
unknown
Top achievements
Rank 1
 answered on 29 Jun 2009
0 answers
125 views
Hi Everyone,

I  am facing a problem with font size in combo box as well in drop -down in radgrid for page size , it shows me too small font size but once if i select then it shows proper font size.

Except font size it is working fine , once i select any value from drop-down it shows proper font size for selected item but it doesnt show proper size for unselected item in drop down. All rest look so small which cant be see without select them and not readable.

I know i am missing some propery but can you guys tell me which property i need to set to get  display them in proper font size.



Mahen
Top achievements
Rank 1
 asked on 29 Jun 2009
2 answers
98 views

Hi Everyone,

I have a grid in aspx page like below side..


<

 

div>

 

 

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

 

 

</telerik:RadScriptManager>

 

 

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

 

 

<script type="text/javascript">

 

 

function RowDblClick(sender, eventArgs) {

 

sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());

}

 

</script>

 

 

<

 

style type="text/css">

 

 

.EditFormHeader td

 

{

 

background: #dadec8;

 

 

padding: 5px 0px;

 

}

 

</style>

 

 

 

</telerik:RadCodeBlock>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="radGridProduct">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="radGridProduct" />

 

 

<telerik:AjaxUpdatedControl ControlID="divMsg" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<div id="divMsg" runat="server" style="float: left;">

 

 

<asp:Label ID="Label1" runat="server" EnableViewState="False" Visible="false"></asp:Label>

 

 

</div>

 

 

<br />

 

 

<telerik:RadGrid ID="radGridProduct" runat="server" ShowStatusBar="true" OnNeedDataSource="radGridProduct_NeedDataSource"

 

 

GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"

 

 

OnPreRender="radGridProduct_PreRender" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True" HorizontalAlign="NotSet"

 

 

OnItemInserted="radGridProduct_ItemInserted" OnItemUpdated="radGridProduct_ItemUpdated">

 

 

<MasterTableView DataKeyNames="ID" GridLines="None" Width="100%">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn">

 

 

</telerik:GridEditCommandColumn>

 

<%

-- <telerik:GridBoundColumn Visible="False" UniqueName="ID" HeaderText="ID"

 

DataField="ID" EditFormColumnIndex="1">

</telerik:GridBoundColumn>--

 

%>

 

<%

-- <telerik:GridBoundColumn Visible="False" UniqueName="City" HeaderText="City" DataField="City"

 

EditFormColumnIndex="1">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn Visible="False" UniqueName="Region" HeaderText="Region"

DataField="Region" EditFormColumnIndex="2">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn Visible="False" UniqueName="TitleOfCourtesy" HeaderText="TOC"

DataField="TitleOfCourtesy" EditFormColumnIndex="2">

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

</telerik:GridBoundColumn>--

 

%>

 

 

<telerik:GridBoundColumn UniqueName="ProductName" EditFormColumnIndex="0" HeaderText="ProductName"

 

 

DataField="ProductName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="SKU" EditFormColumnIndex="0" HeaderText="SKU"

 

 

DataField="SKU">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="CreatedOn" EditFormColumnIndex="0"

 

 

HeaderText="Created Date" DataField="CreatedOn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="Active" EditFormColumnIndex="1" HeaderText="Active"

 

 

DataField="Active">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<EditFormSettings ColumnNumber="4" CaptionFormatString="Edit details for product: {0}"

 

 

CaptionDataField="ProductName">

 

 

<FormTableItemStyle Wrap="False"></FormTableItemStyle>

 

 

<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>

 

 

<FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" />

 

 

<FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"

 

 

Height="110px" Width="100%" />

 

 

<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>

 

 

<FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>

 

 

<EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">

 

 

</EditColumn>

 

 

<FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>

 

 

</EditFormSettings>

 

 

<ExpandCollapseColumn ButtonType="ImageButton" Visible="False" UniqueName="ExpandColumn">

 

 

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

 

 

</ExpandCollapseColumn>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

</

 

div>

 

</

 

asp:Content>


This is code behind code -

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Drawing;

 

 

 

 

 

 

 

 

 

using

 

System.Data;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

public

 

partial class Users_ProductList : System.Web.UI.Page

 

 

 

 

{

 

static DataTable dtProduct = null;

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!IsPostBack)

 

{

 

IList<TProduct> productlist = CacheHelper.edPortalService.GetProducts();

 

 

if (productlist != null && productlist.Count > 0)

 

dtProduct =

CollectionHelper.ConvertTo<TProduct>(productlist);

 

}

 

else

 

 

 

 

 

this.radGridProduct.MasterTableView.Items[1].Edit = true;

 

 

}

 

protected void radGridProduct_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.KeepInEditMode =

true;

 

e.ExceptionHandled =

true;

 

DisplayMessage(

true, "Product " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " cannot be updated. Reason: " + e.Exception.Message);

 

}

 

else

 

 

 

 

{

DisplayMessage(

false, "Product " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " updated");

 

}

}

 

protected void radGridProduct_ItemInserted(object source, GridInsertedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.ExceptionHandled =

true;

 

e.KeepInInsertMode =

true;

 

DisplayMessage(

true, "Product cannot be inserted. Reason: " + e.Exception.Message);

 

}

 

else

 

 

 

 

{

DisplayMessage(

false, "Product inserted");

 

}

}

 

private void DisplayMessage(bool isError, string text)

 

{

 

this.Label1.Font.Bold = true;

 

 

this.Label1.Visible = true;

 

 

if (isError)

 

{

 

this.Label1.ForeColor = Color.Red;

 

}

 

else

 

 

 

 

{

 

this.Label1.ForeColor = Color.Green;

 

}

 

this.Label1.Text = text;

 

}

 

protected void radGridProduct_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

BindProductGrid();

}

 

private void BindProductGrid()

 

{

 

if (dtProduct != null && dtProduct.Rows.Count > 0)

 

radGridProduct.DataSource = dtProduct;

}

 

 

protected void radGridProduct_PreRender(object sender, System.EventArgs e)

 

{

 

// if (!this.IsPostBack)

 

 

 

 

 

// {

 

 

 

 

 

// this.radGridProduct.MasterTableView.Items[1].Edit = true;

 

 

 

 

 

// this.radGridProduct.MasterTableView.Rebind();

 

 

 

 

 

// }

 

 

 

 

}

}


can someone help me where i am lacking as my update link is not working and even while i click on cancel link for any row then it always open second row in grid for cancel .

Any suggestion.

Mahen
Top achievements
Rank 1
 answered on 29 Jun 2009
3 answers
86 views
I have no better way to explain this than by showing screenshots.  The following screenshots were all taken from the same page - same RadScheduler control - Default Vista skin:

IE8 Sucks:
Screenshot

Firefox 3.0.11 Rocks
Screenshot

Safari 4.0 (530.17) Rocks
Screenshot



Google Chrome 2.0.172.33 Rocks
Screenshot




Any thoughts?
Mark
Top achievements
Rank 2
 answered on 29 Jun 2009
4 answers
337 views
To All,
i am currently using Rad Context menu in The RAD Grid.

IN the Grid Depending upon the value i want to show some different text on the context menu.lets say in a grid we have a 3 different row.
1 for a Folder name "Master" inthat i want see "Delete" and "Rename" in the context menu
2 for a Folder name "Working" inthat i want see "Create folder in the context menu
3 for a file i want to see  "Properties" and "Download"

How can i do this?i am currently using ASP.NET 2008.

Thanks
Denny
Denny
Top achievements
Rank 1
 answered on 29 Jun 2009
6 answers
564 views
I've been working on and and searching the forums concerning showing the dropdown of the combobox after the server-side TextChanged event has fired.  It has turned out to be trickier than I originally thought.  Is there an easy to do this that I'm overlooking?
David
Top achievements
Rank 1
 answered on 29 Jun 2009
2 answers
105 views
Hi,
I am using the new version of Telerik RadCombox (2009-Telerik.Web.UI) in my application.
I have the list of values and their respective description populated in RadCombox.
Everything works fine but the issue is I also have the same values in my list.

eg:RadComboBoxItem

 

( "A","01")
    RadComboBoxItem( "B","01")    
    RadComboBoxItem( "C","12")
    RadComboBoxItem( "C","13")
So when I change the selected Item from Item1 to Item 2 where the Value is same in the RadCombox the Selected Index Changed event does not fire. It works fine for the item which have different values.

I did not have this problem in the earlier version.

Thank you,
Raghavendra.

Raghavendra
Top achievements
Rank 1
 answered on 29 Jun 2009
0 answers
60 views
Hi,

I have followed many of your post to achieve the scheduler fill the pan that I'm using,
It is working well in IE (Ajax On/Off) and in Fire Fox when Ajax is disable

But when turning Ajax on in Fire Fox the vertical scroll bar doesn't work

Also see how it loaded small and then expand...

You can see it here
http://80.179.90.69/telerik

User: telerik
Pass: telerik

Please advise,
Mickey
Mickey
Top achievements
Rank 1
 asked on 29 Jun 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?