Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
633 views
Hallo,
first of all congratulations for you suite, i find it to be the best asp.net suite ever!

I have the following problem,
i want the user to be able to perform multiple, concurrent edits in a radgrid and the update them all together.
I found a sample of yours regarding "batch update" which works perfect and i have set the AllowMultiRowEdit="True" so that the user can edit multiple rows.

The problem is that if a user begins editing one row, changes some data and THEN begins editing another row, although both of these rows will be in edit mode, all the changes before  the last "Edit" Command will be lost!

I have checked this with your samples too and they have the same malfunction ( or functionality :)  ).

I tried to get the existing data from the previous editing rows inside the RadGrid1_ItemDataBound event like this:

  
            if (e.Item is GridDataItem && e.Item.IsInEditMode) 
            { 
                GridEditableItem dataItem = e.Item as GridEditableItem; 
                dataItem["AutoGeneratedEditColumn"].Controls[0].Visible = false; 
 
                Hashtable newValues = new Hashtable(); 
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, dataItem); 
 
                string sPosition = (dataItem["Position"].Controls[0] as System.Web.UI.WebControls.TextBox).Text; 
            } 

Neither newValues nor sPosition has the changed values for the previously edited items.
They all have the original values.

Is there any workaround?

Thanks in advance!


Andrey
Telerik team
 answered on 18 Feb 2013
3 answers
214 views
Hi,

I have a Radgrid on a main page, that when a record is double clicked, a radwindow opens up to update a record. There is a radgrid inside the Radwindow that is opened. Inside the radgrid that is inside the radwindow, I can set a record to be inactive and only be visible to certain users.

The Radgrid in the main page has one DetailTable. This detail table displays the information from the radgrid inside the radwindow. I want those records that I set to inactive to NOT be visible in the Radgrid in the mainpage. Is there a way to do this?

URGENT!

I am working in vb.net
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2013
1 answer
57 views
does anyone have anything like this. Or how I would make something like it?

My clients like the one button click. I guess an alternative would be a combo box but that would require 2 clicks

Thanks,

Marty
Antonio Stoilkov
Telerik team
 answered on 18 Feb 2013
7 answers
375 views
Hi
We have facing rounded corner issues and padding in internet explorer.
Also legend color is different both IE and Moz ..not checked in Chrome yet. :(
Please refer the attachment.
Vargis
Top achievements
Rank 2
 answered on 18 Feb 2013
1 answer
74 views
Hi 

Telerik Grid return this filter :

(iif(Description == null, "", Description).ToString().Contains("2")) AND (CodeType = 2)

What is mean of "iif"?and if we can pass this filter to "SqlCommand where section"?

Telerik.Web.UI 2012.3.1205.45

Best Regards
Andrey
Telerik team
 answered on 18 Feb 2013
1 answer
106 views

 this is my codeblock
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadGrid, {"ClientID":"ctl00_ContentPlaceHolder1_ucExtendedInfo_grdComprehensiveParts","ClientSettings":{"AllowAutoScrollOnDragDrop":true,"ShouldCreateRows":true,"DataBinding":{},"Selecting":{"CellSelectionMode":0},"Scrolling":{},"Resizing":{},"ClientMessages":{},"KeyboardNavigationSettings":{"AllowActiveRowCycle":false,"EnableKeyboardShortcuts":true,"FocusKey":89,"InitInsertKey":73,"RebindKey":82,"ExitEditInsertModeKey":27,"UpdateInsertItemKey":13,"DeleteActiveRow":127,"ExpandDetailTableKey":39,"CollapseDetailTableKey":37},"Animation":{}},"Skin":"Default","UniqueID":"ctl00$ContentPlaceHolder1$ucExtendedInfo$grdComprehensiveParts","_activeRowIndex":"","_controlToFocus":"","_currentPageIndex":0,"_editIndexes":"[]","_embeddedSkin":true,"_gridTableViewsData":"[{\"ClientID\":\"ctl00_ContentPlaceHolder1_ucExtendedInfo_grdComprehensiveParts_ctl00\",\"UniqueID\":\"ctl00$ContentPlaceHolder1$ucExtendedInfo$grdComprehensiveParts$ctl00\",\"PageSize\":7,\"PageCount\":1,\"EditMode\":\"InPlace\",\"AllowPaging\":true,\"CurrentPageIndex\":0,\"VirtualItemCount\":0,\"AllowMultiColumnSorting\":false,\"AllowNaturalSort\":true,\"AllowFilteringByColumn\":false,\"PageButtonCount\":10,\"HasDetailTables\":false,\"HasMultiHeaders\":false,\"PagerAlwaysVisible\":false,\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"hasDetailItemTemplate\":false,\"_dataBindTemplates\":false,\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"rgSelectedRow\",\"_columnsData\":[{\"UniqueName\":\"EditCommandColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":false,\"Groupable\":false,\"ColumnType\":\"GridEditCommandColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"Display\":true},{\"UniqueName\":\"TemplateColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"TemplateColumn1\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"TemplateColumn2\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"TemplateColumn3\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"TemplateColumn4\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"TemplateColumn5\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":true,\"Groupable\":true,\"ColumnType\":\"GridTemplateColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"DataField\":\"\",\"Display\":true},{\"UniqueName\":\"DeleteColumn\",\"Resizable\":true,\"Reorderable\":true,\"Selectable\":false,\"Groupable\":false,\"ColumnType\":\"GridButtonColumn\",\"ColumnGroupName\":\"\",\"DataTypeName\":\"System.String\",\"ButtonType\":\"ImageButton\",\"CommandName\":\"Delete\",\"CommandArgument\":\"\",\"Text\":\"Delete\",\"DataTextField\":\"\",\"DataTextFormatString\":\"\",\"ImageUrl\":\"/Views/Vital Software Pty Ltd_files/Delete.gif\",\"Display\":true}]}]","_masterClientID":"ctl00_ContentPlaceHolder1_ucExtendedInfo_grdComprehensiveParts_ctl00","_shouldFocusOnPage":false,"allowMultiRowSelection":false,"clientStateFieldID":"ctl00_ContentPlaceHolder1_ucExtendedInfo_grdComprehensiveParts_ClientState"}, {"rowDblClick":RowDblClick1}, null, $get("ctl00_ContentPlaceHolder1_ucExtendedInfo_grdComprehensiveParts"));
});

  Getting error in IE browser as jscript:Rowdblclikc undefined except ie it is working fine in chrome and mozilla  browser,
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
    <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }
           </script>
</telerik:RadCodeBlock>
 
<ClientSettings>
                        <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
                    </ClientSettings>


Thanks in advance.
Antonio Stoilkov
Telerik team
 answered on 18 Feb 2013
1 answer
266 views
Question 1:

I have a radgrid, the key index id QuestionID (DataKeyNames="QuestionID"). I have a move Up and Down radbutton - template column.   I need to switch the order when click the move up and down. At my back table, there is a field ordernumber, everytime I click the Up/Down, I need to update the ordernumber in back db and rebind the grid.  Is there a way that I can find the previous row's QuestionID on "ItemCommand" server side when I click "Up" button so that I can update the ordernumber for previous row?

I am able to make this work on a grid without filter. Basic I get QuestionID from my QuestionList, but after after filtering of the grid, it doesn't work any more, since my  QuestionList still the original QuestionList, not the List after filtering. Not sure how to get the QuestionList on serverside after filtering.



Question 2:

I need hide one of the column when do the filtering, how I do that?

Thank you!
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2013
3 answers
212 views
Hi,

Do you have any examples on creating a custom footer?

I'm thinking of creating footer that have several labels like the below example

Qty Price Total
1 10.00 10.00
2 20.00 40.00
SubTotal: 50.00
Discount: <textbox here for user input>
Grand Total: <subtotal + discount>
Shinu
Top achievements
Rank 2
 answered on 18 Feb 2013
1 answer
64 views
Hi;
Please I need your help to lead me, I start to work with "RadScheduler Control"  but I need to synchronize information between the MS-Outlook and my RadScheduler, so how I can do that, I need your advice.
Thanks
Plamen
Telerik team
 answered on 18 Feb 2013
1 answer
177 views
Hi all

I create a grid and create some item template , but still can't remove a border or a separator

a screenshot is attached

and here is my code that attached too

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GamesArchive.ascx.cs" Inherits="Pages_Controls_Others_GamesArchive" %>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet"
    Width="800px" BorderColor="#180052">
    <br />
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" GridLines="None" MasterTableView-GridLines="None"
        AllowPaging="True" PageSize="10" CellSpacing="0" CellPadding="0" Skin="Web20" Width="800px"
        BackColor="#180052" BorderColor="#180052" BorderWidth="0" GroupingEnabled="False" ShowHeader="False">
        <MasterTableView DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <center>
                    <div style="Width: 700px; height: 123px;">
                        <div style="Width: 120px; height: 120px; float: left; border: red 1px solid;">
                            <center>
                                <asp:Image ID="Image10" runat="server" Height="120px" Width="120px" ImageUrl='<%# "~/Games/Picss/" + Eval("Game_Avatar")%>'></asp:Image>
                            </center>
                        </div>
                        <div style="Width: 100px; height: 120px; float: left;"><br /></div>
                        <div style="Width: 248px; height: 120px; float: left; border: red 1px solid;">
                            <center>
                                <br />
                                <asp:Label ID="Label12" runat="server" ForeColor="White" CssClass="FontNormalBold" Text='<%# Eval("Game_Title")%>'></asp:Label>
                                <br />
                                <asp:Label ID="Label1" runat="server" ForeColor="White" CssClass="FontNormal" Text='<%# "<B>Categroy: </b>" +  Eval("Game_Category")%>'></asp:Label>
                            </center>
                        </div>
                        <div style="Width: 100px; height: 120px; float: left;"><br /></div>
                        <div style="Width: 120px; height: 120px; float: left; border: red 1px solid;">
                            <center>
                                <br />
                                <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl='<%# "~/Pages/GamesView.aspx?id=" + Eval("Game_ID")%>'>
                                    <asp:Image ID="Image11" runat="server" Height="60px" ImageUrl="~/Pics/Icons/OthersIcons/Game.PNG"></asp:Image>
                                </asp:HyperLink>
                            </center>
                             <asp:Label ID="Label11" runat="server" CssClass="FontNormal" ForeColor="White" Text="Play Now"></asp:Label>
                        </div>
                    </div>
                </center>
            </ItemTemplate>
            
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
            </ExpandCollapseColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>


thanks in advance
Jayesh Goyani
Top achievements
Rank 2
 answered on 18 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?