Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
126 views
Hi,

I have a Self-referencing hierarchy grid (I am using code in this link http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx),

I want to to call radGrid ItemCommand event for "RowClick" only when childrows clicked.. I am using client event (below) for that,

RadGrid1.ClientSettings.ClientEvents.OnRowSelecting = "RowSelecting"
    function RowSelecting(sender, eventArgs) {
        var parentRow = eventArgs.get_tableView().get_parentRow();
        if (parentRow == null) {
            eventArgs.set_cancel(true);
        } 
    }

When I click the parent row, its calling the javascript function and cancelling the event..BUT ItemCommand event is still executing..

How to avoid this?

Thanks
Mira
Telerik team
 answered on 04 Nov 2009
1 answer
165 views
I have calendar control and would like to put the show time in each date.   Each date can have 1 or 2 show time.

When user clicks on each time within a cell,  I would like to capture the value of the time that user clicked.

Any idea how this can be done?

Also, how can I align the dates nicely between the dates that have different number of times displayed.  Currently they are not lining up nicely.
Dimo
Telerik team
 answered on 04 Nov 2009
4 answers
159 views
I am trying to find a control on the parent row when expanding the grid during the ItemCommand Event.  I am unable to do so.  Can someone post a small example please?



Thanks

--Randy
Shinu
Top achievements
Rank 2
 answered on 04 Nov 2009
3 answers
94 views
Hi All,

Does any one know on how to add RadCombo FIlters in Subheaders?
Here is my aspx code. Plz help me.
<telerik:RadGrid runat="server" ID="RadGrdDashboard"  
                AllowPaging="True"  
                AutoGenerateColumns="False"  
                PageSize="5" 
                ShowStatusBar="True" 
                EnableAJAX="True"  
                DataSourceID="dsParent"  
                GridLines="None"  
                AllowFilteringByColumn="True" 
                Width="100%" 
                OnItemCreated="RadGrdDashboard_ItemCreated" 
                > 
                 
                    <MasterTableView DataSourceID="dsParent"> 
                        <PagerStyle Mode="NextPrevAndNumeric" /> 
                        <Columns> 
                            <telerik:GridBoundColumn HeaderText="CustomerID" DataField="CustomerID" UniqueName="CustomerID" AllowFiltering="true"> 
                            <FilterTemplate>  
                                        <telerik:RadComboBox ID="RadComboBoxContractID" runat="server"  
                                        OnClientSelectedIndexChanged="filterByCustomerID"  
                                         SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("CustomerID").CurrentFilterValue %>' Width="95px"> 
                                        <Items>  
                                            <telerik:RadComboBoxItem Text="All"  Value="All" />  
                                            <telerik:RadComboBoxItem Text="ALFKI" Value="ALFKI" /> 
                                            <telerik:RadComboBoxItem Text="ISLAT" Value="ISLAT" /> 
                                        </Items>  
                                    </telerik:RadComboBox>  
                            </FilterTemplate>  
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn HeaderText="Contact Name" DataField="ContactName" UniqueName="ContactName" AllowFiltering="false"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn UniqueName="TemplateColumn"> 
                               <HeaderTemplate> 
                                <table id="Table1" cellSpacing="1" cellPadding="1" width="300" border="0"> 
                                 <tr> 
                                  <td colspan="3" align="center"><b>Contact Info</b></TD> 
                                 </tr> 
                                 <tr> 
                                  <td width="50%" headers="ContactTitle" id="ContactTitle"><b>Contact Title</b></TD> 
                                  <td width="50%"><b>City</b></TD> 
                                  <td width="50%"><b>Phone</b></TD> 
                                 </tr> 
                                </table> 
                               </HeaderTemplate> 
                               <ItemTemplate> 
                                <table id="Table2" cellSpacing="1" cellPadding="1" width="300" border="0"> 
                                 <tr> 
                                  <td width="50%"><%# DataBinder.Eval(Container.DataItem, "ContactTitle")%></TD> 
                                  <td width="50%"><%# DataBinder.Eval(Container.DataItem, "City")%></TD> 
                                  <td width="50%"><%# DataBinder.Eval(Container.DataItem, "Phone")%></TD> 
                                 </tr> 
                                </table> 
                               </ItemTemplate> 
                              </telerik:GridTemplateColumn> 
                            <telerik:GridBoundColumn HeaderText="Company Name" DataField="CompanyName" UniqueName="CompanyName" AllowFiltering="false"> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn UniqueName="TemplateColumn1"> 
                               <HeaderTemplate> 
                                <table id="Table11" cellSpacing="1" cellPadding="1" width="300" border="0"> 
                                 <tr> 
                                  <td colspan="2" align="center"><b>Company Info</b></TD> 
                                 </tr> 
                                 <tr> 
                                  <td width="50%"><b>Country</b></TD> 
                                  <td width="50%"><b>Fax</b></TD> 
                                 </tr> 
                                </table> 
                               </HeaderTemplate> 
                               <ItemTemplate> 
                                <table id="Table21" cellSpacing="1" cellPadding="1" width="300" border="0"> 
                                 <tr> 
                                  <td width="50%"><%# DataBinder.Eval(Container.DataItem, "Country")%></TD> 
                                  <td width="50%"><%# DataBinder.Eval(Container.DataItem, "Fax")%></TD> 
                                 </tr> 
                                </table> 
                               </ItemTemplate> 
                              </telerik:GridTemplateColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings> 
                        <ClientEvents OnColumnClick="ColumnClick" OnGridCreated="GridCreated"/> 
                         
                    </ClientSettings> 
                </telerik:RadGrid> 
    <asp:AccessDataSource ID="dsParent" DataFile="App_Data/Nwind.mdb" SelectCommand="SELECT * FROM Customers" 
                runat="server"></asp:AccessDataSource> 




Bobbie
Top achievements
Rank 1
 answered on 03 Nov 2009
1 answer
153 views
Hi,

Is it possible to add a dynamic treeview left side to the Scheduler control?
Schlurk
Top achievements
Rank 2
 answered on 03 Nov 2009
4 answers
292 views
Its not immediatley obvious how to program the web service for a radcombobox autocomplete feature.  The example;

C:\Program Files\telerik\RadControls 'Prometheus' for ASPNET Q3 2007\Live Demos\ComboBox\Examples\Programming\WebServiceShowMoreResults

... is missing the web service countries.cs - is it possible to get this so we can see what the web service looks like?

Thanks,
JB

JC
Top achievements
Rank 1
 answered on 03 Nov 2009
3 answers
170 views
Hello - I have seen numerous posts on this, but they all vary in technique and date. What is the current best approach to expand/collapse all items in a grouped grid? I would like to do this client side, using the expanded property if possible rather than having the client side script "click" the icons in the first column. Please provide an up-to-date example if possible.

Thanks ahead of time for the help.
Bryan Strader
Top achievements
Rank 2
 answered on 03 Nov 2009
2 answers
98 views
I'd appreciate some help with this:

I have a working Rad Editor in which I have three custom tools.  All three tools work correctly, and the images that display on the three buttons show up properly on page_load.  However, when there is a post back, I lose the three images.  The click of any of the three buttons still has the desired result, though.

Here is the code:

<telerik:EditorToolGroup> 
     <telerik:EditorTool Name="Arrow" ShortCut="Shift+Alt+r"/> 
     <telerik:EditorTool Name="Yen"/>
     <telerik:EditorTool Name="Euro"/>
</telerik:EditorToolGroup>

<style type="text/css"> 
    .Arrow 
        { 
        background-image: url("../img/rt_icon2.gif")!important; 
        } 
    .Yen 
        { 
        background-image: url("../img/yen2.jpg")!important; 
        } 
    .Euro 
        { 
        background-image: url("../img/euro.jpg")!important; 
        } 
</style> 

<script type="text/javascript"> 
 
 
    Telerik.Web.UI.Editor.CommandList["Arrow"] = function(commandName, editor, args)  
    { 
        editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: wingdings'>è</font>"); 
    }; 
    Telerik.Web.UI.Editor.CommandList["Yen"] = function(commandName, editor, args)  
    { 
        editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: arial'>Â¥</font>"); 
    }; 
    Telerik.Web.UI.Editor.CommandList["Euro"] = function(commandName, editor, args)  
    { 
        editor.pasteHtml("<font style='FONT-SIZE: 11pt; FONT-STYLE: normal; FONT-FAMILY: arial'>€</font>"); 
    }; 
 
</script> 

Thanks in advance for your help in determining how to avoid losing my images!

Michael
Michael
Top achievements
Rank 1
 answered on 03 Nov 2009
1 answer
89 views
Hi,

I have radgrid. Inside radgrid i using tabstrip. Each tab in tabstrip i can update data. For update i popup new window. After updating popup window close. when popup windows close data is rebinding. after that my current tab is changing and its going to first tab. I want keep my current tab after rebinding. Hos can i do that?. You can see application from following link

http://195.89.170.82/mdrdbtest/document.aspx

krds
lakmal




Schlurk
Top achievements
Rank 2
 answered on 03 Nov 2009
2 answers
110 views
Is it possible and if so, Is there any documentation available for doing something like this?
Delicious!
Top achievements
Rank 1
 answered on 03 Nov 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?