Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
153 views
Hi. First off, thank you for taking the time to read this/help me.

I've designed a website/system that use the latest telerik controls.

I have a page that contains a tabstrip and a multipage.

I dynamically populate the tabstrip and multipage via VB code from an SQL DB/Table.

I have many user control pages (.ascx) that are added to the multipage via code and the multipage's PageViewCreated event.  

For this question's purpose, lets call each tab Tab1, Tab2, etc. and each user control page Tab1.ascx, Tab2.ascx, etc.

In each user control .ascx page, I have a page_load event that executes a global "TextFill()" function that finds all Label controls on the user control page and sets the .text, .font, etc. properties from an SQL database table.  The function's argument is of type UserControl so is called with Me (i.e. TextFill(Me) ), this is how it knows what label controls to find, lookup and populate.

Hope this all makes sense so far.

This process works fine but NOT for the first visit to the web app  (The first/default view of the tabstrip/multipage.).

I.e. the first time you go to my custom app, the tabstrip is dynamically populated and defaults to Tab1 selected with Tab1.ascx showing as the sub-content.  The sub-content does not have the properties applied from the global TextFill() function.

If I click to Tab2, it now works.  Tab2 sub-content has the labels all updated from the TextFill() function.

Then if I click back to Tab1, THAT one now works (the labels are all updated).

How can I make that TextFill() function in the user control page's Load event fire when the tabstrip/multipage is FIRST dynamically populated/viewed ?

I tried putting the TextFill() function in different events of the user control page (i.e. PreRender, etc.). but no luck.

If I could just get that Tab1.ascx to force update or load again after the first visit to the site.

Any ideas?

Again, I hope I explained all of this good enough.

Thank you very much.
Alex Lawson
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
193 views
I have an ObjectDataSource which call the BLL / DAL function to retrieve data from the database. I bind this datasource with an ASP.NET Gridview, and it's working perfectly fine, including the sorting. However, when I try to bind it to RadGrid, the column is not sorted as expected. It only sorts the data in descending order. I browsed through this forum, and found a suggestion to set the AllowNaturalSort property to false, but it's still not working. What's wrong here?

OBJECT DATASROUCE:
<asp:ObjectDataSource ID="odsSubscriptionDetails" runat="server" SelectMethod="GetReportByExpiryDate"
        TypeName="BLL.Subscription.Subscription" SortParameterName="sortExpression">
        <SelectParameters>
            <asp:Parameter Name="startDate" Type="DateTime" />
            <asp:Parameter Name="endDate" Type="DateTime" />
            <asp:Parameter Name="sortExpression" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

ASP.NET GRIDVIEW:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
                AllowSorting="True" AutoGenerateColumns="False"
                DataSourceID="odsSubscriptionDetails">
                <Columns>
                    <asp:BoundField DataField="SubscriberName" HeaderText="UserName"
                        SortExpression="SubscriberName" />
                    <asp:BoundField DataField="SubscriptionType" HeaderText="Type"
                        SortExpression="SubscriptionType" />
                    <asp:BoundField DataField="SubscriptionPeriod" HeaderText="Period"
                        SortExpression="SubscriptionPeriod" />
                    <asp:BoundField DataField="SubscriptionFees" HeaderText="Fees"
                        SortExpression="SubscriptionFees" />
                    <asp:BoundField DataField="StartDate" DataFormatString="{0:dd/MM/yyyy}"
                        HeaderText="StartDate" SortExpression="StartDate" />
                    <asp:BoundField DataField="EndDate" HeaderText="EndDate"
                        SortExpression="EndDate" />
                    <asp:BoundField DataField="SubscriptionStatusType" HeaderText="Status"
                        SortExpression="SubscriptionStatusType" />
                    <asp:BoundField DataField="CreateDate" HeaderText="CreateDate"
                        SortExpression="CreateDate" />
                    <asp:BoundField DataField="ProcessedByName" HeaderText="ProcessedBy"
                        SortExpression="ProcessedByName" />
                </Columns>
            </asp:GridView>

RADGRID:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
                AllowSorting="True" AutoGenerateColumns="False"
                DataSourceID="odsSubscriptionDetails" GridLines="None" Skin="Vista">
                <HeaderContextMenu>
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </HeaderContextMenu>
                <MasterTableView DataSourceID="odsSubscriptionDetails" AllowNaturalSort="false">
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridBoundColumn DataField="SubscriberName" HeaderText="UserName"
                            UniqueName="SubscriberName" SortExpression="SubscriberName">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SubscriptionType"
                            HeaderText="Type" UniqueName="SubscriptionType"
                            SortExpression="SubscriptionType">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SubscriptionPeriod"
                            HeaderText="Period" SortExpression="SubscriptionPeriod"
                            UniqueName="SubscriptionPeriod">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SubscriptionFees"
                            HeaderText="Fees" SortExpression="SubscriptionFees"
                            UniqueName="SubscriptionFees" DataType="System.Int64">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="StartDate" HeaderText="StartDate"
                            SortExpression="StartDate" UniqueName="StartDate" DataType="System.DateTime">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EndDate" HeaderText="EndDate"
                            SortExpression="EndDate" UniqueName="EndDate" DataType="System.DateTime">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SubscriptionStatusType"
                            HeaderText="Status" SortExpression="SubscriptionStatusType"
                            UniqueName="SubscriptionStatusType">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CreateDate" DataType="System.DateTime"
                            HeaderText="CreateDate" SortExpression="CreateDate" UniqueName="CreateDate">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ProcessedByName"
                            HeaderText="ProcessedBy" SortExpression="ProcessedByName"
                            UniqueName="ProcessedByName">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
                <FilterMenu>
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>

DAL:
CLASS: Subscription
Public Overrides Function GetReportByExpiryDate(ByVal startDate As Date, ByVal endDate As Date, ByVal pageIndex As Integer, ByVal pageSize As Integer, ByVal sortParameter As String) As System.Collections.Generic.List(Of SubscriptionDetails)

            Dim sortColumn As String = String.Empty
            Dim sortDirection As String = String.Empty
            'Call Function to get the sortColumn
            sortColumn = ProcessSortParameter(sortParameter)(0)
            'Call Function to get the sortDirection (ASC / DESC)
            sortDirection = ProcessSortParameter(sortParameter)(1)

            Using cn As New SqlConnection(Me.ConnectionString)
                Dim cmd As New SqlCommand("CMS.uspSubscriptionDetails_GetInfo_ExpiryDate", cn)
                cmd.CommandType = CommandType.StoredProcedure
                cmd.Parameters.Add("@StartDate", SqlDbType.SmallDateTime).Value = startDate
                cmd.Parameters.Add("@EndDate", SqlDbType.SmallDateTime).Value = endDate
                cmd.Parameters.Add("@PageIndex", SqlDbType.Int).Value = pageIndex
                cmd.Parameters.Add("@PageSize", SqlDbType.Int).Value = pageSize
                cmd.Parameters.Add("@SortParameter", SqlDbType.VarChar).Value = sortColumn
                cmd.Parameters.Add("@SortDirection", SqlDbType.VarChar).Value = sortDirection
                cn.Open()
                Return GetSubscriptionCollectionFromReader(ExecuteReader(cmd))
            End Using
        End Function



Jon
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
195 views
In reference to this live demo (http://localhost:4519/radcontrols_aspnetajax/panelbar/examples/applicationscenarios/slidingpanelbar/defaultcs.aspx), can you tell me the correct (java) method for hiding the panelbar upon the mouse leaving the panelbar control instead of the toolbox image? The closest example I could find was the following thread: http://www.telerik.com/community/forums/aspnet-ajax/menu/how-to-show-hide-menu-on-mouseover-and-mouseout.aspx. With other attempts, I have been able to hide the control on blur of individual panelbar items or header items, but not the entire control, itself.

Thank you for your help!

Kind Regards,

Aaron T. Jessen

<

 

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

<

 

 

head runat="server">

 

 

 

 

<title></title>

 

 

 

 <style type="text/css">

 

 

body {
margin: 0;

 

 

 

 

padding: 0;

 

 

}

 

 

.style1

 

 

 

{

 

 

 

width: 134px;

 

 }

 

 

 

.leftPanelBarContainer

 

 

 

{

 

float: left;

 

 

 

 

width: 260px;

 

 

 

 

height: 260px;

 

 

 

 

overflow: auto;

 

 

 

 

position: relative; /* Required to workaround IE rendering bug*/

 

 

 

}

 

.RadPanelBar, .RadPanelBar .rpSlide, .RadPanelBar .rpGroup, .RadPanelBar .rpTemplate

 

 

 

{

 

overflow: visible !important;

 

}

 

 

 

div.RadPanelBar .rpLevel1 .rpItem

 

 

 

{

 

padding: 0;

 

}

 

 

 

* html .RadPanelBar .RadMenu ul.rmRootGroup

 

 

 

{

 

zoom: 1;

 

}

 

 

 

div.RadMenu .rmRootGroup

 

 

 

{

 

border: 0;

 

}

 

 

 

div.RadMenu .rmLink

 

 

 

{

 

float: none;

 

}

 

 

 

</style>

 

</

 

 

 

head>

 

<

 

 

 

body>

 

 

 

 

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

 

 

<div>

 

 

 

<telerik:RadScriptManager ID="ScriptManager" runat="server" />

 

 

 

<table cellpadding="0" cellspacing="0" width="100%" style="height: 10px">

 

 

 

<tr>

 

 

 

<td id="headCell" runat="server" align="left" valign="top" style="height: 10px;">

 

 

 

<uc2:default ID="header" runat="server" />

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

<asp:Label ID="lblHeader" runat="server" CssClass="standardtextsmall" Font-Bold="False"></asp:Label>

 

 

 

<asp:ImageButton runat="server" ID="tbimage" ImageUrl="~/images/general/toolbox.gif"

 

 

 

Style="float: left; outline: 0; width: 21px" />

 

 

 

<div class="leftPanelBarContainer">

 

 

 

<div id="slidingDiv" style="visibility: hidden">

 

 

 

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Height="250px" ExpandMode="FullExpandedItem" OnClientMouseOut="hidepanelbar">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">

 

 

 

<Items>

 

 

 

<telerik:RadPanelItem Text="RadComboBox" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/ComboboxPr.gif">

 

 

 

</telerik:RadPanelItem>

 

 

 

<telerik:RadPanelItem Text="RadMenu" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/MenuPr.gif">

 

 

 

</telerik:RadPanelItem>

 

 

 

<telerik:RadPanelItem Text="RadTabStrip" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/TabstripPr.gif">

 

 

 

</telerik:RadPanelItem>

 

 

 

<telerik:RadPanelItem Text="RadPanelBar" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/PanelBarPr.gif">

 

 

 

</telerik:RadPanelItem>

 

 

 

 

 

<telerik:RadPanelItem Text="RadTreeView" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/TreeviewPr.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="RadToolBar" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/ToolbarPr.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="RadChart" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/ChartPr.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="WinForms controls">

 

 

 

 

<Items>

 

 

 

 

<telerik:RadPanelItem Text="RadComboBox" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/Combobox_Win.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="RadDock" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/Dock_Win.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="RadGridView" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/RadGrid.bmp">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="RadTabStrip" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/Tabstrip_Win.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="Other projects">

 

 

 

 

<Items>

 

 

 

 

<telerik:RadPanelItem Text="SiteFinity" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/st.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

<telerik:RadPanelItem Text="Reporting" ImageUrl="http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/slidingpanelbar/img/report.gif">

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadPanelItem>

 

 

 

 

</Items>

 

 

 

 

</telerik:RadPanelBar>

 

 

 

 

</div>

 

 

 

 

</div>

 

 

 

 

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

 

 

 

 

<script type="text/javascript">

 

 

 

 

var panelDomElement = $get('<%=RadPanelBar1.ClientID %>');

 

 

 

 

var timage = $get('<%= tbimage.ClientID %>');

 

 

 

 

if (panelDomElement) {

 

 

 

 

//SetUpAnimation(panelDomElement, Telerik.Web.UI.jSlideDirection.Right, panelDomElement);

 

 

 

SetUpAnimation(timage.id, Telerik.Web.UI.jSlideDirection.Right, panelDomElement);

}

 

function SetUpAnimation(image, direction, element) {

 

element.style.position =

 

 

"relative";

 

 

 

 

var slider = document.getElementById(image);

 

 

 

 

var expanded = false;

 

 

 

 

var expandAnimation = new Telerik.Web.UI.AnimationSettings({});

 

 

 

 

var collapseAnimation = new Telerik.Web.UI.AnimationSettings({});

 

 

 

 

var slide = new Telerik.Web.UI.jSlide(element, expandAnimation, collapseAnimation, false);

 

slide.initialize();

slide.set_direction(direction);

slider.onmouseover =

 

 

function() {

 

element.parentNode.style.visibility =

 

 

"visible";

 

element.parentNode.style.display =

 

 

"block";

 

 

 

 

if (!expanded) {

 

slide.expand();

}

 

 

 

else {

 

slide.collapse();

}

expanded = !expanded;

 

 

 

return false;

 

}

}

 

 

 

function markItem(sender, args) {

 

 

 

 

// var attributes = args.get_item().get_attributes();

// attributes.setAttribute("visited", "true");

}

 

function hidepanelbar(e) {

 

 

 

// var panelbar = $find("<%= RadPanelbar1.ClientID %>");

// if ((!e.toElement) || (!$telerik.isDescendantOrSelf(panelbar.get_childListElement(), e.toElement))) {

// panelbar.hide();

// }

}

 

function hidepanel(sender, args) {

 

 

 

 

//var panel = $find("<%= RadPanelBar1.ClientID %>");

 

 

 

 

//panel.get_element().style.display = "none";

 

 

 

}

 

 

 

</script>

 

 

 

 

</telerik:RadCodeBlock>

 

 

 

 

</div>

 

 

 

 

</div> </div>

 

 

 

 

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

 

 

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="dropMachineType">

 

 

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="dropModel" />

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="headCell">

 

 

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="lblHeader"></telerik:AjaxUpdatedControl>

 

 

 

 

</UpdatedControls>

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

</form>

 

</

 

 

 

body>

 

</

 

 

 

html>

 

 

 

Paul
Telerik team
 answered on 19 Jun 2009
5 answers
829 views

Just an observation but it seems slightly unusual that the width property of the RadNumericTextBox control includes the Label. I might be slow but it took me a while to realise why all my inputs were so teeny.

Including a labelwidth property or just leaving it to the LabelCssClass to set in my head makes more sense.

Just my 2 cents!
Dimo
Telerik team
 answered on 19 Jun 2009
1 answer
120 views
Hi
      I am have been trying to implement the "My portal " functionality as a user control. So i have a user control call master dock control. ascx in which i m calling the exchangerates.ascx. This entrire control is being rendered inside a sliding rad pane.  Well when i click submit on the exchange rate submit button it is creating an ugly poastback. However if i set the content page url of the pane to an aspx page on which i call this  call master dock control. ascx then it works fine.  Could you provide me any feedback on this...



Rwegards,
Ajit
Pero
Telerik team
 answered on 19 Jun 2009
3 answers
154 views
Hi,

I have a calendar date picker control which the user can select a single date from or multiple dates.

Is it possible to render particular dates as read only so that the user is unable to select those dates?  I'd like to be able to pass either a date or range of dates to the date picker which the user will be unable to select.

Thanks.
Princy
Top achievements
Rank 2
 answered on 19 Jun 2009
1 answer
122 views
Hello,
i try to modify your sample : "http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx" for using radajaxmanager but in some case i receiv this error:
Errore di run-time di Microsoft JScript: 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.'.

thanks.
Giovanni
Pero
Telerik team
 answered on 19 Jun 2009
2 answers
129 views
Hi ,
       When we click AddNew Record , Add Mode goes to the begining of the RadGrid (First Row ) , Can this be made at the bottom of the RadGrid (Last Row)

Is it possible to achive this , kindly show me some samples ,Please

Thanks In advance

Regards
Vinodh
Vino
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
285 views

 

 

I've got the following code in place to check the GridClientSelectColumn from my code behind and it indeed fires and the check boxes are checked but when the page finally renders none of the check boxes are checked. I've tried both the ItemDataBound and the ItemCreated events and neither produce a different result. The following article is were I got my code: http://www.telerik.com/community/code-library/aspnet-ajax/grid/gridclientselectcolumn-select-all-rows-with-enabled-check-boxes-only.aspx


<
telerik:RadGrid ID="StepsGrid" runat="server" AllowSorting="True" EnableAJAX="true"

 

 

 

 

 

ClientSettings-Selecting-AllowRowSelect="true" GridLines="None" Skin="Sunset"

 

 

 

 

 

HeaderStyle-Wrap="false" AutoGenerateColumns="False"

 

 

 

 

 

AllowMultiRowSelection="true" onitemdatabound="StepsGrid_ItemDataBound"

 

 

onitemcreated="StepsGrid_ItemCreated">

 

 

 

 

 

<HeaderStyle Wrap="False"></HeaderStyle>

 

 

 

 

 

<ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">

 

 

 

 

 

<Selecting AllowRowSelect="true" />

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

<ItemStyle Wrap="False" />

 

 

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom" CellSpacing="-1" DataKeyNames="StepGuid">

 

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

<asp:Button CssClass="CustomButton" runat="server" ID="AddSteps" Text="Add Steps" OnClick="AddSteps_Click" />

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

 

 

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

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

<ExpandCollapseColumn Visible="False">

 

 

 

 

 

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

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

<EditItemStyle CssClass="GridEditStyle" />

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="StepGuid" DataField="StepGuid" HeaderText="StepGuid"

 

 

 

 

 

Visible="false" />

 

 

 

 

 

<telerik:GridClientSelectColumn ButtonType="ImageButton" UniqueName="SelectedCheckbox" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="Name" HeaderText="Name" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="Command" HeaderText="Command" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="ServerArguments" HeaderText="Server Arguments" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="WorkingDirectory" HeaderText="Working Directory" />

 

 

 

 

 

<telerik:GridBoundColumn DataField="CreateTime" HeaderText="CreateTime" ReadOnly="true" />

 

 

 

 

 

</Columns>

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

<EditColumn UniqueName="Edit1">

 

 

 

 

 

</EditColumn>

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

</telerik:RadGrid>

 

 

 

Code behind:

protected

 

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

 

{

 

// get the package guid for the current iteration

 

 

if (e.Item is GridDataItem)

 

{

 

DataRowView dataRow = (DataRowView)e.Item.DataItem;

 

 

GridDataItem item = (GridDataItem)e.Item;

 

 

CheckBox checkBox = (CheckBox)item["SelectedCheckbox"].Controls[0];

 

checkBox.Checked = (((

int)dataRow["Selected"]) == 1);

 

 

if (checkBox.Checked)

 

{

 

string t = "";

 

}

}

}

 

protected void StepsGrid_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

// get the package guid for the current iteration

 

 

if (e.Item is GridDataItem)

 

{

 

DataRowView dataRow = (DataRowView)e.Item.DataItem;

 

 

GridDataItem item = (GridDataItem)e.Item;

 

 

CheckBox checkBox = (CheckBox)item["SelectedCheckbox"].Controls[0];

 

checkBox.Checked = (((

int)dataRow["Selected"]) == 1);

 

 

if (checkBox.Checked)

 

{

 

string t = "";

 

}

}

Joey
Top achievements
Rank 1
 answered on 19 Jun 2009
1 answer
50 views
how can i not display the add and delete buttons for adding or deleting additional file input fields?
Shinu
Top achievements
Rank 2
 answered on 19 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?