Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
230 views
Hello

Hope you can help, I have a RadGrid defined as follows:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
        GridLines="None"  Skin="Vista" 
        onneeddatasource="RadGrid1_NeedDataSource" ondeletecommand="RadGrid1_DeleteCommand" 
        oninsertcommand="RadGrid1_InsertCommand" 
    onupdatecommand="RadGrid1_UpdateCommand" 
    onitemdatabound="RadGrid1_ItemDataBound" >
      
    <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="false">
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        <ClientEvents OnRowDblClick="RowDblClick" />
        <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowActiveRowCycle="true" />
    </ClientSettings>
    <MasterTableView EditMode="PopUp"  CommandItemDisplay="Bottom">         
        <Columns>
            <telerik:GridBoundColumn  UniqueName="Id" visible="false" ReadOnly="true"
                    DataField="Id" HeaderText="Id" >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Nombre" AutoPostBackOnFilter="True" 
                    CurrentFilterFunction="Contains" DataField="Nombre" HeaderText="Nombre" 
                    ShowFilterIcon="False">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn  UniqueName="Precio" AutoPostBackOnFilter="True" 
                    CurrentFilterFunction="Contains" DataField="Precio" HeaderText="Precio" 
                    ShowFilterIcon="False">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn ConfirmText="Borrar este método?" 
                ConfirmTitle="Borrar" ButtonType="ImageButton" CommandName="Delete" 
                Text="Borrar" UniqueName="DeleteColumn" ConfirmDialogType="RadWindow">
                <HeaderStyle Width="30px" />
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridButtonColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                <HeaderStyle Width="30px" />
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridEditCommandColumn>
        </Columns>
      
        <CommandItemSettings AddNewRecordText="Añadir nuevo registro" RefreshText="Refrescar" />
        <EditFormSettings EditColumn-CancelText="Cancelar" EditColumn-Display="True" EditFormType="AutoGenerated">
            <FormTableItemStyle Wrap="False"></FormTableItemStyle>
            <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
            <FormMainTableStyle GridLines="None" CellSpacing="5" CellPadding="3" BackColor="White" Width="100%" />
            <FormTableStyle CellSpacing="0" CellPadding="2" Height="60px" BackColor="White" />
            <EditColumn ButtonType="ImageButton"
                InsertText="Guardar" UpdateText="Guardar cambios"
                UniqueName="EditCommandColumn1" CancelText="Cancelar edición" >
            </EditColumn>
            <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
            <PopUpSettings Modal="True"></PopUpSettings>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

When I start to edit a row I have a problem, if I try to hit the Enter key, it seems that the focus goes to the delete ImageButton and ask me about confirmation before delete an item.

I have no problems to visualize any data or if I update it with the mouse, with click on the update button. Only when I hit the Enter key while the focus is on editable field.

This behavior not care about the value of the param AllowKeyboardNavigation

Hope you can replicate my problem.
Thank you
Carlos
Top achievements
Rank 1
 answered on 31 Mar 2011
1 answer
114 views
Hi,

I have a RadListBox where i am binding the datasource like RadListBox.DataSource = GetItems() and call databind on Page_Load. i also had the radfilter by setting the FilterContinerID to the RadListBox's ID. But, when I browse the page and click on add expression icon it makes a request but filter doesnt appear on the screen. so, I had a FieldEditor like below:

<FieldEditors>
    <telerik:RadFilterTextFieldEditor DataType="System.String" DisplayName="Text" FieldName="ShipName" />
</FieldEditors>

Now the filter shows up. But when i type something and click apply it dont see any change in the RadListBox. Please let me know if I am missing something.

Thanks in advance!!!
Daniel
Telerik team
 answered on 31 Mar 2011
3 answers
100 views
Sirs:
I ran the samples for some weeks with no issues. I bought a 'premium' license today and it's all going bad.

I uninstalled the samples and that locked up my machine (but the 'uninstall' was gone on reboot)
I installed just one module - ASP.NET AJAX. It locked up my machine twice. On the third try it told me that it was already installed; and there was no 'repair' option that I see in a lot of installs.

The issue that I have right now is that the samples that were installed are now gone. I'd like to have them back to give me examples on how to code. Can anyone help me get the samples back?

Teodor
Telerik team
 answered on 31 Mar 2011
3 answers
185 views
Hi,

I am using Q2 2009 version. I am displaying one pop up.  In that pop up, there is a Save  button  When i click on the save button,  i am  inserting content  in to the editor through JavaScript.

Editor is in the parent window.

Here is the code which i have written in the Pop up window.

 var editor=window.opener.document.getElementById("ctl00_ContentPlaceHolder1_RadTxtCheifComplaint");   // Editor id     
 editor.innerHTML=  someText;                //  Inserting text from pop up window.; 
 window.close();   




When the popup close.Text insert in to the Editor and Editor display in the Preview mode instead of design mode. i want t dispaly in the design mode. How to set Design mode of editor from javascript.


Please give me the solutions ASAP.


Regards

Rahul
Marin Bratanov
Telerik team
 answered on 31 Mar 2011
3 answers
110 views
Hi,

In my grid I am using grid / user control edit form, and I have a delete option also like in your demo - http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx. However, when I delete the row that I have edit form expanded the edit form for the next item in the grid expands automatically. I want the edit form to be shown only when the user selects to edit the item and not automatically when the user deletes the item above with the expanded edit form. How can I do it?

Thank you
Tatiana
Top achievements
Rank 2
 answered on 31 Mar 2011
4 answers
127 views
Hello,

I'm new to ASP.NET programming, so please bare with me. 

I have a linqdatasource that is returning a table such as:

Show Season# Episode#
foo 1 1
foo 1 2
foo 1 3
foo 2 1
foo  2 2
bar 1 1
bar 1 2

I want to represent this table in a TreeView with expand/collapse nodes such as:

foo
Season 1
Episode 1
Episode 2
Episode 3
Season 2
Episode 1
Episode 2
bar
Season 1
Episode 1
Episode 2

How do I accomplish this scenario? 

Thanks,
Zeyad
Dimitar Terziev
Telerik team
 answered on 31 Mar 2011
1 answer
368 views
Hi,
I'm exporting a RadGridview to excel, the only thing that I need is add a new line inside some cells,
the value inside the cell has \t \n but when I export the excel I get something like this &lt;br&gt; inside my excel file.






I'm using the following to change from \t \n to <br> but It doesn't work
        
    if (e.Element == ExportElement.Cell )
            {
                e.Value = e.Value.ToString().Replace("\t \n",  " <br>  ");  
            }

what is the corret way to do it.

Thanks in advance
Daniel
Telerik team
 answered on 31 Mar 2011
1 answer
121 views
Colleagues,

Maybe someone noticed the following strange behaviour of the RadScheduler (see the screen-shot attached):

I'm trying to add a new appointment into the area which is highlighted under the mouse cursor. Number of cells highlighted is set by the "NumberOfHoveredRows" attribute. I move the highlighted area to the place where I want to add new appointment and click right mouse button.

Here the strage things start: If no cells were chosen before - the RadScheduler suggests to add an appointment into the first cell only. But if some cells were clicked before it suggests to add an appointment into all cells highlighted (which is preferable!)

Who knows how to make the scheduler to suggest a new appointment for the whole highlighted area, but not to the first cell only?

Thanks,

- Stepan.
Peter
Telerik team
 answered on 31 Mar 2011
3 answers
78 views
Hello Telerik admins,

I have huge data around 10000++ need to display in a radgrid. Possible for me to break them out based on the paging of the grid?
Example : 1 page - i only need to show 10 records.. When i click on 2nd page, i will only retrieve 11-20 records and show at page 2?
If i do not do that, it take lots of time to display in a grid...

If possible, please give some sample code and how to do this...

Please advice!
Thanks.

Regards,
Soo
Daniel
Telerik team
 answered on 31 Mar 2011
1 answer
102 views
Hii

 I  don't want to save the appointment or lesson less than today date. If today date is 27/3/2011 and if i select 13/3/2011 then dont want to save the record less than today date.

And one more question How disable rad scheduler control on page load event ?....

Thanks
Regards
Rahul mahajan
Veronica
Telerik team
 answered on 31 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?