Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
189 views
I'm running into a problem with custom forms and client side population of resources.  When I do server side population, it works, but then I'm running into time out issues - and I just don't want to do it server side. I don't have those time out  issues client side, but there is a gotcha.

In the _populateResources function, the first for loop is never entered with Client Side population.  There aren't any event types that are populated.

Is this a known problem?
Shawn McCollum
Top achievements
Rank 1
 answered on 21 Apr 2010
1 answer
161 views
Hello,

I am working on a project that currently contains a RadGrid and RadFilter control for the grid.  It has been very helpful in getting the filtering that I need done!

However, in my grid, I have a DateTime column that has date and time in seconds.  The way the data in my database is set up, there are entries that only differ by seconds, so I want to be able to filter down to the "second" level.  When I use the RadFilter to filter on this column, it lets me type in the exact date and time (with seconds) I need and works as expected.  But when I apply the filter, if I had written the time in seconds, it automatically changes the look of the query to hh:mm tt.  Even though the query takes into account the seconds I entered, they are no longer displayed in my current filter. 

Is there currently any way to edit how date and time are displayed in RadFilter, or can I only get it shown as "mm/dd/yyyy hh:mm tt"?

Thanks!

EDIT:  Sorry for the double post!  I got a server error the first try, but apparently it still went through.
Nikolay Rusev
Telerik team
 answered on 21 Apr 2010
1 answer
276 views
I have a library that will read a PDF file from disk and convert page 1 to a bitmap, how do I place it in an image or binaryimage column in a grid without writing it back out to disk?

Thanks
Veli
Telerik team
 answered on 21 Apr 2010
4 answers
214 views
I have a grid with a master table and a detail/child table.  Both tables have a balance field.  The master table's balance field is the sum of it child balance fields.  When a child record is updated, I want the parent balance to reflect the change.  When I call Rebind() at the end of the UpdateCommand handler for a detail table, Get the following error.

"There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource."

I read a few treads related to this error but nothing helped for my particular circumstance.
Wyatt
Top achievements
Rank 1
 answered on 21 Apr 2010
7 answers
959 views

Hi,

I am trying out the lastest release of RadGrid Q2 2008 client side dataBind feature. When I tried to bind the data received from the Webservices the RadGrid doesn't bind. First it clears the current Grid data and it stays empty and when i tried to load for the 2nd time the data get loaded (i can see the data loaded) and then immediatly get cleared. Also one observation is that when i tried to add some alert before i bind the data then the Grid bind correctly. The sample code is given below. Can someone help me explain how to resolve this?

//Javascript
function ClientLoadGrid(){

GridService.Search(LoadGrid);

}

function
LoadGrid(result){

var ctrlID = "<%= RadGrid1.ClientID %>";

//alert(ctrlID + ' ' + result)    

var masterTable = $find(ctrlID).get_masterTableView();

masterTable.set_dataSource(result);

masterTable.dataBind();

}

//HTML
<telerik:RadGrid ID="RadGrid1" runat="server" PageSize="20" EnableViewState="true" Skin="Sunset" AllowPaging="true" AllowSorting="True" GridLines="Horizontal" Width="100%" >
<MasterTableView AllowMultiColumnSorting="True" AutoGenerateColumns="False" HierarchyLoadMode="Client" ClientDataKeyNames="EmployeeID" DataKeyNames="EmployeeID" EnableViewState="False" >
<Columns>
<telerik:GridBoundColumn DataField="EmployeeID" HeaderText="Employee ID" UniqueName="EmployeeID">
<ItemStyle Width="80px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" UniqueName="Title" />
</Columns>
</MasterTableView>
<PagerStyle AlwaysVisible="true" />
<FilterMenu EnableTheming="True" Skin="Sunset">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>

Thanks in advance
Sundar
 

Sebastian
Telerik team
 answered on 21 Apr 2010
1 answer
86 views
This is what my site looks like, pretty simple:

http://img.skitch.com/20100418-m8518amduh1bpkeujtixk3ajjb.jpg

I have been using the design editor to create the events for Add, Edit, and Delete.  The Add / Delete work like a charm, but the Edit has issues.  When I am editing a row, if I modify the Enabled and RemoteAccess values, the DB is updated and the values saved.  However, when I type in something into Username and try to update, I get no error, but nothing is updated, not even the Enabled and RemoteAccess values.

My SQL Command is the folllowing:

UpdateCommand="UPDATE [LabUser] SET [Username]=@Username,[Enabled]=@Enabled,[RemoteAccess]=@RemoteAccess WHERE [UserID] = @UserID"  

When troubleshooting, I changed @Username to "Foo" and when running the web page it updates correctly, so the issue has to do something with @Username.  This is not read-only and I've included it Username in the DataKeyNames.

Any idea what can be causing this behavior?  Thanks!






Veli
Telerik team
 answered on 21 Apr 2010
1 answer
86 views
Instead of doing the following
var url = args.get_item().get_cell("URL").getElementsByTagName('a')[0];

Is there a way to use jQuery to find objects after a call to get_cell?  Ive got a rather complicated template and I'd like to use jQuery instead of going through a tag array...

Thanks,
Steve



Veli
Telerik team
 answered on 21 Apr 2010
1 answer
146 views
Hi,

I can use a usercontrol as a ItemTemplate for a GridTemplateColumn:
        Dim gct As New GridTemplateColumn 
        With gct 
            .HeaderText = "Schema" 
            .DataField = "Name" 
            .ItemTemplate = LoadTemplate("~/DynamicData/FieldTemplates/Text_List.ascx") 
        End With 
        GridView1.MasterTableView.Columns.Add(gct) 

In my usercontrol in the DataBinding event (or elsewhere) i can find the DataBindingContainer and NamingContainer and find all the data i need, but:

How do i know, in the usercontrol, that I've bound it to the datafield "name"? When using the template for more columns I have to know that...

Thanks in advance.

Erik
Veli
Telerik team
 answered on 21 Apr 2010
3 answers
223 views
Hi,
    I want to dynamically change pagesize of Radgrid as shown in your demo.
I am doing the following settings.

<PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
AllowPaging="True" PageSize="5"

But still page size dropdown doesn't seem to work.
Am i missing something here?


Thanks.
Pavlina
Telerik team
 answered on 21 Apr 2010
3 answers
140 views
I am upgrading my web site from the old ASP.NET controls to the ASP.NET AJAX controls.  The grids looked fine in development on my PC.  After publishing the site to the test server, all of the grids dropped off the first column!

In IE8,  localhost was included in the websites to be displayed in Compatibility View by IE8, so I removed it.  Now the first columns are missing when I run my site locally.

I tried setting MasterTableView to width 100%, but this had no effect.

Anyone know why this is happening?  Thanks.
Dan
Dimo
Telerik team
 answered on 21 Apr 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?