Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
225 views
Hello,

I have a RadGrid with 3 rows. Each of these rows have some child rows. The users are able to expand as many of the rows as they want at 1 time. However, I noticed that if the user expands all 3 rows, and then decides to click "edit" for the first or second detail rows they expanded, then the detail row of the third row is actually opened in Edit Mode. For some reason, the RadGrid is taking the last item that was expanded and using that to decide which item to open in Edit Mode. I have attached files to illustrate what I mean.

In the 'expanded radgrid.png' file I expanded all of the rows of the RadGrid. This works fine. The issue appears when I click the pencil icon, the command name is Edit, for the detail row of the 1st item I expanded. This is shown in the 'expanded radgrid edit mode.png' file. Even though I clicked on the very first detail row of the first grid item, the first detail row of the grid item that was expanded last was really opened in edit mode. It also replaces the detail table underneath the 1st grid item with the detail table underneath the last grid item. This is shown in the 'expanded radgrid after edit mode.png' file.

Any help would be much appreciated. Please let me know if you need more information!

Thanks,
Casey
Radoslav
Telerik team
 answered on 21 May 2010
5 answers
196 views
Hello Telerik Team,

So, I'm implementing the new "Client edit with batch server update" (on the DEMO) (the version i'm using is "2010.1.309.35"). The thing is I'm using a RadGrid with nested view tables (juste one by item in the master table) and the edition is taking place only on the detail tables.
So the matter is I can't get the new information two storage it on BDD because I can't get the control (neither TextBox nor RadDatePicker or whathever control be).

I try this :

the markup
<div id="divRadGridVehicles" class="MaintenanceGrid"> 
                <telerik:RadGrid ID="RadGrid_Vehicles" runat="server"  
                    AllowPaging="True" 
                    oncolumncreated="RadGrid_Vehicles_ColumnCreated"  
                    onneeddatasource="RadGrid_Vehicles_NeedDataSource"  
                    ondetailtabledatabind="RadGrid_Vehicles_DetailTableDataBind"  
                    onitemcreated="RadGrid_Vehicles_ItemCreated"  
                    onitemdatabound="RadGrid_Vehicles_ItemDataBound" > 
                    <HeaderStyle Width="70px" HorizontalAlign="Center" Font-Bold="true" BorderWidth="1px" BorderColor="White"/> 
                    <ItemStyle HorizontalAlign="Center" /> 
                    <AlternatingItemStyle HorizontalAlign="Center" /> 
                    <MasterTableView EditMode="InPlace" 
                            CommandItemDisplay="Bottom" TableLayout="Fixed"> 
                            <NoRecordsTemplate> 
                                <div style="height: 30px; cursor: pointer;"> 
                                    No items to view</div> 
                            </NoRecordsTemplate>                                         
                            <CommandItemTemplate> 
                                 <div style="height: 30px; text-align: right;"> 
                                        <asp:Image ID="imgCancelChanges"  
                                            runat="server"  
                                            ImageUrl="~/App_Themes/Client/Images/Maintenance/cancel.gif" 
                                            AlternateText="Cancel changes"  
                                            ToolTip="Cancel changes"  
                                            Height="24px"  
                                            style="cursor: pointer; margin: 2px 5px 0px 0px;" onclick="CancelChanges();" /> 
                                        <asp:Image ID="imgProcessChanges"  
                                            runat="server"  
                                            ImageUrl="~/App_Themes/Client/Images/Maintenance/ok.gif" 
                                            AlternateText="Process changes"  
                                            ToolTip="Process changes"  
                                            Height="24px"  
                                            style="cursor: pointer; margin: 2px 5px 0px 0px;" onclick="ProcessChanges();" /> 
                                </div>  
                            </CommandItemTemplate> 
                        <DetailTables>                         
                            <telerik:GridTableView EditMode="InPlace" ClientDataKeyNames="ID, HM_ID" DataKeyNames="ID, HM_ID" >                                                                       
                            </telerik:GridTableView>                                                                                
                        </DetailTables>             
                    </MasterTableView> 
                    <ClientSettings> 
                        <ClientEvents OnRowCreated="RowCreated"  
                            OnRowClick="RowClick"  
                            OnCommand="Grids_Command"  
                            OnGridDestroying="GridDestroying" 
                            OnRowDropping="onRowDropping" /> 
                        <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" /> 
                        <Scrolling AllowScroll="True" />                 
                    </ClientSettings>                                  
                </telerik:RadGrid> 
            </div> 

the server side code:
protected void radAjax_AjaxRequest(object sender, AjaxRequestEventArgs e)  
    {         
                //this doesn't work (return null)-------------  
                //updatedItem = RadGrid_Vehicles.MasterTableView.DetailTables[Convert.ToInt32(hmId_detailTableIndex[1])].FindItemByKeyValue("HM_ID", int.Parse(hmId_detailTableIndex[0]));  
                string keyValue = hmId_detailTableIndex[0];  
  
//----------------------------------------------------  
// this return the row but it is impossible to find the controls ------------  
  
                GridTableView nestedTableView = (RadGrid_Vehicles.MasterTableView.Items[0] as GridDataItem).ChildItem.NestedTableViews[0];  
  
               string keyValue = hmId_detailTableIndex[0];  
  
                rowItem = nestedTableView.FindItemByKeyValue("ID", (object)int.Parse(keyValue));                 
  
                UpdateDetailVehicleValues(rowItem);              
    }  
  
protected void UpdateDetailVehicleValues(GridDataItem updatedItem)  
    {  
        TextBox txtBox = new TextBox();  
        RadDatePicker radDatePicker = new RadDatePicker();  
  
//It doesn't find the control  
  
        txtBox.Text = ((TextBox)updatedItem.FindControl("txtBox_HM_ID_" + (string)updatedItem["HM_ID"].Text)).Text;  
        radDatePicker.SelectedDate = ((RadDatePicker)updatedItem[""].Controls[1]).SelectedDate;  
  
        if (updatedItem["HM_ID"].Text != "")  
        {  
            managerClient.managerMaintenance.UpdateHistoryMaintenance(  
                Convert.ToInt32(updatedItem["HM_ID"].Text),  
                txtBox.Text,  
                Convert.ToDateTime(radDatePicker.SelectedDate));  
        }  
    }  
 
 

So, how can I proceed to find the controls and get the edited information?

Best wishes,

Santiago

Yavor
Telerik team
 answered on 21 May 2010
3 answers
207 views
I am trying to put the iCalendar export functionality 
http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultvb.aspx
into the Appointment context menu
http://demos.telerik.com/aspnet-ajax/scheduler/examples/contextmenu/defaultvb.aspx

Has anyone accomplished this yet and do they have a code snippet?

Thanks
Peter
Telerik team
 answered on 21 May 2010
4 answers
1.7K+ views
Hello,

I am trying to export a RadGrid to PDF. However, the text overlaps. I have used your RadGrid Export tips and tricks to resize the item cell but still the columns are more and therefore I need to export the grid to the pdf as a landscape. Please let me know how this can be achieved. Thank you.
Daniel
Telerik team
 answered on 21 May 2010
3 answers
114 views
We are using the version 7.3.4.0 of RadEditor.Net2.
When the page is loading, the Editor is shown, but after 2 seconds the toolbar of the editor disapears and IE is taking more than 50% of CPU usage. 

Thanks for the help in advance :)
Rumen
Telerik team
 answered on 21 May 2010
1 answer
144 views

For some reason, when I place the css style for a custom toolbar button image in an external css and reference that external css file either through an @Import or <link>, the button images don't show up. 

<head> 
   <style> 
      @import url(css/toolbar_images.css);  
   </style> 
   <link href="css/toolbar_images.css" type="text/css" rel="StyleSheet"></link>  
</head> 

But if I put the actual css styles inside the aspx document in a <style> element, the images show up.  Is this a known issue?

<head> 
    <style> 
        .reTool .AlignmentOptions  
        {  
            background-image: url(img/justify_left.gif);  
            background-position: center !important;  
            background-repeat: no-repeat !important;  
        }  
 
        .reTool .InsertTimeOptions  
        {  
            background-image: url(img/insert_time.gif);  
            background-position: center !important;  
            background-repeat: no-repeat !important;  
        }  
    </style> 
</head> 
Rumen
Telerik team
 answered on 21 May 2010
1 answer
73 views
Hi,

When I overwrite the image the imagepreview is not updated, why?

Best Regards

Giuseppe
Fiko
Telerik team
 answered on 21 May 2010
7 answers
265 views
Hi,
Have You got pl-PL (Polish) localization files for Editor and other controlls?
Regards,
Tomek
Rumen
Telerik team
 answered on 21 May 2010
1 answer
139 views
I am using AsyncUpload and it often works.  However it also frequently just stops uploading.  The progress bar stops moving, the numbers stop changing, and nothing at all happens -- apparently forever.  I don't think this has ever happened on the development machine (perhaps because uploads go so quickly), but frequently happens on the production server.  If I repeatedly upload the same file, it happens at different places in the upload -- occasionally it even stops at 100%.

Do you have any suggestions?
Dimitar Milushev
Telerik team
 answered on 21 May 2010
1 answer
152 views
i am using an upload control and a progrees manager in a page were i am uploading a rar/zip file and unzipping them and saving to db these are the process that happen when i click on the upload button . in my local machine its working fine but in the remote after the progress area in progress bar is completed the page is filled with some weird characters . I am sorry  this is what i get on the click of upload button .

��������`I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼 ��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h���8�V�e> m�j�fm�/Vmz�e>K'�4[7y��sӊ>]eu{�ΊY���tUW��.��:oV�r�f�m^�YJ��,��ӶX 䣴�Ӽi�IY4s�������4��6�g�i�V��݇{��Oƻ;��G;;���x�6�u�A:�f��/>����y�(��G�d^ϲe��!z���Ѳ�Y)5��G��A�8�VeU?������/I=�����Yd�E��n�գt����/�q� �IU�n �ۻ�/No������Nj�������oA��uU��?_O�Y��T˦*s�3�0_�/� �[b�_�#�2�R�1R��v{�O�:>"n^��˼n��X_����E^��׿X�>�ڶZ

Please help me
Genady Sergeev
Telerik team
 answered on 21 May 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?