Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
I have created a RadWindow/RadGrid combination that displays the RadWindow when a row on the grid is doubled clicked. I have javascript methods in both the RadWindow asp page and the grid's page (see code below) now when the window closes I need the NeedDataSource event to be fired when the rebind in the javascript is executed. I don't think that I am wiring the event correctly or performing the process correctly. Can you provide some advise?

RadWindow page javascript:

function CloseAndRebind {
    GetRadWindow().BrowserWindow.RefreshGrid(arg);
    RadWindow().Close();
}

RadGrid page javascript:

function RefreshGrid(arg) {
    $find("<%= RaidAjaxManager1.ClientID %>").AjaxRequest("Rebind");
}

Please note that the RadGrid is the UpdateControl in the RadAjaxManager. Also, the grid does appear to have an effect of all rows being highlighted on the rebind but the NeedDataSource is never called.

Thanks,

Steve Holdorf
Steve Holdorf
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
91 views
Hi,

I am working on a asp.net 2.0 project. We used telerik controls very heavily.

I open a popup window from another popup window, when I put cursor in any input, dropdown, date time controls, Cursor blinks slow, then it blinks very fast, after some time again slow.
This thing is keep on going. Looks like cursor is flicking or something.

Have anyone come up with this scenario?, I will really appreciate if someone could help me.

Thanks
Galin
Telerik team
 answered on 06 Aug 2012
2 answers
153 views
  • I am using MS Visual Studio 2010 in a 3.5 environment.
  • I am using Microsoft Vista (32 bit)
  • The database is currently located on an SQL 2005 server.
  • I am using RadGrid & tools, version 2012.1.411.35
  • I am using both Chrome (18.0.1025.168) and Internet Explorer (8.0.7600.16385)
  • I am programming in VB.net

I have a rad grid with three boolean fields in it.  The boolean fields show up as checkboxes.  I would like the end user to be able to click these and toggle the value WITHOUT having to click the Edit command first.

How can I do this?
Rick
Top achievements
Rank 1
 answered on 06 Aug 2012
1 answer
77 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
269 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
183 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
149 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
273 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
90 views
Moved to another place
Rumen
Telerik team
 answered on 06 Aug 2012
4 answers
447 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
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?