Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
946 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
85 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
85 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
140 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
222 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
129 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
1 answer
74 views
Seems if you set OnClientSelectedIndexChanging of your RadListBox  to the following function:

 

 
function OnClientSelectedIndexChanging_Handler(sender, args) {  
 args.set_cancel(true);  

you can't use the arrow keys to move off the item at index 0. If you click another item in the list with the mouse, you can use the up and down arrows all you want, until you hit the item at the top of the list (i.e. index 0). Once this item is selected, you are trapped on it in terms of keyboard navigation.

P.S. This bug was noticed under the 2009 Q2 Control Set
Simon
Telerik team
 answered on 21 Apr 2010
2 answers
138 views
I am using a single telerik:GridTemplateColumn with an ItemTemplate to list a grid of articles.  I set BorderStyle="None" and GridLines="None" but every 2nd row has a gray border seperating the row.  I thought a border must be being used for the alternate rows, so I added AlternatingItemStyle-BorderStyle="None" but it is still there.  Any ideas?
Neil
Top achievements
Rank 1
 answered on 21 Apr 2010
1 answer
260 views
Hai,,,,,
       It as been a long tme to add new thread.Today My requirement is to Display a grid without any borders even column seperators.
       and custom header css.Can anybody help my providing the css.Its an urgent Requirement.Hope some one will respond quickly..
                                                                                                                                                             thanks&regards
                                                                                                                                                                    vish U
Princy
Top achievements
Rank 2
 answered on 21 Apr 2010
1 answer
66 views
I'm having problems with RadControls Q2 2006. At this moment i'm not interested on an upgrade of versions. the web application is in ASP.NET 1.1 and is using this version of teleriks.

The error i'm having is related to javascript. The resources were added to project with the .js files instead adding the binary files of telerik controls.

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Timestamp: Tue, 20 Apr 2010 15:02:54 UTC

 

 

Message: Unspecified error.

Line: 1

Char: 14114

Code: 0

URI: http://localhost/mysite/RadCalendar.js

 

 

Message: Object doesn't support this property or method

Line: 1

Char: 59048

Code: 0

URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js

 

 

Message: 'RadHelperUtils' is null or not an object

Line: 1

Char: 3021

Code: 0

URI: http://localhost/mysite//RadControls/Calendar/Scripts/1_7_2/RadCalendar.js

 

 

Message: Object doesn't support this property or method

Line: 1

Char: 59048

Code: 0

URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js

 

 

Message: 'RadHelperUtils' is null or not an object

Line: 1

Char: 3021

Code: 0

URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js

 

 

Message: Object doesn't support this property or method

Line: 1

Char: 59048

Code: 0

URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js

Can somebody help please.

Best regards


Vinkel
Top achievements
Rank 1
 answered on 21 Apr 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?