Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hi,

I'm using the Radgrid in some projects. I defined that i can eidt the items inline in the radgrid.

I pass from one field to the next one with the tab button. When I reach the last field, I would like to hit enter and that the row get saved.

To save, I have a method in the code behind.

How can I setup the grid to call the code behind saving method when enter get pressed?

I would like that it react like in SQL server management studio for example, passing from field to field with tab, and enter to save the data at the end of the line.

Is it possible with the grid? How can I do that?

Thanks already for xour help

Cheers,

R.
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2010
4 answers
178 views

Setting a custom skin on a datapager integrated into a radlistview control fails when the control renders the RadDataPagerButtonFields since it can't find any custom skin for the controls.

<telerik:RadDataPager ID="ListViewPager" EnableEmbeddedSkins="false" Skin="Custom" ...> 
  <Fields> 
<telerik:RadDataPagerButtonField FieldType="FirstPrev" /> 
<telerik:RadDataPagerButtonField FieldType="Numeric" /> ... 

Is there a way to control the pagers skin/css without the RadDataPagerButtonFields underlying controls inherits the custom skin of the datapager?

Best regrads
Søren Denmark
Eliza Sahoo
Top achievements
Rank 1
 answered on 27 Jan 2010
7 answers
200 views
I've used the following desing for the InlineInsert.

<InlineInsertTemplate> 
        <div id="InlineInsertTemplate" class="rsCustomAppointmentContainer"> 
            <asp:Label ID="lblTitle" runat="server" Text="Add New Appointment"></asp:Label>  
            <hr /> 
            <table cellspacing="5" width="400px"> 
            <tr> 
            <td><asp:Label ID="lblSubject" runat="server" Text="Title"></asp:Label> </td> 
            <td><Telerik:RadTextBox ID="txtInlineInsertTitle" runat="server" Width="150px" Text='<%# Bind("Subject") %>'></Telerik:RadTextBox></td> 
            </tr> 
            <tr> 
            <td><asp:Label ID="lblList" runat="server" Text="Source List"></asp:Label> </td> 
            <td><Telerik:RadComboBox ID="cbxInlineInsertLists" runat="server"></Telerik:RadComboBox></td> 
            </tr> 
            <tr> 
            <td align="center"> 
            <asp:Button ID="btnInlineInsert" runat="server" Text="Add" CommandName="inlineInsert" ValidationGroup="grpInlineInsert" /> 
            &nbsp;&nbsp;&nbsp;&nbsp; 
            <asp:Button ID="btnInlineCancel" runat="server" Text="Cancel" CommandName="inlineCancel" /> 
            </td> 
            </tr> 
            <tr> 
            <td colspan="2"> 
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" Display="dynamic" ControlToValidate="txtInlineInsertTitle" Text="Title cannot be empty" ValidationGroup="grpInlineInsert" /> 
            </td> 
            </tr> 
            </table> 
        </div> 
    </InlineInsertTemplate> 

Check out the attachments for the rendering problem.


NLV
Top achievements
Rank 1
 answered on 27 Jan 2010
2 answers
176 views
I have a RadGrid with 3 columns defined in markup.  The remaining X number of columns are auto-generated.  Auto-generated columns are always added to the right of the grid appearing after the 3 pre-defined columns.  Is it possible to have the auto-generated columns inserted into a specific column position?  Or is there an event that knows when the last auto-generated column was added, so I can then programmatically add one or more pre-defined columns?  To date, I have used SwapColumns method to move 2 predefined columns to the right-side of the grid, but I have a scenario where that may not work.  TIA, Gary.
Gary
Top achievements
Rank 2
 answered on 26 Jan 2010
2 answers
128 views
What's the easiest way to find the parent row of a nested grid that you just dragged and dropped to (ie destination).

Here's what I have and it works fine but I know there's a simpler way because I remember seeing one like a year or so ago and just can't remember.

DirectCast(e.DestDataItem.Parent.Parent.Parent.Parent.Parent.Parent, Telerik.Web.UI.GridNestedViewItem).ParentItem

This does give me the parent row of a nested grid when I dragged and drop on the nested grid, but like I mentionned there's a simpler way and I just can't remember it.

Thanks
Alex
Top achievements
Rank 2
 answered on 26 Jan 2010
1 answer
96 views
I am using a telerik:RadTabStrip in a .ascx user control.  I want to call a function in a javascript object when the client tab is changed.

In the code-behind, I'm doing:

radTabStrip.OnClientTabSelected = "foo.clientTabSelected"; 

Where "foo" is a javascript object that contains some data, and a number of functions - one of which is clientTabSelected.

function Foo() 
{ 
    this.selectedTab = loadCookie('foo.cookie'); 
} 
 
 
Foo.prototype = { 
    clientTabSelected: function(sender, eventArgs) 
    {
        debugger;
        var tab = eventArgs.get_tab(); 
        if (tab) 
            this.selectedTab = tab.get_index(); 
        storeCookie('foo.cookie', this.selectedTab); 
    }, 
    //... 
} 
 

The object "foo", of course, is initialized prior to the user clicking a tab.

The problem is that when the user clicks on the tab, the "clientSelected" function is called, but not on the object "foo". In other words, when I trace through the execution, the correct function is being called, but within the function, "this" is not set to the "foo" object.

Any ideas as to how I can connect a Telerik event to a function in a specific object?



Jeff
Top achievements
Rank 1
 answered on 26 Jan 2010
3 answers
171 views
Does anyone know if we are able to have both Rowclick AND RowDblClick fire together?  If I have them both configured, only Rowclick seems to fire.

Any ideas?

Thanks!
Daniel
Telerik team
 answered on 26 Jan 2010
9 answers
795 views
I have a SqlDataSource (Regions_SqlDataSource) populating the RadListBox.
I have another SqlDataSource (SelectedRegions_SqlDataSource) that gets the selected values from the database.

I cannot seem to figure out how to set the selected values of the RadListBox based on the SelectedRegions_SqlDataSource.
I can get it to select the first returned value of the SelectedRegions_SqlDataSource, but it does not select all of the returned values.

Here is my code.

Dim regionsSql As DataView = DirectCast(SelectedRegions_SqlDataSource.Select(DataSourceSelectArguments.Empty), DataView)  
        For Each regionsviewSql As DataRowView In regionsSql  
            If Not Page.IsPostBack And regionsviewSql("PreferenceValue").ToString <> "" Then 
                Regions_RadListBox.SelectedValue = regionsviewSql("PreferenceValue")  
            End If 
        Next 

And here is the listbox and data sources.

<telerik:RadListBox ID="Regions_RadListBox" runat="server" Width="200px"   
      SelectionMode="Multiple" Rows="3" TextMode="MultiLine" DataSortField="Region"   
      DataSourceID="Regions_SqlDataSource1" DataTextField="Region"   
      DataValueField="RegionID" Height="60px">  
</telerik:RadListBox> 
<asp:SqlDataSource ID="Regions_SqlDataSource1" runat="server"   
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"   
    SelectCommand="SELECT [RegionID], [Region] FROM [NC_CT_Regions]"></asp:SqlDataSource>  
<asp:SqlDataSource ID="SelectedRegions_SqlDataSource" runat="server"   
    ConnectionString="<%$ ConnectionStrings:SiteSqlServer %>"   
    SelectCommand="SELECT PreferenceValue FROM NC_EmployeePreference WHERE PreferenceTypeID = '4' AND EmpID = @EmpID">  
    <SelectParameters>  
        <asp:QueryStringParameter Name="EmpID" QueryStringField="EmpID" />  
    </SelectParameters>  
</asp:SqlDataSource> 

Joseph
Top achievements
Rank 2
 answered on 26 Jan 2010
3 answers
132 views
Hi,
      I have upgraded to the 2008.2.1001.35 release of RadTools.
I had implemented your solution for displaying the RadEditor with a single pixel border (to look like a simple imput box) using the Default skin.
The solution does not work for the Outlook skin.

Can you provide a modification to that solution which works with the Outlook skin?

This solution you provided was taken from documentation section your Web site.

Thanks, Andy
Rumen
Telerik team
 answered on 26 Jan 2010
3 answers
508 views
Hello,

currently I have ~300 rows and over 21 columns of data.(Both of those will rise over time) And I'm also implementing paging. It takes a long time to switch between pages, because RadGrid is accessing the Database each time I switch a page, is it possible to load all the data into the RadGrid, for all pages, so when I would change pages it would just show those from cache or somewhere and reduce the time taking between those page changes?

Thanks in advance and regards,
Thomas
Pavlina
Telerik team
 answered on 26 Jan 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?