Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
58 views

Below is a portion of my grid, which uses a DetailTable with its own CommandItemTemplate

<DetailTables>       
<telerik:GridTableView Name="PersonConditionGrid" runat="server" DataKeyNames="PersonConditionId" Caption="Conditions linked with this Person"
    DataSourceID="PersonConditionViewDataSrcId" TableLayout="Auto" Width="580px"
    AutoGenerateColumns="false" CommandItemDisplay="Top" ShowFooter="true"  FooterStyle-BorderStyle="Solid" FooterStyle-BorderWidth="2pt">
<ParentTableRelation>
    <telerik:GridRelationFields DetailKeyField="PersonId" MasterKeyField="PersonId" />          
</ParentTableRelation>
<HeaderStyle Font-Bold="true" />
<CommandItemTemplate>
    <table width="100%">
    <tr>
        <td align="left">
            <asp:LinkButton ID="btnAddNew" runat="server" CommandName="InitInsert"><asp:Image ID="imgAddNew" runat="server" ImageUrl="~/Images/button-New-24.gif" /> Add New Condition</asp:LinkButton>
            <asp:LinkButton ID="btnSaveNew" runat="server" CommandName="PerformInsert" ValidationGroup="EntryClass_VG"><asp:Image ID="imgSaveNew" runat="server" ImageUrl="~/Images/button-Save-24.gif" /> Save Condition</asp:LinkButton>
            <asp:LinkButton ID="btnEdit" runat="server" CommandName="EditSelected"><asp:Image ID="imgEdit" runat="server" ImageUrl="~/Images/button-Edit-24.gif" /> Take Action on Condition</asp:LinkButton>
            <asp:LinkButton ID="btnSaveEdit" runat="server" CommandName="UpdateEdited" ValidationGroup="EntryClass_VG"><asp:Image ID="imgSaveEdit" runat="server" ImageUrl="~/Images/button-Save-24.gif" /> Save Condition</asp:LinkButton>
            <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" CausesValidation="false"><asp:Image ID="imgCancel" runat="server" ImageUrl="~/Images/button-Cancel-24.gif" /> Cancel Edit</asp:LinkButton>
            <asp:LinkButton ID="btnDelete" runat="server" CommandName="DeleteSelected" OnClientClick="return confirm('Are you sure you want to delete the selected record?');"><asp:Image ID="imgDelete" runat="server" ImageUrl="~/Images/button-Del-24.gif" /> Delete Condition</asp:LinkButton>
        </td>
    </tr>
    </table>
</CommandItemTemplate>
<Columns>
    <telerik:GridTemplateColumn UniqueName="SiteAccessConditionName" HeaderText="Access Condition Name" HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Center">
    <ItemTemplate>

After a Save operation, the detailTable remains open, with the new item displayed in the grid (as expected).

After a Cancel or Delete operation, the DetailsTable collapses and the user has to expand the item again.

Is there some way to prevent the DetailTable from collapsing after the Cancel or Delete operation?

Marin
Telerik team
 answered on 17 Sep 2012
1 answer
57 views
I have a need to save the grid information as an Excel document and save it to SharePoint.  Does anyone know of a way to use the export feature to do this?  If I can get the physical file, I already know how to upload it to SharePoint.
Tsvetoslav
Telerik team
 answered on 17 Sep 2012
3 answers
100 views
Is it possible to have the scheduler show a time period of 5 am today through to 4:59 am tomorrow? So it is still a 24 hour period but it overlaps the strict "today" boundary of midnight.

Thanks,

Jonathan
Boyan Dimitrov
Telerik team
 answered on 17 Sep 2012
1 answer
72 views
Hi to all,i want to use RAD Controllers in my project but i don't know how to use those controllers.so please guide me.
please,
please,
please,
Shinu
Top achievements
Rank 2
 answered on 17 Sep 2012
7 answers
483 views
hi

i am using Q1 2007 version. when i type in a editor and click on button i want to set cursor position to the end of text

Right now problem is  when i click on button, page is  post back, so focus is getting lost.

please give me the solution ASAP.

regards

rahul.


Rumen
Telerik team
 answered on 17 Sep 2012
1 answer
132 views
Hi,

Is it possible to dynamically change a Radgrid's EditMode from "InPlace" to "PopUp" from a server side event?

I have a grid in which I want to do Inline editing for an Insert, but a custom web control for Edit.

I tried using the ItemCommand event and changing the grid's EditMode value (see example below), but it still opens in Inline mode.

 

 

protected void radGridPeople_ItemCommand(object sender, GridCommandEventArgs e)
{
    try
    {
        if (e.Item.OwnerTableView.Name == "PersonConditionGrid")
        {
            if (e.CommandName == RadGrid.EditSelectedCommandName)
            {
                e.Item.OwnerTableView.EditMode = GridEditMode.PopUp;
                e.Item.OwnerTableView.EditFormSettings.UserControlName = "PeopleMaint/PersonCondAction.ascx";
            }
        }
    }
    catch (Exception ex)
    {
        ErrorHandler.WriteErrorLog(GenFunctions.CurrentUserName, System.Reflection.MethodBase.GetCurrentMethod().Name, ex);
        generalCustomValidator.ErrorMessage = ex.Message + "<br/>" + ex.StackTrace;
        generalCustomValidator.IsValid = false;
    }
}

 

 

 

Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
104 views

Hello Telerik Team,

I have used RadToolTip in my site extensively. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing formatting issues related to RadToolTip.

Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35

I have gone through on all release notes between the above two versions and as per the release note of “Q1 2012 (version 2012.1.215)” there is a improvement in default padding and/or margin to the content area and Tooltip title element for better UI and visualization. But these formatting improvements forced to changes the other controls position present inside the RadToolTip control since in the new Telerik version the RadToolTip captures the more padding space which minimize the actual content area where the other controls are present.

To resolve this issue I have to change many of the pages in our project but it takes huge time to do changes for all RadToolTip. Kindly suggest, is there any way to apply the older padding to RadToolTip or override the RadToolTip default padding?

Please suggest any workaround to get rid from these formatting issues.  

Thanks,
Ashish

Ashish
Top achievements
Rank 1
 answered on 17 Sep 2012
1 answer
81 views
Hello Telerik Team,

I have a radgrid with a HyperlinkColumn, i'm binding a string type field. Let say "Order Number" field is a String Data Type in the database, which accepts alphanumeric. But for some clients, they use only Integer Type "Order Number", they want to sort like an integer.

1)  First constraint, i cannot change the database type field per client. This would be a standard string type field across all client databases.
2) I mention the DataType Property for HyperlinkColumn as System.Int32, but sorting still sort like a string. Ex.: 1, 12, 13, 2, 21, 22 etc..

Any work arounds please. Its an urgent req..

Thanks,
Phani.


Eyup
Telerik team
 answered on 17 Sep 2012
2 answers
65 views
Hi,

I'm trying to translate the tooltips in the grid pager in the code-behind, but whatever I try, they stay in English. I tried using this code in the Page_Load, the Page_Init and the OnItemCreated event, but the tooltip text doesn't change. Am I doing something wrong?
ProductList.PagerStyle.NextPageToolTip = "sometext";



Thanks!

 

 

Michael
Top achievements
Rank 1
 answered on 17 Sep 2012
7 answers
97 views
Hello Telerik support. I'm not sure if this is a known issue, but I just ran into something weird and I wanted to ask about it. I have a set of test upload files that I made, Test1.txt, Test2.txt, etc, and when I try to upload it with the ASyncUpload control the file progress bar stays yellow and the upload never completes. The files have nothing inside of them, and are just new files typed as a .txt file. I've tested it on IE 8 and Firefox 4 and they both never complete the upload or display any errors. However, when I added some text inside of the test files the uploads completed correctly. Strangely enough, when I tested the files on the Telerik demo pages for AsyncUpload they did complete the upload. This shouldn't be a problem unless users try and upload blank files accidentally, but I would like some way to detect this condition and display an appropriate error message and kill the upload if it happens.
Peter Filipov
Telerik team
 answered on 17 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?