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

Hi,

I am using radgrid with Inplace EditMode and its working fine when there is data available in grid.

 
But when there is no any data in grid, and then on clicking on “Add Row” the grid is getting blank without any new row for inserting data

 

Please get the details decription in attached file.


Thanks
Mukesh


Mukesh
Top achievements
Rank 1
 answered on 04 Aug 2010
2 answers
167 views
Is there an easy way to minimize column width?  For example for Edit and Delete columns the minimum column width would always be the same based on the style characteristics and the text for the two columns.  For those familiar with Android development I'm looking for something similar to android:width="wrap_content" for a View.  I don't want to specify an exact width like 50px I want to set it to "minimum" or something.
Jeremy
Top achievements
Rank 1
 answered on 04 Aug 2010
5 answers
532 views

Hi

I am using this code to display a RAD Date Picker (I am using Rad Ajax Control for ASP .Net Version Q3 2008) . My requirement is on Tab off(lost focus) calendar popup should be hide. This is working while I added “OnBlur” event on “DateInput” control. But now it is creating a new problem. It is not showing new selected date in DatePicker control. For example if DatePicker already have “09/09/2008” as date value and now I have selected “09/08/2008” as new date, This new selected date is not coming in DatePicker control (If I commented ctl.hidePopup() statement from _txtClaimantDOI_OnBlur()   Then I am able to see new selected date in date picker control).

<telerik:RadDatePicker ID="txtClaimantDOI"  runat="server" Skin="Office2007" EnableEmbeddedSkins="false" Width="70px">

<DateInput onfocus="_txtClaimantDOI_OnFocus()"  OnBlur="_txtClaimantDOI_OnBlur()"  >

</DateInput>

<Calendar DayNameFormat="FirstLetter" FirstDayOfWeek="Default" EnableMultiSelect="false"

    UseColumnHeadersAsSelectors="False" 

    UseRowHeadersAsSelectors="False" TabIndex="0">

</Calendar>

<ClientEvents OnDateSelected="DateSelected" />

<DatePopupButton Visible="true" Style="display: none;" TabIndex="0" />

</telerik:RadDatePicker>

<telerik:RadScriptBlock ID="txtClaimantDOIScriptBlock" runat="server">

<script language="javascript" type="text/javascript">

//<![CDATA[

function _txtClaimantDOI_OnFocus() {

    var ctl = $find("<%= txtClaimantDOI.ClientID %>");

    ctl.showPopup();

}

function _txtClaimantDOI_OnBlur() {

    var ctl = $find("<%= txtClaimantDOI.ClientID %>");

    ctl.hidePopup();   

}

//]]>

</script>

</telerik:RadScriptBlock>

 

Please help me in this.

Regards
Atul Kumar Srivastav

Tom Robertson
Top achievements
Rank 1
 answered on 03 Aug 2010
2 answers
408 views
Hello,

I have a RadGrid with three groups.  I would like to always have one and only one group expanded at a time.  I have successfully configured the grid to have the first group by doing this in the ItemDataBound event:
If TypeOf e.Item Is GridGroupHeaderItem Then
    Dim item As GridGroupHeaderItem = e.Item
    If item.GroupIndex = "0" Then
    item.Expanded = True
    End If
End If

I tried this code to handle expanding only the "clicked on" header item, but it does not work:

Private Sub rgvReportGrid_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgvReportGrid.ItemCommand
    If e.CommandName = RadGrid.ExpandCollapseCommandName Then
        Dim item As GridGroupHeaderItem = e.Item
        Dim groupIndex As String = item.GroupIndex.ToString
        Dim grid As RadGrid = source
        For Each gridItem As GridItem In grid.MasterTableView.Controls(0).Controls
            If TypeOf (gridItem) Is GridGroupHeaderItem Then
                Dim groupHeaderItem As GridGroupHeaderItem = gridItem
                If groupHeaderItem.GroupIndex.ToString = groupIndex Then
                    groupHeaderItem.Expanded = True
                Else
                    groupHeaderItem.Expanded = False
                End If
            End If
        Next
    End If
End Sub

Even though I'm setting the .Expanded attribute to True (I observe that one item gets hit during debugging), all groups end up collapsed.

I know I can use GroupLoadMode="Client" and try to handle things in Javascript, but I'm not really sure where to begin with that.  I guess I'd prefer to not round-trip to the server, but I'll take any code that works at this point. 

Thank you!
Quinten
Top achievements
Rank 1
 answered on 03 Aug 2010
4 answers
262 views

I have a relatively small asp.net web site project that I recently started using Telerik with.

It seems that since I introduced telerik into the project, every hour or so my VS 2008 will fail to build the website part of the solution, with the error:

Validating Web Site

(0): Build (web): Exception of type 'System.OutOfMemoryException' was thrown.

Closing and restarting VS fixes this issue.

Does anyone have any idea why this would be happening?

Aravinda
Top achievements
Rank 1
 answered on 03 Aug 2010
2 answers
65 views
I am implementing a Mega Drop-Down menu and am having a couple of troubles.  I have a dropdown list and also a textbox implementing jQuery's autocomplete.  When either the dropdown list items or the autocomplete items take focus, the menuitem collapses....this leaves me with the dropdown list items expanded or the autocomplete items expanded....but the menu closed.  How do I keep the menu item open when the focus moves to the ddl items or the autocomplete items?

Thanks!
Travis Martin
Top achievements
Rank 1
 answered on 03 Aug 2010
1 answer
80 views
Hello, I'm using the RadGrid with grouping and aggregate columns. Can I generate a "Custom Aggregate" column from the result of the sum of 2 others aggregate columns?
Martin
Telerik team
 answered on 03 Aug 2010
1 answer
131 views

I have few RAD combo boxes in my form view. I'm using ObjectDataSource for the RAD Combo boxes where "EnableAutomaticLoadOnDemand" is used. Other RadComboBoxes are populated on load with hand coded data source and data bind.

I'm using "EmptyMessage" and "Allow Custom Text" properties to get water mark empty message for all of them.

While entering the details or while submitting the form I want to validate that the RAD combo boxes should have selected item, selected text and selected value. I don’t want any custom text to get submitted. I just want to use the "Allow Custom Text" property to get water mark empty message and to do item request where "EnableAutomaticLoadOnDemand is used.

 Please give me example to validate in client side or server side or both. 

Regards
Pavlina
Telerik team
 answered on 03 Aug 2010
4 answers
92 views
Hi,
We have multiple projects hosted on same IIS 6 server, some of legacy projects need "run www service in iis 5.0 isolation mode" in IIS6,

But once we checked "run www service in iis 5.0 isolation mode" in IIS6, VS2008 web projects(we used RadGrid...) failed.

Any suggestion for how to run RADGrid/VS2008 web application under IIS6 "run www service in iis 5.0 isolation mode"?

thanks

daniel
daniel liu
Top achievements
Rank 1
 answered on 03 Aug 2010
2 answers
94 views
I'm using a RadWindow to display the View and Edit window for a record in a RadGrid row as the below code shows.  I'm trying to adjust the position of the RadWindow to be slightly above the default center of the screen by using the Top/Left attributes, but setting them doesn't seem to have any affect and the position of the RadWindow remains at center, I'm not sure what I'm doing wrong, any help is appreciated



        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" OnItemCreated="RadGrid1_ItemCreated"
            OnDeleteCommand="RadGrid1_DeleteCommand" GridLines="None" AllowSorting="True"
            Skin="Web20" PageSize="20" FooterStyle-Wrap="false">
            <MasterTableView EditFormSettings-PopUpSettings-Modal="True" EditMode="PopUp" DataSourceID="SqlDataSource1"
                AutoGenerateColumns="False" DataKeyNames="ID" ShowFooter="True" AllowPaging="True">
                <Columns>
                    <telerik:GridBoundColumn DataField="Date Submitted" DataType="System.DateTime" HeaderText="Date Submitted"
                        ReadOnly="True" SortExpression="Date Submitted" UniqueName="Date Submitted">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ReqCategory" HeaderText="ReqCategory" SortExpression="ReqCategory"
                        UniqueName="ReqCategory" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title"
                        UniqueName="Title">
                    </telerik:GridBoundColumn>
                    <%-- <telerik:GridBoundColumn DataField="Description" HeaderText="Description"
                        SortExpression="Description" UniqueName="Description">
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn DataField="Owner" HeaderText="Owner" SortExpression="Owner"
                        UniqueName="Owner">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Requestor" HeaderText="Requestor" SortExpression="Requestor"
                        UniqueName="Requestor">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"
                        UniqueName="Status">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Requested Completion" HeaderText="Requested Completion"
                        SortExpression="Requested Completion" UniqueName="Requested Completion">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Estimated Completion" HeaderText="Estimated Completion"
                        SortExpression="Estimated Completion" UniqueName="Estimated Completion">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Ticket Submitted By" HeaderText="Ticket Submitted By"
                        SortExpression="Ticket Submitted By" UniqueName="Ticket Submitted By">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="View Ticket" UniqueName="TemplateViewColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="ViewLink" runat="server" Text="View"></asp:HyperLink>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="Edit Ticket" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn HeaderText="Drop Ticket" Text="Drop" CommandName="Delete"
                        UniqueName="Drop" ConfirmText="Are you sure you want to drop this ticket?" ConfirmTitle="Drop Ticket"                 ConfirmDialogType="RadWindow">
                    </telerik:GridButtonColumn>
                </Columns>
                <EditFormSettings>
                    <PopUpSettings Modal="True"></PopUpSettings>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>


        <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
              Behaviors="Close" InitialBehaviors="None" >
            <Windows>
                <telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="500px"
                    Width="550px" ReloadOnShow="true" ShowContentDuringLoad="false"
                    Modal="true" VisibleStatusbar="False" Top="200px" Left="174px" />
            </Windows>
        </telerik:RadWindowManager>


PS; Forgive me for not formatting the code above, the code got pretty messy when I was trying to format it and so I left it as is to make it, hopefully, easier to read.
Richard
Top achievements
Rank 1
 answered on 03 Aug 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?