Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
174 views
Folks,

I am using RadControls for ASP.NET AJAX Q2 2009 SP1 with Visual Studio 2008 SP1, IE7 and WinXP SP3. 

I am using Form Template. I have a Rad Combo Box Template Column name Budget that is Decimal Type. My question is that how do I capture the value of that Template column in RadGrid1_UpdateCommand?  Basically In RadGrid1_UpdateCommand, I want to store the Value of Template Column Budget into SqlDataSource4.UpdateParameters["Budget "].DefaultValue .

I know how to capture the Template value if it is string type based on below post from Shinu. But I am having some difficulty to retrieve the Decimal Data Type Value. 


Shinu's Post:

http://www.telerik.com/community/forums/aspnet-ajax/combobox/how-to-capture-radcombo-selected-items-from-multicolumn-radcombo.aspx

Below is my code. Any help will be appreciated. Thanks..

GC_0620

 <DetailTables> 
<telerik:GridTableView runat="server" DataSourceID="SqlDataSource4" DataKeyNames="JobPersonID"   
            ShowHeader ="true" Width="100%"  CommandItemDisplay= "TopAndBottom" Name = "Detail"       
            AllowAutomaticDeletes="true" AllowAutomaticInserts="true" onupdatecommand="RadGrid1_UpdateCommand"    
            AllowAutomaticUpdates="true" BorderColor="#BC9A10" GridLines="None">  
                <ParentTableRelation>   
                <telerik:GridRelationFields DetailKeyField="PersonId" MasterKeyField="PersonTableID" /> 
                     
                 </ParentTableRelation> 
                   
            <RowIndicatorColumn> 
      
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn > 
                <HeaderStyle Width="20px" ForeColor="Aqua" /> 
            </ExpandCollapseColumn> 
              
 
            <Columns> 
             
            ''''  
        <telerik:GridBoundColumn DataField="PositionControlNum" HeaderText="Position Control#" HeaderStyle-Width="50%"   
            SortExpression="PositionControlNum" UniqueName="PositionControlNum" > 
<HeaderStyle Width="50%"></HeaderStyle> 
        </telerik:GridBoundColumn> 
        ''''  
              
               
    </Columns> 
      
   <EditFormSettings EditFormType="Template">  
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
    <FormTemplate> 
    <table id="Table1a" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" 
                            style="border-collapse: collapse; background: white;">  
                            <tr class="EditFormHeader">  
                                <td colspan="2">  
                                <asp:Label ID="UserJobLabel"   
                                CssClass="form-local_Headers"  runat="server" Text="User Job Details"   
                                                      
        Font-Underline="True"    
               ></asp:Label>    
                                  </td> 
                            </tr> 
                           <tr> 
                           
                                <td> 
                                </td> 
                                <tr> 
                                    <td> 
                                                Position Control#</td> 
                                              
                                    <td> 
                                           <telerik:RadComboBox ID="RadComboBoxPositionControl" runat="server"   
                                            DataSourceID="SqlDataSource5" DataTextField="PositionControlNum" DataValueField="PositionControlNum"   
                                            DropDownWidth="599px" Height="110px" HighlightTemplatedItems="true"   
                                            MarkFirstMatch="true"   
                                           SelectedValue='<%#Bind("PositionControlNum") %>' Width="600px"   
                                              
                                            > 
                                            <HeaderTemplate> 
                                                <table cellpadding="0" cellspacing="0" style="width: 565px">  
                                                    <tr> 
                                                        <td style="width: 105px;">  
                                                            Position Control#</td> 
                                                         
                                      
                                            <td style="width: 75px;">  
                                                            Budget</td> 
                                                            ''  
                                                            ''      
                                                          
                                                    </tr> 
                                                </table> 
                                            </HeaderTemplate> 
                                            <ItemTemplate> 
                                                <table cellpadding="0" cellspacing="0" style="width: 565px">  
                                                    <tr> 
                                                      <td style="width: 105px;">  
 
                                                          <%# DataBinder.Eval(Container.DataItem, "PositionControlNum") %> 
                                                       </td> 
                                                      
                                                       <td style="width: 75px;">  
                                                       <%# DataBinder.Eval(Container.DataItem, "Budget", "{0:N2}")%> 
                                                           </td>   
                                                        ''  
                                                        ''  
                                                    </tr> 
                                                </table> 
                                            </ItemTemplate> 
                                                                                       
                                        </telerik:RadComboBox> 
                                         
                                    </td> 
                                  
                                      
                                                                      
                                                                          
                                <tr> 
                                    <td> 
                                    </td> 
                                    <td> 
                                    <asp:Label ID = "FormTemplate_Label" runat = "server"></asp:Label> 
                                    </td> 
                                    <td> 
                                     
                                    </td> 
                                    <td align="right" colspan="2">  
                                        <asp:Button ID="btnUpdate" runat="server" CssClass="form-button"   
                                            CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'   
                                            Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'   
                                           /> 
                                        &nbsp;  
                                        <asp:Button ID="btnCancel" runat="server" CausesValidation="False" CssClass="form-button"   
                                            CommandName="Cancel" Text="Cancel" /> 
                                    </td> 
                                </tr> 
                           
                           </tr> 
                        </table> 
      
    </FormTemplate> 
    </EditFormSettings> 
      
        </telerik:GridTableView> 
 <DetailTables> 
 
''''  
 
<asp:SqlDataSource ID="SqlDataSource4" runat="server"   
           ConnectionString="<%$ ConnectionStrings:My_AuthorizationConnectionString %>"   
             
           SelectCommand=" ...." 
           DeleteCommand="..."   
           InsertCommand="..." 
             
           UpdateCommand="..." 
            <UpdateParameters> 
              
                <asp:Parameter Name="PositionControlNum" Type="String" /> 
                <asp:Parameter Name="Budget" Type="Decimal" /> 
                ''''  
            </UpdateParameters> 
            <InsertParameters> 
        ''''  
              
            </InsertParameters> 
       </asp:SqlDataSource> 

Yavor
Telerik team
 answered on 29 Jan 2010
1 answer
131 views
Hi I am using the following for two controls I want to submit the value to sql db

nonqueryCommand.Parameters.Add(

"@jobStart", SqlDbType.SmallDateTime)

 

nonqueryCommand.Parameters.Add(

"@jobEnd", SqlDbType.DateTime)

 


nonqueryCommand.Parameters(

"@jobStart").Value = RadDateJobStart.SelectedDate.Value

 

nonqueryCommand.Parameters(

"@jobEnd").Value = RadDateJobEnd.SelectedDate.Value

the entries in the db are empty ?? what am I missing

 

Tsvetoslav
Telerik team
 answered on 29 Jan 2010
4 answers
513 views
Hi,

I have a requirement to change datetime format from mm/dd/yyyy to yyyy-mm-dd in filter textbox (not the data value).
I am using

datetimeColumn.DataFormatString =

"{0:yyyy-MM-dd}";

but looks like only data value format has changed and filter textbox data format is still MM-dd-yyyy after selecting date from calendar control.

Any idea to fix this.

Thanks,
Sam

 

Yavor
Telerik team
 answered on 29 Jan 2010
1 answer
347 views
I have some projects which are based on Telerik 2008 with some custom skins, and I still have to support that. I recently have a new project and I am going to use the latest version, I just want to confirm whether it is possible? 
Shinu
Top achievements
Rank 2
 answered on 29 Jan 2010
2 answers
206 views
I am having trouble opening a RadWindow using server code.  I have to set Session variables before the window is open, so I have to open it in server code.  The server code worked with a regular window, but not with RadWindow.  I have tried all of the techniques listed below (I replaced url with [path] & window name with [name]):

popupScript =

"<script>var wnd = window.radopen(\"[path]\", \"[name]\");</script>";

Page.RegisterStartupScript(

"PopupScript", popupScript);

 


or:
[javascript]

function

 

OpenWindow(name) {

 

 

var wnd = window.radopen([path], [name]);

 

 

wnd.Maximize();

 

return false;

 

}
[c#]

 

popupScript =

"<script>OpenWindow('[name]');</script>";
Page.RegisterStartupScript("PopupScript", popupScript);

or:
popupScript = 'javascript:OpenWindow('[name]');:;
Page.RegisterStartupScript("PopupScript", popupScript);

I know that Page.RegisterStartupScript is considered obsolete, but it still works to open normal windows.  Is there something specific I would have to do to make a RadWindow able to be opened in server code?

 

Georgi Tunev
Telerik team
 answered on 29 Jan 2010
1 answer
71 views

In my app I allow the users to choose a skin and it stores the choice in an application variable.


I am having trouble skinning the control in the edit form.

    Protected Sub rgTimeslips_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles rgTimeslips.ItemCommand  
 
        If (e.CommandName = RadGrid.EditCommandName) Then  
            e.Item.OwnerTableView.EditFormSettings.CaptionFormatString = "Edit Time Slip" 
 
 
            Dim frmitem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)  
            Dim ddlreason As RadComboBox = DirectCast(frmitem.FindControl("ddlReason1"), RadComboBox)  
 
            ddlreason.Skin = Application("TelerikTheme")  
 
        End If  
 
 
    End Sub 

I get an error that says: 
Error Message: Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'.


Help please ?


Tsvetoslav
Telerik team
 answered on 29 Jan 2010
3 answers
159 views
We are using the grid with popup form to add/edit records (EditMode="PopUp").
Everything works find on the development server. But when we moved the application to the production, we got a problem with the popup form.

When user clicks on the corresponding "Edit" icon, then we got the following error:

 

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +58
   System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
   System.Reflection.Assembly.get_CodeBase() +35
   System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31
   System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +61
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +62
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +325
   System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +33
   System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +89
   System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +111
   System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

 
It looks like a security problem when the grid tries to get a script from the dll.
I tried different suggestions from the knoledgebase (web.config, WebResource.axd file, etc.), but nothing helped,

The strange thing is that the same version of application works fine on another server.
Unfortunately, the production versionis located on a shared server and we are quite limited in terms of IIS administration... 

Any suggestions to fix the problem?
 

 

 

Princy
Top achievements
Rank 2
 answered on 29 Jan 2010
1 answer
194 views

I've enabled the CDN support.

Unfortunately look at all the http request that get generated on one of my pages.
I used to have enable styles and javascript files set to true, but with the CDN, that's ignored.

Does the benefit of using a CDN outweigh the cost of making all these HTTP request?

# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Menu.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu.Default.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Splitter.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter.Vista.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/TreeView.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView.Default.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Window.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Window.Vista.css
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Core.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/jQuery.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/jQueryPlugins.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Scrolling/ScrollingScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Navigation/NavigationScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Menu/RadMenuScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Splitter/RadSplitterScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/TreeView/RadTreeViewScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Popup/PopupScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Animation/AnimationScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Window/RadWindow.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Window/RadWindowManager.js
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu/rmSprite.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu/rmVSprite.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/FirstNodeSpan.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/TopLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView/PlusMinus.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView/ItemSelectedBg.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/NodeSpan.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/MiddleLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/BottomLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/SingleLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter/ResizeBarVerticalSprites.gif
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter/ExpandCollapseBarsCommands.gif



sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 Jan 2010
3 answers
222 views
Could anyone help!
I have racked my brain trying to figure out how to refresh my grid on a radwindow close. It cannot be that complicated, but I just do not have the right combination.
My situation is a little different than the examples. I have looked at the demos:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
and all the posts, but here is my problem.

I have a Master page with an ajax manager. I then have a content page that I launch the RadWindow. The content page has a AjaxManagerProxy:
I have this part (The VB on the Content Page)
   Protected Sub RadAjaxManagerProxy1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)  
        Dim grid As Telerik.Web.UI.RadGrid = DirectCast(FindControl("RadMultiPage1").FindControl("PageSearch").FindControl("grdSearchRFS"), Telerik.Web.UI.RadGrid)  
        If e.Argument = "Rebind" Then 
            grid.MasterTableView.SortExpressions.Clear()  
            grid.MasterTableView.GroupByExpressions.Clear()  
            grid.Rebind()  
        ElseIf e.Argument = "RebindAndNavigate" Then 
            grid.MasterTableView.SortExpressions.Clear()  
            grid.MasterTableView.GroupByExpressions.Clear()  
            grid.MasterTableView.CurrentPageIndex = grid.MasterTableView.PageCount - 1  
            grid.Rebind()  
        End If 
    End Sub 
Now, I need to figure out how to use the Proxy on the content page to call it:

<

 

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

function refreshGrid(arg)  
            {  
             if(!arg)  
             {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");               
                }  
                else 
                {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");               
                }  
            }  
 

I assume I would use the above javascript to initiate the ajax proxy request, and on my radwindow, simply call it onClientClose:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="False" 
        VisibleStatusbar="False" Modal="True" Behaviors="Close, Resize, Move" Height="550px" 
        Width="1000px">  
        <Windows> 
            <telerik:RadWindow ID="CallDetails" runat="server" Left="" NavigateUrl="RFSDetail.aspx" 
                Height="550px" Width="1000px" Style="display: none;" Title="RFS Detail" Top="" 
                OnClientClose="refreshGrid">  
            </telerik:RadWindow> 
        </Windows> 
</telerik:RadWindowManager> 

But I cannot fiure out how to get the proxy manager to call the VB subroutine. There is not a 
 OnAjaxRequest="RadAjaxManager1_AjaxRequest" for a AjaxProxy.

Does this make sense?
Is there anyone who would mind giving me a pointer? Surely this is used all the time!
Thanks,
~bg
GDPR_erased
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
416 views
Folks

- Environment VS 2008 SP1, RadControls for ASP.NET AJAX Q3 2009 SP1,  WIN XP SP2, IE7.

I have a small Radgrid with 2 columns. I would like to know how to hide delete commanditem template link button while selecting certian rows in GridView.  For example if I am selecting  customer id's: "ANTON" or "BOLID", that delete link button should auto hide and I am selecting any other customer's that delete link button should be visibile/unhide.

Below is my code and attached is the screen printout of Grid Data Source.  Thanks

GC_0620

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
      
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
        </telerik:RadScriptManager> 
      
    </div> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
        ConnectionString="<%$ ConnectionStrings:NwindConnectionString %>"   
        DeleteCommand="DELETE FROM [Customers] WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))"   
        InsertCommand="INSERT INTO [Customers] ([CustomerID], [CompanyName]) VALUES (?, ?)"   
        ProviderName="<%$ ConnectionStrings:NwindConnectionString.ProviderName %>"   
        SelectCommand="SELECT CustomerID, CompanyName, postalcODE FROM Customers  where  LEFT(CustomerID,2) &lt;= &quot;CB&quot; ORDER BY CustomerID"   
          
          
        UpdateCommand="UPDATE [Customers] SET [CompanyName] = ? WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))">  
        <DeleteParameters> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="CompanyName" Type="String" /> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
            <asp:Parameter Name="CompanyName" Type="String" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"   
        GridLines="None" AllowPaging="True" AllowSorting="True">  
<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay= "TopAndBottom"    
            AutoGenerateColumns="False" DataKeyNames="CustomerID">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="CustomerID" DefaultInsertValue=""   
            HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID"   
            UniqueName="CustomerID">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CompanyName" DefaultInsertValue=""   
            HeaderText="CompanyName" SortExpression="CompanyName" UniqueName="CompanyName">  
        </telerik:GridBoundColumn> 
    </Columns> 
<CommandItemTemplate> 
 <div style="padding: 5px 5px;">  
                        Custom command item template for Grid: &nbsp;&nbsp;&nbsp;&nbsp;  
                        <asp:linkbutton id="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Edit selected</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" /> Update</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Cancel editing</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" /> Add new</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" /> Add this </asp:LinkButton>&nbsp;&nbsp;  
<asp:linkbutton id="LinkButton1" OnClientClick="javascript:return confirm('Delete selected?')" 
runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" /> Delete selected Jobs</asp:LinkButton>&nbsp;&nbsp;  
                        
                        
                    </div> 
                </CommandItemTemplate> 
</MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
    </form> 
</body> 
</html> 
 

 
gc_0620
Top achievements
Rank 1
 answered on 28 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?