Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
I am using the Q2 2009 release and it seems that the once present "right-click" image menu is no longer available in the editor! Can anyone please help me out and let me know if this has been removed for good...or if I have to do something special to get it to show up again?

Thank you in advance.
Georgi Tunev
Telerik team
 answered on 05 Aug 2009
3 answers
135 views
We have uploaded attachments to SQL database and now wish to use RadEditor to display these attachments instead of opening a RadWindow to view the content. I have gone through the example "Custom File Dialog Content Provider" and have no clue how my requirement could be achieved.

Is it possible there have relevant examples for reference?

Regards
Tervel
Telerik team
 answered on 05 Aug 2009
1 answer
41 views
it looks good on ie7 and works for 90% of the time on firefox. But for IE8, it just plain doesn't work. Everything seems to be out of whack. Do you have a fix for that? just wondering. thanks
Ivo
Telerik team
 answered on 05 Aug 2009
1 answer
34 views
I am having trouble with the RadGrid forcing new or edited rows to the top of the grid.  I do not have a problem with them doing it, but when I click on Edit, it shows the first item in my dataset instead of what is displayed in the grid.  Is there a way to get the edited rows to remain in place?
Yavor
Telerik team
 answered on 05 Aug 2009
1 answer
107 views
------------------------------------------------------------------------thing1
I have a grid I can bind to a collection (parent).

Each item in that parent collection has another collection (child) on it.

The child collection will be of the same length for each item in the parent collection but not necessarily any object containing the parent collection.

e.g.
Main Object
----------------Parent Collection
----------------------------------------item1--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3
----------------------------------------item2--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3
----------------------------------------item3--Child Collection
------------------------------------------------------------------------thing1
------------------------------------------------------------------------thing2
------------------------------------------------------------------------thing3



So I want my grid to be like this
item1.Date thing1.value thing2.value thing3.value item1.Description  item1.Name
item2.Date thing1.value thing2.value thing3.value item2.Description  item2.Name
item3.Date thing1.value thing2.value thing3.value item3.Description  item3.Name

Of course another object may exist where there are fewer  than 3 things on each item.

Is there a way of doing this declaratively?




Yavor
Telerik team
 answered on 05 Aug 2009
1 answer
271 views

I have 2 questions

1) We are using a grid where users can pick the columns that display. As a result the grid width can get very wide and break out of the page. See http://www.creditbootcamp.com/grid_problem.png

Is there a way we can have a horizontal scroll bar automatically appear if it breaks the container? The layout is liquid and uses percentages so we cannot assign any fixed width values. The grid is in a table <TD></TD> which is set at 75% width.
Here is the top grid code (excluding the GridTemplateColumns):

<ds:DisputeGrid ID="CustomerSearchResults" EnableAjaxSkinRendering="True" EnableRowHover="True" runat="server" Skin='<%#Me.TelerikSkin %>' OnNeedDataSource="CustomerSearchResults_NeedDataSource" AllowSorting="true" EnableViewState="true" AllowCustomPaging="true" OnItemDataBound="CustomerSearchResults_ItemDataBound" OnInit="CustomerSearchResults_Init"> 

What I would like is for a horizontal scroll bar to automatically appear if it breaks the container.

2) My second question is how do you prevent wrapping of items in the grid. When the grid has lots of columns it causes the icons to wrap.
See http://www.creditbootcamp.com/grid_tools.png

We tried:   
<rad:GridTemplateColumn UniqueName="Tools" HeaderText="Tools" ItemStyle-Width="150">
But it did not work. Putting the icons in a table did work but caused borders to show up around the table (which we dont want).

Thanks guys!!

Dimo
Telerik team
 answered on 05 Aug 2009
1 answer
206 views
    <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" 
                    AutoGenerateColumns="False" AllowFilteringByColumn="True" 
                    ShowStatusBar="True" OnUpdateCommand="RadGrid1_UpdateCommand"  
                    OnInsertCommand="RadGrid1_InsertCommand" 
                    OnDeleteCommand="RadGrid1_DeleteCommand"  
                    OnNeedDataSource="RadGrid1_NeedDataSource"  
                    OnItemDataBound="RadGrid1_ItemDataBound"  
                    ShowFooter="True" Skin="Vista" onitemcommand="RadGrid1_ItemCommand"> 
                     
                    <MasterTableView DataKeyNames="MuhFisDetayId" AllowMultiColumnSorting="True" 
                        CommandItemDisplay="Top" EditMode="InPlace" InsertItemDisplay="Top"> 
                        <Columns> 
                             <telerik:GridDropDownColumn DataField="HesapId" DataSourceID="LLBLGenProDataSource3" 
                                HeaderText="HesapKodu" ListTextField="HesapKodu" ListValueField="HesapId" UniqueName="HesapId"> 
                                <ItemStyle HorizontalAlign="Left" Width="160px" /> 
                             </telerik:GridDropDownColumn> 
                             
                             <telerik:GridTemplateColumn HeaderText="Açıklama" UniqueName="TemplateColumnAciklama" EditFormColumnIndex="1"> 
                                <ItemTemplate> 
                                    <%# Eval("Aciklama")%> 
                                </ItemTemplate> 
                                 
                                <EditItemTemplate> 
                                    <telerik:RadTextBox runat="server" ID="tbAciklama"   DataType="Decimal"  
                                        Text='<%# Bind("Aciklama") %>' Width="180px"> 
                                    </telerik:RadTextBox> 
                                </EditItemTemplate> 
                                
                                <FooterTemplate> 
                                <asp:Label runat="server" ID="lblFooterAciklama" Text=" Toplam Borç - Alacak " Font-Bold="true" Font-Names="Verdana" ForeColor="#000000"></asp:Label> 
                                </FooterTemplate> 
                                <ItemStyle HorizontalAlign="Left" Width="200" Wrap="true"/> 
                           </telerik:GridTemplateColumn> 
                             
                            <telerik:GridTemplateColumn HeaderText="Borç" UniqueName="TemplateColumnBorc" EditFormColumnIndex="1"> 
                                 
                                <ItemTemplate> 
                                    <%# Eval("Borc" )%> 
                                </ItemTemplate> 
                                 
                                <EditItemTemplate> 
                                   <telerik:RadNumericTextBox runat="server" ID="tbBorc" Width="40px" DbValue='<%# Bind("Borc")  %>' DataType="Decimal"> 
                                   <ClientEvents OnKeyPress="onKeyPresstbBorc" /> 
                                   </telerik:RadNumericTextBox> 
                                </EditItemTemplate> 
                                 
                                <FooterTemplate> 
                                <asp:Label runat="server" ID="lblBorcToplam" Text="" Font-Bold="true" Font-Names="Verdana" ForeColor="#000000"></asp:Label> 
                                </FooterTemplate> 
                                 
                              <ItemStyle HorizontalAlign="Left" Width="120px" /> 
                            </telerik:GridTemplateColumn> 
                                  
                            <telerik:GridTemplateColumn HeaderText="Alacak" UniqueName="TemplateColumnAlacak" 
                                EditFormColumnIndex="2"> 
                                 
                                <ItemTemplate> 
                                    <%# Eval("Alacak")%> 
                                </ItemTemplate> 
                                 
                                <EditItemTemplate> 
                                    <telerik:RadNumericTextBox runat="server" ID="tbAlacak" Width="40px" DbValue='<%# Bind("Alacak")  %>' DataType="Decimal"> 
                                    <ClientEvents OnKeyPress="onKeyPresstbAlacak" /> 
                                    </telerik:RadNumericTextBox> 
                                </EditItemTemplate> 
                                 
                                <FooterTemplate> 
                                 <asp:Label runat="server" ID="lblAlacakToplam" Text="" Font-Bold="true" Font-Names="Verdana" ForeColor="#000000"></asp:Label> 
                                </FooterTemplate> 
                                 
                                 
                              <ItemStyle HorizontalAlign="Left" Width="120px" /> 
                            </telerik:GridTemplateColumn> 
                             
                            <telerik:GridEditCommandColumn UpdateText="Kaydet" UniqueName="EditCommandColumn"  
                                CancelText="İptal" EditText="Güncelle"> 
                              <ItemStyle HorizontalAlign="Center" Width="100" /> 
                         </telerik:GridEditCommandColumn> 
                         <telerik:GridButtonColumn   UniqueName="DeleteColumn" Text="Sil" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Bu Kaydı Silmek Ä°stediÄŸinizden Eminmisiniz" ItemStyle-Width="50" ItemStyle-HorizontalAlign="Center" /> 
                         </Columns> 
                         <EditFormSettings CaptionFormatString="{0} nolu FiÅŸi Güncelleme" CaptionDataField="MuhFisDetayId"> 
                            <EditColumn ButtonType="ImageButton" /> 
                            <FormStyle BackColor="#eef2ea" Width="100%" /> 
                            <FormTableStyle CellPadding="2" CellSpacing="0" GridLines="None" /> 
                            <FormTableItemStyle Height="29px" Width="100%" /> 
                         </EditFormSettings> 
                    </MasterTableView> 
                    
                    <ClientSettings>  
                        <ClientEvents OnRowCreated="onRowCreated" OnRowCreating="onRowCreating" OnRowDblClick="RowDblClick" OnCommand="onCommand" /> 
                    <Selecting AllowRowSelect="true" /> 
                    </ClientSettings> 
                </telerik:RadGrid> 


In grid there is two column (TemplateColumnBorc , TemplateColumnAlacak) Which has RadNumericTexBox in Edit and İnsert mode .
İ want to make "0" the value of others radnumerictextbox when i write something in one of them .

İn Edit Mode İ accomplish it  with Javascript

                       var currentRowIndex = null;                
 
                        function onCommand(sender, args) 
                        {          
                                 if(args.get_commandName()== 'Edit')  
                                 {     
                                   currentRowIndex = args.get_commandArgument();  
                                 } 
                        }   
                         
                        function onKeyPresstbBorc(sender, eventArgs) 
                        { 
 
                          var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();  
                          var dataItem = masterTable.get_dataItems()[currentRowIndex]; 
                          var radTextBox1 = dataItem.findControl("tbAlacak"); 
                          radTextBox1.set_value(0.00); 
                        }
                       
                        function onKeyPresstbAlacak(sender, eventArgs)
                        {
                          var masterTable = $find("<%=RadGrid1.ClientID%>").get_masterTableView();
                          var dataItem = masterTable.get_dataItems()[currentRowIndex];
                          var radTextBox1 = dataItem.findControl("tbBorc");
                          radTextBox1.set_value(0.00);
                        }

But When İ Click "Add new row" a new row creating on grid  inlinemode .

i want to accomplish make 0 value of other radcombobox when i write something one of them  before Performinsert .



































Yavor
Telerik team
 answered on 05 Aug 2009
1 answer
300 views
Hi there

For some reason the tooltip on telerik:GridButtonColumn and on telerik:GridEditCommandColumn
do not show, is there something i need to do for it to show thanks

here is my code

<

 

telerik:RadGrid ID="radCategory" runat="server" DataSourceID="dsCategory"

 

 

 

Skin="Vista" GridLines="None" Width="700px" Height="500px"

 

 

 

AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True">

 

 

 

<GroupingSettings CaseSensitive="false" />

 

 

 

<MasterTableView AutoGenerateColumns="False" DataSourceID="dsCategory" EditMode="InPlace"

 

 

 

CommandItemDisplay ="Top" AllowAutomaticUpdates="true" DataKeyNames="CategoryId"

 

 

 

AllowAutomaticInserts="true" AllowAutomaticDeletes="true">

 

 

 

<CommandItemTemplate>

 

 

 

<div style="padding:10px 0px;">Course Category&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

 

 

 

<asp:LinkButton ID="lnkAddNew" runat="server" CommandName="InitInsert" Visible="True">

 

 

 

<img style="border:0px;vertical-align:middle;" alt="" src="../Images/add.gif" /> Add new Category</asp:LinkButton>&nbsp;&nbsp;

 

 

 

<asp:LinkButton ID="lnkExportExcel" runat="server" CommandName="ExporttoExcel" >

 

 

 

<img style="border:0px;vertical-align:middle;" alt="" src="../Images/Excel.gif" /> Export To Excel </asp:LinkButton>&nbsp;&nbsp;

 

 

 

<asp:LinkButton ID="lnkExportWord" runat="server" CommandName="ExporttoWord" >

 

 

 

<img style="border:0px;vertical-align:middle;" alt="" src="../Images/Word.gif" /> Export To Word </asp:LinkButton>&nbsp;&nbsp;

 

 

 

<asp:LinkButton ID="lnkRefresh" runat="server" CommandName="RebindGrid">

 

 

 

<img style="border:0px;vertical-align:middle;" alt="" src="../Images/Refresh.gif" /> Refresh</asp:LinkButton>

 

 

 

</div>

 

 

 

</CommandItemTemplate>

 

 

 

<RowIndicatorColumn>

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn>

 

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn DataField="CategoryId" DataType="System.Guid"

 

 

 

EmptyDataText="&amp;nbsp;" HeaderText="CategoryId" SortExpression="CategoryId"

 

 

 

UniqueName="CategoryId" ReadOnly="true" Visible="False">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Name" EmptyDataText="&amp;nbsp;"

 

 

 

HeaderText="Name" SortExpression="Name" UniqueName="Name" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn DataField="Description" EmptyDataText="&amp;nbsp;"

 

 

 

HeaderText="Description" SortExpression="Description" UniqueName="Description" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton"

 

 

 

CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">

 

 

 

<HeaderStyle Width="20px" />

 

 

 

<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />

 

 

 

</telerik:GridButtonColumn>

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" >

 

 

 

<ItemStyle CssClass="MyImageButton" />

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

</ClientSettings>

 

 

 

<FilterMenu EnableTheming="True">

 

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

 

</FilterMenu>

 

 

 

</telerik:RadGrid>

 

 

Princy
Top achievements
Rank 2
 answered on 05 Aug 2009
0 answers
85 views
I M Facing Some problems while setting the width of RadComboboxes.
I Also use RadAjaxloading Panel

Scenario is ..I have two RadComboboxes ..placed aside on selection of one other combobox has to be filled.
when i execute the page two radcomboboxes appear in two Different Lines...Both of which width is 25%....

I tried setting the absolute width 35px it worked...pls give me any solution about relative width.
Ashwin Deshpande
Top achievements
Rank 1
 asked on 05 Aug 2009
3 answers
131 views
Hi

New to these controls. I'm having trouble extracting the values from the text boxes that appear when using inplace editing.

I've got to the rgArea_InsertCommand( ) sub but how do I get the values from the control?

Andy G
Princy
Top achievements
Rank 2
 answered on 05 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?