Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
139 views
How work disposed event, only work F4+ALT (dispose)

protected

 

void RadWindow1_Disposed(object sender, EventArgs e)

 

{

dsSektor.DataBind();

}

 

Sinan
Top achievements
Rank 1
 answered on 15 Jan 2010
1 answer
108 views
Hi to all !

I  have RadAjaxPanel and urlrewriter (IsapiRewrite4) in my application.
As you see i use javascript functions for ClientEvents.
I have a simple asp:LinkButton on my page.
My first problem was that i could not postback to this page  when i turned on urlrewriter. I solved it by direct setting
PostBackUrl property for linkbutton. Now it os ok

But ajax functions do not called anymore with rewriter. Please help me, what should i do to force it work?

Thanks a lot

<

RA:RadAjaxPanel OnAjaxRequestError="AjaxRequestErrorHandler" id="main" runat="server" ClientEvents-OnRequestStart="ShowWait(); ..." ClientEvents-OnResponseEnd="EndWait(); ...">

 

Veli
Telerik team
 answered on 15 Jan 2010
6 answers
260 views
That's it, any ideas? I think it's tied to a registry problem maybe, this seems to be the case with other installers that give this message. Tried reboot, clearing temp folder, re-downloading installer, and searching regex for telerik all to no avail.

Thanks
Andrey
Telerik team
 answered on 15 Jan 2010
1 answer
107 views
Hi,

When I set AllowPaging="True" and from codebehind

RadFileExplorer1.Grid.PageSize=9
it works

RadFileExplorer1.Grid.PageSize=10
PAGING IS NOT WORKING!

RadFileExplorer1.Grid.PageSize=11
it works

Strange but true...

Regards,
Marc
Fiko
Telerik team
 answered on 15 Jan 2010
1 answer
249 views
Hi,

Im trying out the sample at http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html
Here is my page: http://www.ximnet.com.my/aspnet35/test_grid.aspx.

However, the page doesn't maintain the selected row after page change or after sorting.
Is there something wrong with my code?

ASPX:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test_grid.aspx.vb" Inherits="test_grid" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
 
    <script type="text/javascript"
        var selected = {}; 
        function RadGrid1_RowSelected(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (!selected[gID]) { 
                selected[gID] = true; 
            } 
        } 
        function RadGrid1_RowDeselected(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (selected[gID]) { 
                selected[gID] = null; 
            } 
        } 
        function RadGrid1_RowCreated(sender, args) { 
            var gID = args.getDataKeyValue("gID"); 
            if (selected[gID]) { 
                args.get_gridDataItem().set_selected(true); 
            } 
        } 
        function GridCreated(sender, eventArgs) { 
            var masterTable = sender.get_masterTableView(); 
            //check whether all items on the active page are selected 
            if (masterTable.get_selectedItems().length == masterTable.get_pageSize()) { 
                //find the checkbox in the header of the GridClientSelectColumn and set checked state for it - will work with AllowMultiRowSelection = true only! 
                var gridHeader = masterTable.get_element().getElementsByTagName("TH")[0]; 
                for (var i = 0; i < gridHeader.childNodes.length; i++) { 
                    if (gridHeader.childNodes[i].id.indexOf("columnSelectCheckBox") > -1) { 
                        gridHeader.childNodes[i].checked = "true"
                    } 
                } 
            } 
        } 
    </script> 
 
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:radscriptmanager id="RSM" runat="server" /> 
    <div> 
        <telerik:radgrid runat="server" id="gPoint" allowmultirowselection="True" showfooter="true" 
            runat="server" allowpaging="True" allowsorting="True" skin="Default" horizontalalign="NotSet" 
            width="100%" cellpadding="5"
                                <pagerstyle position="Top" mode="NextPrevAndNumeric" /> 
                                 <ClientSettings> 
   <Selecting AllowRowSelect="True" /> 
      <ClientEvents OnRowCreated="RadGrid1_RowCreated" OnRowSelected="RadGrid1_RowSelected" 
                   OnRowDeselected="RadGrid1_RowDeselected" OnGridCreated="GridCreated" /> 
 </ClientSettings> 
                                <mastertableview autogeneratecolumns="False" gridlines="None" ClientDataKeyNames="gID"><NoRecordsTemplate> 
 
<div style="text-align:left; vertical-align:middle;">No points found</div> 
</NoRecordsTemplate> 
 
<Columns> 
    <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" /> 
<telerik:GridTemplateColumn UniqueName="gID" SortExpression="gID" HeaderText="Serial"
<ItemTemplate> 
 
<%#DataBinder.Eval(Container, "DataItem.gID")%> 
 
</ItemTemplate> 
</telerik:GridTemplateColumn> 
 
</Columns> 
</mastertableview> 
</telerik:radgrid> 
    </div> 
    </form> 
</body> 
</html> 
 


VB:
Imports System.Data 
 
Partial Class test_grid 
    Inherits System.Web.UI.Page 
    Protected Sub gPoint_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gPoint.NeedDataSource 
        Dim dt As DataTable = New DataTable 
        Dim dc As DataColumn = New DataColumn 
        dc.ColumnName = "gID" 
 
        dt.Columns.Add(dc) 
 
        Dim dr As DataRow 
        Dim i As Integer 
 
        While i <> 50 
 
            dr = dt.NewRow 
            dr("gID") = System.Guid.NewGuid.ToString 
            dt.Rows.Add(dr) 
 
            i = i + 1 
 
        End While 
 
        gPoint.DataSource = dt 
 
 
    End Sub 
 
End Class 
 



Yavor
Telerik team
 answered on 15 Jan 2010
1 answer
143 views
I have a grid that I am using as a shopping cart with an editable quantity column. With items are in the cart, the quantity column is a 

GridNumericColumnEditor 

 

with all rows always in edit mode. The problem is that only the first row gets the width setting but the other rows ignore it. I tried to change the width with headerstyle, itemstyle, customeditorID, css but nothing seems to work. The class applied to the numeric box is "riTextBox riEnabled" and the rows that don't change defaults to style="width:125px;" How can I make all column the applied width of "col.NumericTextBox.Width = Unit.Pixel(21);" ?

 

<

 

telerik:GridNumericColumn DataField="Quantity" HeaderText="Quantity"

 

 

UniqueName="Quantity" HeaderStyle-Width="40px" ItemStyle-Width="40px" MaxLength="3" />

 

 


<td style="width:40px;"><span id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;"><input type="text" value="999" maxlength="3" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_text" name="grdOrderCart_ctl00_ctl05_RNTB_Quantity_text" class="riTextBox riEnabled" style="width:125px;" /><input style="visibility:hidden;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity" class="rdfd_" value="999" type="text" /><input style="visibility:hidden;margin:-18px 0 0 0;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_Value" class="rdfd_" name="grdOrderCart$ctl00$ctl05$RNTB_Quantity" value="999" type="text" /><input id="grdOrderCart_ctl00_ctl05_RNTB_Quantity_ClientState" name="grdOrderCart_ctl00_ctl05_RNTB_Quantity_ClientState" type="hidden" /></span></td>

 

protected void grdOrderCart_CreateColumnEditor(object sender, GridCreateColumnEditorEventArgs e)

 

{

 

if (e.Column.HeaderText == "Quantity")

 

{

e.Column.ItemStyle.Width =

Unit.Pixel(21);

 

 

GridNumericColumnEditor col = e.ColumnEditor as GridNumericColumnEditor;

 

col.NumericTextBox.Width =

Unit.Pixel(21);

 

col.NumericTextBox.CssClass =

"QuantityBox";

 

 

//e.ColumnEditor = new GridNumericColumnEditor(e.gr

 

}

}

Princy
Top achievements
Rank 2
 answered on 15 Jan 2010
3 answers
108 views
I am a little new at working with the Telerik controls but I am trying to work with a radcombobox inside a radgrid however I can't get it to  display when I run the application.  Below is what I have thus far.  I would appreciate any help on what the problem might be.  I am using ASP.NET 3.5, Windows XP Pro SP3, IE7 (although most will probably be on IE8 by the end of the year), RadControls for ASP.NET AJAX 2008.2723, preferred programming language is VB.NET. 

<telerik:GridDropDownColumn HeaderText="Copy Position To Grant" UniqueName="ComboboxGrantList" Display="true" DropDownControlType="RadComboBox" HeaderStyle-Width="125" AllowSorting="true" Visible="true"  
                        DataSourceID="SqlDatasourceComboboxGrantTrackingNumber" ListTextField="GrantTrackingNumber" ListValueField="GrantID" ListDataMember="GrantID"></telerik:GridDropDownColumn> 

Thanks,
Alex


Radoslav
Telerik team
 answered on 15 Jan 2010
1 answer
198 views
hello my dear lords :
i looked for the change of  the font-family of databound items in radcombobox from a sqldatasource and so i got some instructions in telerik help ...
1-Tutorial: Creating a Custom Skin  :   http://www.telerik.com/help/aspnet-ajax/combo_appearancecustomskintutorial.html
   i did it step by step but it did n't work at all - I don't know what is my broblem but it did n't work
  my question about this tutorial is where are the skin files (css and etc)that combobox uses them such as Office2007???
  I go to this path ( \Program Files\Telerik\<Your Version of RadControls for ASPNET>\Skins\Office2007)and chage this
.RadComboBoxDropDown_Office2007<br> 
{<br> 
&nbsp;&nbsp; &nbsp;font12px "Segoe UI"Arialsans-serif;<br> 
&nbsp;&nbsp; &nbsp;color#333;<br> 
&nbsp;&nbsp; &nbsp;text-alignleft;<br> 

but it did n't work
i know doing this is not my solution and that was a client side job...
after that i change the path of (ComboBox.Office2007ChangeFont.css) from MySkin Folder To The root of my project and then attach it.at this time some(not all) pics have loaded into combobox but there is no font change
i aslo add some items from items property to combobox and changed their fonts to my desire fonts in design time but what about databound items from sqldatasource
in another thread someone had use this :
 <style type="text/css"
   .RadComboBoxDropDown 
   {     
      font-family:tahoma !important;
      font-size:9px !important; 
   }  
</style> 
but how can i tell combobox to use this style --- beside office2007 skin ---
office 2007 skin has own css files and so ...........

please help me about this , step by step like how to instructions...
because i have this peoblem in another components...
god bless you


Poul Henningsen
Top achievements
Rank 1
 answered on 15 Jan 2010
1 answer
137 views
I have a grid which has grouping.  I need to be able to drag and drop (reorder) within a group and between groups. While stepping through the code I can see that the Destination ItemIndex is update, but not the the Destination GroupIndex.  I need to know where within the group I am dropping the record so that it can be updated correctly in the database.  Is there anyway to do this without using the ItemIndex and looping through the recordset to find the index within a group?

Thanks,
Malcolm
Yavor
Telerik team
 answered on 15 Jan 2010
1 answer
86 views
The latest version we have is 5.5.1. Where can I find documentations on new version bug fixed and new features
We have license. Where to download the new version.  Thanks.
Stanimir
Telerik team
 answered on 15 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?