Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views

Hi,

I'm using a grid with auto-generated columns.  Datasource is assigned to the grid at run time (assigned a datatable).

I'm using scroll wth frozen columns:

 

<

 

Scrolling AllowScroll="True" UseStaticHeaders="true" FrozenColumnsCount="7" />

 


There is a large number of columns, i.e. 100+ (a lot of data).   I also assigned column width in code at ColumnCreated time.

The grid displays perfectly.  It displays about 26 columns at any given time with first 7 frozen. So, when the grid first displays, one can see columns 1 through 7 (frozen) and 8 through 25  When I click to the right of the scrollbar, I expect to see columns 1 through 7 (frozen) and 26 through 43.  Instead, the grid would display 1 through 7 and 35 through 52, essentially skipping some columns.  Not good from a user's standpoint.

What would account for this odd behavior?  Would hidden columns cause this?  I appreciate any advise.

Thanks.

Barry



Pavlina
Telerik team
 answered on 24 Sep 2009
1 answer
158 views
Hi,
  I have a radgrid on my aspx page. I am navigating thru my custom page. I ahve to get the correct page index to pass it to my database based on which the data i get to be bind.

I am currently using RadGrid1.CurrentPageIndex for knowing the Index where I am.

But actually during my testing i found it is wrong.

What is variable or field name do i need to check to get the correct Page Index to bind my custom page to.

Appreciate your early response.

Thanks
Pavlina
Telerik team
 answered on 24 Sep 2009
3 answers
108 views
Hello,


       I am using Telerik 2009.2.826.35  ajax controls .
       Unfortunately, whenever I try to set the controls to be updated by the ajaxmanagerproxy everything
       is messed on the screen, as you can see below. I am use a Page Control.
       Does anyone know why this should be happening?
       I tried many variations of the controls configuration without success. I also looked at samples, but
       none of them has something compared to my configuration .

       Thanks.
       See more details below.....

330|updatePanel|ctl00_ctl00_Body_CustomerList_ItemListGridPanel|
|

4862|updatePanel|ctl00_ctl00_Body_CustomerList_TransactionsGridPanel|
Transaction # Description Date Created    
4 1 09/16/2009 12:00  
5 2 09/16/2009 03:49  
6 15 09/16/2009 03:50  
|




       I have a master page with the following

        <form id="Main" runat="server" width="100%">
           <asp:ScriptManager ID="ScriptManager1" runat=server />
           <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAjax="true" runat="server">
           </telerik:RadAjaxManager>       
           .......
        </form>

         A Default page ......
                <%@ Register Src="List.ascx" TagName="List" TagPrefix="Customer" %>
                 <%@ Register Src="Item.ascx" TagName="Item" TagPrefix="Customer" %>
                <asp:Content ID="BodyContent" ContentPlaceHolderID="Body" runat="server">

                 <asp:UpdatePanel ID="CustomerUpdatePanel" runat="server">
                  <ContentTemplate>
                 <Telerik:RadMultiPage ID="CustomerMultiPage" runat="server">
                            <Telerik:RadPageView ID="ListView" runat="server">
                                 <Customer:List ID="CustomerList" runat="server" />
                            </Telerik:RadPageView>
                            <Telerik:RadPageView ID="ItemView" runat="server">
                                   <Customer:Item ID="CustomerItem" runat="server" />
                            </Telerik:RadPageView>
                  </Telerik:RadMultiPage>
                  </ContentTemplate>
                 </asp:UpdatePanel>
          </asp:Content>
           A list page control
                <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
               <AjaxSettings>
                     <telerik:AjaxSetting AjaxControlID="ItemListGrid">
                          <UpdatedControls>
                                     <telerik:AjaxUpdatedControl ControlID="ItemListGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
                                     <telerik:AjaxUpdatedControl ControlID="TransactionsGrid" LoadingPanelID="RadAjaxLoadingPanel2" />
                         </UpdatedControls>
                     </telerik:AjaxSetting>
                     <telerik:AjaxSetting AjaxControlID="TransactionsGrid">
                         <UpdatedControls>
                                      <telerik:AjaxUpdatedControl ControlID="TransactionsGrid" />
                         </UpdatedControls>
                      </telerik:AjaxSetting>
               </AjaxSettings>
              </telerik:RadAjaxManagerProxy>
             <p>
                    <telerik:RadTextBox ID="CustomerNamePart" Runat="server"  Width="370px" style="display:inline">
                    </telerik:RadTextBox>
                    <asp:Button ID="FilterButton" CssClass="Button" runat="server"
                                   CausesValidation="false" Text="Search" OnClick="Search_Click"
                                     Height="26px"/>    
                     <br />
               </p>
    
              <Telerik:RadGrid ID="ItemListGrid" runat="server" .../>
              <Telerik:RadGrid ID="TransactionsGrid" runat="server" .../>





John,
Martin
Telerik team
 answered on 24 Sep 2009
2 answers
225 views
Hi,

I have a radgrid with detail table and i would like to disable certain rows but keep the expand button enabled.
In the grid prerender event i have this code :
foreach (GridDataItem item in (sender as RadGrid).Items)  
{  
    if (DisableRow(item))  
    {  
        item.Enabled = false;  
        item["ExpandColumn"].Enabled = true;  
        (item["ExpandColumn"].Controls[0] as Button).Enabled = true;  
    }  
} 

But this doesn't enable the expandbutton, so i think setting the item to disabled will always force the expand button to be disabled as well.
I could set the font settings so the row would look disabled but then i wouldn't be able to check if it is enabled in client-side code, i need to do that to determine if a contextmenu may be shown or not.

Is there some other way i can achieve this?
Marco
Top achievements
Rank 1
 answered on 24 Sep 2009
6 answers
207 views
Hi all,

I have a RadGrid posted with data by use of GridBoundColumns. These columns/cells is given a fixed width and itemstyle-wrap set to false. This cause that full text in some cells isn't shown fully, and therefore I want to have a tooltip at each cell, showing the full content. I don't have the tooltip possibility at the GridBoundColumn, and cannot figure out how to do it afterwards by either OnItemCreated or OnDataBound?!

Can anyone tell me how to do?! :o)
Ahrensberg
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
135 views
Hello,

I have a RadGrid, with
<tlk:RadGrid ID="oGrid" runat="server" AutoGenerateColumns="False" Height="470px"  
        AllowPaging="True" PageSize="100" 
        OnNeedDataSource="oGrid_NeedDataSource" AllowSorting="True"  
        OnInsertCommand="oGrid_InsertCommand" OnUpdateCommand="oGrid_UpdateCommand" OnDeleteCommand="oGrid_DeleteCommand" 
        OnItemDataBound="oGrid_ItemDataBound" OnCancelCommand="oGrid_CancelCommand" 
        GridLines="None" EnableViewState="false">
<MasterTableView CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="IDUser"
            InsertItemPageIndexAction="ShowItemOnCurrentPage" EnableNoRecordsTemplate="true">
            <CommandItemSettings AddNewRecordImageUrl="~/Images/add.png" RefreshImageUrl="~/Images/blank.gif" RefreshText="" />
            <NoRecordsTemplate>
                <div>&nbsp;</div>
            </NoRecordsTemplate>
             <Columns>
                <tlk:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                    CancelImageUrl="~/Images/failed.png" InsertImageUrl="~/Images/ok.png"
                    UpdateImageUrl="~/Images/ok.png" Resizable="false">
                    <ItemStyle HorizontalAlign="Center" CssClass="CursorHand" />
                </tlk:GridEditCommandColumn>

When a row pass in edit mode for "update" all works fine. Click on update fires  "oGrid_UpdateCommand", click on cancel fires"oGrid_CancelCommand".

When I use "add a new user", a new row appears, but no more insertCommand and CancelCommand fire ? (the postback is perfomed, I stop in Page_load function but the "ogrid_InsertCommand" is not called.

The trys I have made :
    - comment ajax, the same problem occurs
    - try to set AllowAutomaticDeletes/Inserts/Updates to false : the problem still persists.
   - try to trace Params["__eventargstarget"], it is empty when insert is fired.

An idea ?

Thanks
Aurore
Aurore
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
207 views
Hi,

I tried to set the selected Date on a timepicker for getting min_date to work.

The control updates the current time - but not the current Date. This way the correctly set minDate work.

Example:
selectedDate= Sat Sep 19 2009 19:17:00 GMT+0200
minDate=Wed Sep 16 2009 00:00:00 GMT+0200

Setting selectedDate toWed Sep 16 2009 10:00:00 GMT+0200 will change the selectedDate to:
Sat Sep 19 2009 10:00:00 GMT+0200 and not to th above value.

Do you have any ideas on what goes wrong?

My Code looks like this:
function js_fahrteingabe_zeitControl_setDate(controlId, dateIn){ 
    var tmpCtrlZeit = $find(controlId); 
    var currentDateTime=tmpCtrlZeit.get_timeView().getTime(); 
    var actTime=dateToTimeString( currentDateTime ); 
     
    var newDateTime = datetimeStringToDate(dateToDateString(dateIn) + " " + actTime); 
    tmpCtrlZeit.set_selectedDate(newDateTime); 
    var date = tmpCtrlZeit.get_selectedDate(); 
    date.setDate(newDateTime); 
    tmpCtrlZeit=null; 
     
} 


Regards,
Torben

Martin
Telerik team
 answered on 24 Sep 2009
1 answer
58 views
Hi,
I'm curently updating a legacy web application which use the DataGrid from ASP.NET. And I'd like to replace it with the RadGrid, but I can't find the telerik equivalent of BoundColumn of ASP.NET. After searching on the internet I found this page, and it seems that GridBoundColumn is inside Telerik.dll. But I can't find this DLL in RadControls for ASP.NET AJAX Q2 2009.
Am I missing something ? How can I easily replace ASP.NET datagrids ?

Thanks in advance for your response,


Nicolas DORIER
Top achievements
Rank 1
 answered on 24 Sep 2009
1 answer
132 views
I am opening a new RadWindow from code behind adding it to the collection and that works fine.  The problem is when the window gets added to the collection all the other RadWindows that are currently open close.  Do you have any suggestions?
Georgi Tunev
Telerik team
 answered on 24 Sep 2009
3 answers
123 views
Regarding the XMLHttpPanel, I have a couple of questions.

  • Is the return data as small as say a json string would be or is the return package in fact json?
  • I see examples that talk to .asmx files (web services) but will it talk to a .svc file (wcf service)?
  • Once the data is retrieved, how does the data need to be packaged and returned?  Does it just go into a dictionary<obj, obj> or what? Or, can I just serialize my data into json myself and just return a json string?

Thanks much for the info...

chris

 

    
Pero
Telerik team
 answered on 24 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?