Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
193 views
Dear telerik team
I use RadcomboBox and RadAjaxManager. RadcomboBox SelectedIndexChanged event. There is a problem if RadcomboBox RadAjaxManager using the commands in the SelectedIndexChanged method is not implemented correctly. And if you do not use RadAjaxManager, then use normally.
I started the project attached for your reference and help me solve the problem.
Sincerely

File :
http://www.mediafire.com/file/nb3gj4mytqz/AjaxTest.rar
Phuoc Nguyen Thanh
Top achievements
Rank 1
 answered on 03 May 2010
1 answer
99 views

when i uses InPlace Edit Mode
the listbox controls in gird in edit and insert mode doesn't displayed
here is the code


<telerik:RadGrid ID="grdPermissions" runat="server" AllowPaging="True"   
            AllowAutomaticInserts="True" 
             AutoGenerateColumns="False" GridLines="None"   
             onitemdatabound="grdPermissions_ItemDataBound"   
             onneeddatasource="grdPermissions_NeedDataSource" Width="100%"   
             ondeletecommand="grdPermissions_DeleteCommand"   
             onupdatecommand="grdPermissions_UpdateCommand"   
             oninsertcommand="grdPermissions_InsertCommand">  
<MasterTableView DataKeyNames="GroupingId"  CommandItemDisplay="TopAndBottom" AllowAutomaticInserts="false" ShowFooter="true" ShowHeadersWhenNoRecords="true" EditMode="InPlace">  
    
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridTemplateColumn UniqueName="PermissionTemplateColumn" HeaderText="Permissions">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlPermission" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllPermission" Text="All" /> 
        <telerik:RadListBox ID="chkPermissions" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id" > 
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="TestStatusesTemplateColumn" HeaderText="Test Status">  
         <ItemTemplate> 
            <asp:Literal ID="ltrlTestStatuses" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllTestStatuses" Text="All" /> 
         <telerik:RadListBox ID="chkTestStatuses" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="LocationsTemplateColumn" HeaderText="Locations"  > 
         <ItemTemplate> 
        <asp:Literal ID="ltrlLocations" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllLocations" Text="All" /> 
        <telerik:RadListBox ID="chkLocations" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="ClinicalGroupsTemplateColumn" HeaderText="Clinical Groups">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlClincalGroups" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
          <asp:CheckBox runat="server" ID="chkAllClinicalGroups" Text="All" /> 
        <telerik:RadListBox ID="chkClinicalGroups" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="BranchesTemplateColumn" HeaderText="Branches">  
         <ItemTemplate> 
        <asp:Literal ID="ltrlBranches" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
        <asp:CheckBox runat="server" ID="chkAllBranches" Text="All" /> 
         <telerik:RadListBox ID="chkBranches" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
 
        <telerik:GridButtonColumn  ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn">  
                         
                    </telerik:GridButtonColumn> 
 
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
 
    </Columns> 
 
    <EditFormSettings  > 
                    
                    <EditColumn ButtonType="ImageButton" InsertText="Add UOM" UpdateText="Update UOM" 
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit" > 
                    </EditColumn> 
                     
                </EditFormSettings> 
 
</MasterTableView> 
 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
         </telerik:RadGrid> 
Nikolay Rusev
Telerik team
 answered on 03 May 2010
0 answers
79 views
Am using a Label Control in Item Template (Rad Grid).. I need to expand the label size automatically.. Please help in providing the property for Label to expand the size...
Kalaiselvan Rajendran
Top achievements
Rank 1
 asked on 03 May 2010
3 answers
228 views
How do I detect if the OnRowSelecting client side event was triggered by the GridClientSelectColumn checkbox or by clicking on the row (outside the checkbox)?

I found a few posts but they don't seem to apply to the new grid version.
Basel Nimer
Top achievements
Rank 2
 answered on 02 May 2010
2 answers
76 views
Hi,

I have a grid with a GridClientSelectColumn, i had a problem of selecting the row when clicking anywhere on it (even a button with a different action <<file download in my case>>), so i had to hack this so that the row is selected only when the check box is clicked, the following code works:

<ClientEvents OnRowSelecting ="RowSelecting"  />


function RowSelecting(sender, eventArgs)   
            {    
             
              var e =  window.event;   
              if(e.srcElement.tagName == "INPUT")   
              {    
                eventArgs.set_cancel(false); 
              }   
              else 
              {   
               eventArgs.set_cancel(true); 
              }   
            }   

the problem i am having now is that window.event does not work on firefox,

any help?







Basel Nimer
Top achievements
Rank 2
 answered on 02 May 2010
3 answers
172 views
I have a RadGrid with a GridClientSelectColumn to allow the user to select several rows.
Unfortunately when the user clicks on a row(but not on the selectcolumn) all the selected rows are deselected and the row which is clicked on is selected,
How can I prevent this?(eg. only the GridClientSelectColumn should react to clicks the rest of the row should ignore them).

The second grid on this( http://demos.telerik.com/aspnet-ajax/grid/examples/client/selecting/defaultcs.aspx ) example page has the same "error"
Basel Nimer
Top achievements
Rank 2
 answered on 02 May 2010
2 answers
189 views
Dear

I attend to intergrate TreeView and ListView together as following:

_ TreeView will bind to master datatable(use SQLDataSource)
_ ListView was place on template of each node of above TreeView and display details table

But I do not know the ways to do it. Please help me step by step. or give me an example

Best Regards,
TruongPham
Kevin Mauriello
Top achievements
Rank 1
 answered on 02 May 2010
1 answer
109 views
New be here. Just trying to get my feet wet and make sure I understand the different databinding techniques for the RadGrid.

So clearly I understand that Simple Data binding is only good if your NOT doing filtering, sorting, paging. Which of course I'm doing.

So between advanced and declarative I could not really find a comparison. Is one method preferred over the other. Any performance gains by using one over the other.

A some what sperate question but related:
Before switching to telerik, on my web page I had an ASP.NET timer control that was set to fire my databinding method after half a second. This way the web page and layout could fully load to the user, and the user would just see an ajax "loading..." type message while the grid data loaded.  Is this at all similar to the NeedDataSource method? Does the web page render before the NeedDataSource method fires? If not how could I achieve this same thing using the telerik framework?

Thanks
Jason
Jason Bourdette
Top achievements
Rank 1
 answered on 01 May 2010
1 answer
113 views
I'm using RadComboBox with loadondemand in my page.on clientselectedindexchanged of combo1, I call clientitemrequesting of combo2 and then fill it with my webservice. after I move to dot net 4 and IIS7, after item selected change of combo1, it show me the error "call to method failed".
I think this is for some limitations on IIS7 but don't know what service must activate in IIS.
is there any one familiar with this or have any idea?
farsica
Top achievements
Rank 1
 answered on 01 May 2010
2 answers
94 views
Hi

I'm testing Editor, but I'm facing a basic problem. When writing several lines of text, if I select some lines to Align to any direction, all the text is affected and not only the text that I selected. Is there any pre-configuration required?

Regards
antonio Miranda
Top achievements
Rank 1
 answered on 01 May 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?