Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
69 views
I have the following code: 

<telerik:RadGrid ID="AuditRadGrid" runat="server" AllowPaging="true" AllowCustomPaging="true"
    OnNeedDataSource="AuditRadGrid_NeedDataSource">
    <ExportSettings HideStructureColumns="true"  IgnorePaging="true"/>
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="ActivityDate" CommandItemDisplay="Top"
        CommandItemStyle-HorizontalAlign="Right">
        <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToExcelButton="true"
            ShowExportToCsvButton="true" ShowRefreshButton="false" />
        <Columns>
            <telerik:GridBoundColumn HeaderText="Date" DataField="ActivityDate" Visible="true" />
            <telerik:GridBoundColumn HeaderText="Change" DataField="ActivityDescription" Visible="true" />
            <telerik:GridBoundColumn HeaderText="Username" DataField="ActivityByUserName" Visible="true" />
        </Columns>
        <PagerStyle AlwaysVisible="true" />
    </MasterTableView>
</telerik:RadGrid>

This works as expected when I click either Excel or CSV export icon. The problem is that after clicking an export icons the first time, no other submits on the page work.

I refresh the page, click Excel, an Excel file is exported. I click CSV, and nothing happens. I click my other submit buttons on the form, and nothing happens.

Anyone have  ideas on this?


rg
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
235 views
I've got some problems with the clientside sorting.  It only seems to be where I've got null values inside a column.  Interestingly, it doesn't work in any of the browsers, but it behaves differently, just all of them incorrectly.
@(Html.Telerik().Grid(Model)
.Name("DellGrid")
.DataKeys(keys => keys.Add(m => m.ServiceTag))
.DataBinding(dataBinding => dataBinding
.Ajax()
    .OperationMode(GridOperationMode.Client)
    .Select("Index", "DellSystem")
    .Update("Edit", "DellSystem"))
.Columns(columns =>
{
    columns.Bound(m => m.ServiceTag)
        .Title("Service Tag");
    columns.Bound(m => m.Family)
        .Title("Family");
    columns.Bound(m => m.LOB)
        .Title("LOB");
    columns.Bound(m => m.ModelNumber)
        .Title("Model Number");
    columns.Bound(m => m.ServiceDate)
        .Title("Service Date");
    columns.Bound(m => m.RetireDate)
        .Title("Retire Date");
    columns.Bound(m => m.User)
        .Title("Altiris User");
    columns.Bound(m => m.CurrentUser)
        .Title("Current User");
    columns.Bound(m => m.Whse)
        .Title("Location");
    columns.Bound(m => m.Name)
        .Title("Computer Name");
    columns.Command(commands =>
    {
        commands.Custom("Edit").ButtonType(GridButtonType.Image)
            .ImageHtmlAttributes(new { @class = "t-icon t-edit" })
            .Text("Edit")
            .Action("Edit", "DellSystem");
    }).Width(150);
})
             .Groupable()
             .Sortable()
             .Pageable(page => page.PageSize(20))
)


Also, when you sort a column,  the ImageHtmlAttributes section seems to be lost as I lose my icon for the edit button:
columns.Command(commands =>
{
    commands.Custom("Edit").ButtonType(GridButtonType.Image)
        .ImageHtmlAttributes(new { @class = "t-icon t-edit" })
        .Text("Edit")
        .Action("Edit", "DellSystem");
}).Width(150);

I've attached a few screen shots to demonstrate.

Any ideas?

Thanks,
-Sid.
Daniel
Telerik team
 answered on 06 Aug 2012
1 answer
154 views
Hi due to some requirements i m using 7 radeditors in one page.

Now, the problem is, the page is not at all loading when the site is hosted in a server. It takes almost 20 minutes for the page to load and by then the session is expired. 

Is there any workaround for this? Kind suggestion please? I'm using 2008 version of Telerik DLL.

Waiting for your reply...Please
Rumen
Telerik team
 answered on 06 Aug 2012
3 answers
122 views
i want to autocomplete and filtering Functionality in One/Same RadComboBox.

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx
Ivana
Telerik team
 answered on 06 Aug 2012
11 answers
233 views
I have a grid bound to an EntityDataSource control. Both the EntityDataSource and the grid have automatic CRUD operations enabled. And using two way data binding everything works as expected. But there are a couple of database fields not on the form, who still need their values to be set.

I thought something like this should do the trick:

var item = e.Item as GridEditableItem;

if
(item == null)
    return;

var values =
new ListDictionary();
item.ExtractValues(values);

values.Add(
"Field", "Value");
e.Item.OwnerTableView.InsertItem(values);

The above code is placed within the OnInsert- and OnUpdateCommand events of the grid. But it seems like the ListDictionary isn't updated with the onde containing the custom value. How can I achieve this? I can not imagine I'm the first one stumbling upon this, but I can't find anything on this subject on the forums.

I hope someone can help me out...


Hendrik
JD.
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
77 views
Moved to another place
Rumen
Telerik team
 answered on 06 Aug 2012
4 answers
376 views
Hi,

I have a page with no masterpage which has two usercontrols. One user control has a form which submits the information and another with a grid which displays the information.

I want to be able to submit the form and update the information in other usercontrol:

default.asp
--->Usercontrol1
----------->Form with submit button

---Usercontrol2
----------->RadGrid


I've been looking at the below article but get object reference error
http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html


Do I have to add any additional code for this to work.

Thanks
Maria Ilieva
Telerik team
 answered on 06 Aug 2012
1 answer
124 views
Hello,

I would like to have a Context Menu for a Header of a RadGrid that consists of the "Columns" part of the normal Context Menu and some other options I'd like to add myself (the Menu should not have the other normal Options like "Sort Ascending" visible).
Is there an easy way to achieve that functionality for the Context Menu of the Header, or is there an easy way to implement Check Boxes for the Menu Items of the Context Menu control to look familiar to the "Columns" part of the Header Context Menu of the Rad Grid control?

Thank you very much in advance,
Robin
Eyup
Telerik team
 answered on 06 Aug 2012
2 answers
110 views
I've recently developed a new page on my Windows 7 64 machine almost fully composed of Rad controls.  I'm having some weird display issues when deploying my code to the server (Windows Server 2008 R2 Enterprise SP1).  All of the functionality is there but the display can be different and odd for certain controls.  I've attached an example of a button using the Simple skin both from Windows 7 and Server 2008 using the exact same code and version of Telerik.Web.UI.dll (ver 2011.3.1305.40) in the bin directory.  I was going to attach my web.config but can't here.  I'm using the same web.config both in prod and dev.  What would cause the display to be so radically different in both places?  Keep in mind this is using IE9.  I've noticed a few of the smaller issues to go away when using IE8.  Let me know if you need more information.  Thank you.
Slav
Telerik team
 answered on 06 Aug 2012
1 answer
58 views

Hello;

We are facing a weird behavior with rad editor which happens on a some machines on different enviroment than development.

am getting the following javascript error message:

Message: Object doesn't support this action
Line: 5
Char: 32749


Details:
i have a rad editor that have the following properties:

<rad:RadEditor ID="EmailBody" runat="server" Width="100%" ToolsFile="~/_CSS/EditorBasicTools.xml" OnClientLoad="EmailBody_OnClientLoad" StripFormattingOptions="NoneSupressCleanMessage" Skin="Default" SpellCheckSettings-DictionaryPath="~/App_Data/RadSpell/" SpellCheckSettings-DictionaryLanguage="en-US" EditModes="Design" ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, IndentHTMLContent, EncodeScripts, OptimizeSpans">
<ContextMenus>
<rad:EditorContextMenu Enabled="false" TagName="IMG">
</rad:EditorContextMenu>
<rad:EditorContextMenu Enabled="false" TagName="A">
</rad:EditorContextMenu>
</ContextMenus>
</rad:RadEditor>

 

Do you have any ideas why this happening to me

Am using 2011.3.1305 telerik controls version with IE Browser.

Rumen
Telerik team
 answered on 06 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?