Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
100 views
Hi,
I have an issue I am using grid client select column for selecting rows in a grid.
Scenario :
    Upon mouse over on the select all box at top left, the cursur changes to  4 way pointed arrow

How can we change the symbol back to pointed arrow symbol
Thanks,
A2H
A2H
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
125 views
I need to upgrade from version 5.3.2.0 to 5.8.x and was looking at your instructions here:  http://www.telerik.com/help/aspnet-ajax/upgrade_to_a_newer_version_of_radeditor_for_moss.html

I am perplexed to say the least, in fact these instructions do not seem like something anyone would do.  Is there not a more direct, easy and straight forward way to upgrade this web part?  Or is this document out of date? 

I would NEVER want to remove all existing WebParts since they all might have content that users have posted.  Can you please provide me with the detailed instructions to upgrade without having to delete all the previous WebPart?  Once upgrade, all the previous WebPart hosuld use the new control, correct?  Otherwise I would have hours of extra work on my hands...right?

Stanimir
Telerik team
 answered on 20 Jul 2010
1 answer
130 views
Hi,

I am using CommandItemtemplate in radgrid. I want to update multiple rows as shown in this demo.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx

When I am trying to update multiple rows I am unable to update it. How to update mulltiple rows in editformtemplate.

Here is my code for single row update

<CommandItemTemplate>
                                <table>
                                    <tr>
                                        <td align="left">
                                            <b>Bulk Actions</b>    
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# rg200.EditIndexes.Count == 0 %>'><img  style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" />Edit selected</asp:LinkButton>
                                                
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# rg200.EditIndexes.Count >  0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" />Update</asp:LinkButton>
                                                
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" />Cancel editing</asp:LinkButton>
                                                
                                        </td>
                                        <td align="right">
                                            <img style="border: 0px; vertical-align: middle;" alt="" src="Images/AddRecord.gif" />
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'>Add New Record</asp:LinkButton>
                                                
                                        </td>
                                        <td align="right">
                                            <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Delete.gif" />
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')"
                                                runat="server" CommandName="DeleteSelected">Delete Selected</asp:LinkButton>
                                                
                                        </td>
                                        <td align="right">
                                            <img style="border: 0px; vertical-align: middle;" alt="" src="Images/Refresh.gif" />
                                        </td>
                                        <td align="left">
                                            <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind">Refresh</asp:LinkButton>
                                             
                                        </td>
</tr>
                                </table>
                            </CommandItemTemplate>


clsTaskUpdates_BL objBL = new clsTaskUpdates_BL();
GridEditableItem editedItem = e.Item as GridEditableItem;
 
string OrdID = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["orderId"].ToString();
string ClarifyAccountNbr = (editedItem.FindControl("TextBox1") as TextBox).Text;
string SiteID = (editedItem.FindControl("TextBox2") as TextBox).Text;
string QuoteID = (editedItem.FindControl("TextBox3") as TextBox).Text;
CheckBox chkEDP = (editedItem.FindControl("CheckBox1") as CheckBox);
try
{
    objBL.setTask200_Bl(OrdID, ClarifyAccountNbr, SiteID, QuoteID, chkEDP.Checked);
    Session["SearchRes"] = null;
    rg200.Rebind();
}
catch (Exception ex)
{
    rg200.Controls.Add(new LiteralControl("Unable to update Employee. Reason: " + ex.Message));
    e.Canceled = true;
}


when i am trying to update multiple rows with foreach  I am unable to update it.
if (e.CommandName == "UpdateEdited")
        {
            foreach (GridEditableItem editedItem in rg200.EditItems)
            {
                GridDataItem dataitem = editedItem as GridDataItem;
                clsTaskUpdates_BL objBL = new clsTaskUpdates_BL();
 
                string OrdID = editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["orderId"].ToString();
 
                string ClarifyAccountNbr = (editedItem.FindControl("TextBox1") as TextBox).Text;
                string SiteID = (editedItem.FindControl("TextBox2") as TextBox).Text;
                string QuoteID = (editedItem.FindControl("TextBox3") as TextBox).Text;
                CheckBox chkEDP = (editedItem.FindControl("CheckBox1") as CheckBox);
                try
                {
                    objBL.setTask200_Bl(OrdID, ClarifyAccountNbr, SiteID, QuoteID, chkEDP.Checked);
                    Session["SearchRes"] = null;
                    rg200.Rebind();
                }
                catch (Exception ex)
                {
                    rg200.Controls.Add(new LiteralControl("Unable to update Employee. Reason: " + ex.Message));
                    e.Canceled = true;
                }
                 
            }
        }


 I tried to use hashtable, but still i am getting older values. Please help me how to update multiple rows at a time.

This is my editformsettings code

<EditFormSettings EditFormType="Template">
                                <FormTemplate>
                                    <table id="Table1" cellspacing="1" cellpadding="1">
                                        <tr>
                                            <td>
                                                <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop"
                                                    SelectedIndex="0" MultiPageID="RadMultiPage1">
                                                    <Tabs>
                                                        <telerik:RadTab Text="Task Data" PageViewID="RadPageView1">
                                                        </telerik:RadTab>
                                                        <telerik:RadTab Text="Notes" PageViewID="RadPageView2">
                                                        </telerik:RadTab>
                                                    </Tabs>
                                                </telerik:RadTabStrip>
                                                <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                                                    <telerik:RadPageView runat="server" ID="RadPageView1">
                                                        <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">
                                                            <tr>
                                                                <td>
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Clarify Account Nbr:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval( "Clarify Account Nbr" ) %>'>
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Site ID:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval( "Site ID") %>' TabIndex="1">
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    Quote ID:
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval( "Quote ID") %>' TabIndex="2">
                                                                    </asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    EDP Created?:
                                                                </td>
                                                                <td>
                                                                    <asp:CheckBox ID="CheckBox1" runat="server" Text='<%# Eval( "EDP Created?") %>' TabIndex="3">
                                                                    </asp:CheckBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td align="right" colspan="2">
                                                                    <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                        runat="server" CommandName='Update'></asp:Button
                                                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                        CommandName="Cancel"></asp:Button>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </telerik:RadPageView>
                                                    <telerik:RadPageView runat="server" ID="RadPageView2">
                                                    </telerik:RadPageView>
                                                </telerik:RadMultiPage>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                            </EditFormSettings>


Thanks
Babu
Tsvetoslav
Telerik team
 answered on 20 Jul 2010
1 answer
400 views
Hi Experts,

   What is the purpose of below tag [ in web.config]  in  rad version 2010.2.713.35  application?
   Is this required tag  in 2010.2.713.35  application?
   Is this specific to rad controls or ASP.NET Ajax 3.5?
   Shall I run my web application [With rad controls v2010.2.713.35 and Ajax 3.5 ]  without this tag?

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>

Please any one help me.
Thanks in advance.

BalaMurugan J
Sebastian
Telerik team
 answered on 20 Jul 2010
2 answers
99 views
Anyone knows how can i change or navigate in Rad Grid change page (move to next page) using the keyboard cursor left or right
it must be on key press

Please help
sam
Top achievements
Rank 1
 answered on 20 Jul 2010
1 answer
92 views

Hi Telerik,

Have a few queries on the capability  of the RadGrid in the following scenarios

1. Can we restrict the user to do either Update or Insert. That is when a new row is added for Insert , the user cannot edit another row and vice versa?

2. Can we add multiple new rows at the same time instead of one by one?

Regards



Princy
Top achievements
Rank 2
 answered on 20 Jul 2010
1 answer
131 views

Please see attached snap, how can we change the text?

Thanks,
AY
Shinu
Top achievements
Rank 2
 answered on 20 Jul 2010
2 answers
88 views

Hello, i have a asp:ImageButton in a ItemTemplate with precedent version the command is fired in OnCommand and in OnItemCommand
with newest version the events of command does not fire.

I have to go back and reference Q1 2010 again.

Thanks a lot
Andrea



<

 

 

telerik:RadListView ID="listMenu" runat="server" ItemPlaceholderID="menuHolder" AllowPaging="true" OnItemDataBound="listMenu_ItemDataBound">

 

 

 

<LayoutTemplate>

 

 

 

<div class="menuContainer">

 

 

 

<asp:Panel ID="MenuPanel" runat="server">

 

 

 

<div class="menu">

 

 

 

<asp:PlaceHolder ID="menuHolder" runat="server"></asp:PlaceHolder>

 

 

 

</div>

 

 

 

</asp:Panel>

 

 

 

</div>

 

 

 

</LayoutTemplate>

 

 

 

<ItemTemplate>

 

 

 

<div class="category">

 

 

 

<div class="categoryHead">

 

<%

 

#Eval("CodiFunzione")%>

 

-

 

<span class="descFunzione">

 

<%

 

# Eval("DescFunzione") %></span></div>

 

 

 

<telerik:RadListView ID="listSubMenu" runat="server" ItemPlaceholderID="subMenuHolder" OnItemCommand="listSubMenuOnItemCommand">

 

 

 

<LayoutTemplate>

 

 

 

<asp:Panel ID="subMenuHolder" runat="server" />

 

 

 

</LayoutTemplate>

 

 

 

<ItemTemplate>

 

 

 

<div class="selected">

 

 

 

<div id="content">

 

 

 

<div class="Funzione">

 

 

 

<asp:ImageButton CssClass="imgFunzione" ID="btnMenuItem" runat="server" AlternateText='<%# Eval("DescFunzione") %>' ToolTip='<%# Eval("DescFunzione") %>'

 

 

 

CommandName="Redirect" OnCommand="btnMenuItemOnCommand" CommandArgument='<%# Eval("IdFunzione") %>'

 

 

 

ImageUrl='<%# String.Format("~/Common/Images/Menu/128/{0}", Eval("IconName").ToString()) %>' />

 

 

 

</div>

 

 

 

<div class="nomeFunzione">

 

<%

 

#Eval("CodiFunzione")%></div>

 

 

 

</div>

 

 

 

<div class="helpFunzione">

 

<%

 

#Eval("DescFunzione")%></div>

 

 

 

</div>

 

 

 

</ItemTemplate>

 

 

 

<ItemSeparatorTemplate>

 

 

 

</ItemSeparatorTemplate>

 

 

 

</telerik:RadListView>

 

 

 

</div>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadListView>

 

Andrea Del Brocco
Top achievements
Rank 1
 answered on 19 Jul 2010
2 answers
224 views
Hello i am using Rad Grid with automatic operations
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowSorting="True" DataSourceID="SqlDataSource1" GridLines="None" AutoGenerateDeleteColumn="True"
        AutoGenerateEditColumn="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
        Skin="Inox" AllowAutomaticDeletes="True" AllowMultiRowEdit="True"
        EnableHeaderContextMenu="True"  TableLayout="Fixed">


how can i add confirm button extender  RadGrid when user click on column delete  inside the RadGrid?
i want to display "Are you sure you want to delete this row or record? "

thanks for any help
sam
Top achievements
Rank 1
 answered on 19 Jul 2010
2 answers
332 views

Hi!

I have a RadGrid with two columns. The first one is a TemplateColumn and the second one a BoundColumn. When I click on the Edit hyperlink/button, a mini form appears below the row that I want to edit with a couple of Textboxes.

My problem is that in the TemplateColumn, I want to use a very short textbox in it's Edit Template, because that field stores only ONE character. BUT that TextBox appears centered, and I would like it on the left side of the Template.

Is there a way to do that?

And yes, I know that being only two fields I could use the InPlace value of the property EditMode, but I'd rather use the EditForms one ;)

Thanks a lot!
Carlos Contreras
Top achievements
Rank 1
 answered on 19 Jul 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?