Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
284 views
Hi

I am using the grid control to display data from a database. The first column is always a date eg

Date (DD/MM/YY)    QTY
1/1/2010                    1
1/2/2010                    5
1/3/2010                    7 etc

All of my dates actually represent months and I display them as Jan-10, Feb-10, Mar-10 etc but store them in the database as a full date on the first day of the month

My grid has the ability to add records which I do manually in code called from the insert grid event. I get the value of the date picker with

Dim

 

 

InsertedDate = TryCast(InsertedItem("mydatecolumn").Controls(0), RadDatePicker).SelectedDate

 


As there is not a month / year picker I'd like to use the date picker but if the user picks say "13/3/2010" then I would like to change this immediatley to "1/3/2010".

Is this possible, if so can you give me some pointers?

Thanks

Johnathan
Johnathan
Top achievements
Rank 1
 answered on 26 Aug 2010
0 answers
91 views
Hi,

I have a Webform with 2 views for showing Appointments/Activities

1. Calendar View - displayed using the RadScheduler control
2. List View - displayed using the grid.

Each being exclusively visible.

Now for the RadScheduelr - we had implemented the Appointment Provider Model for Databinding.

The issue is when we have the list view visible we don't show the RadScheduler Control and disable the same. We expected that since the scheduler is disabled it will not fetch the appointments (GetAppointments method of the  provider) data from the provider, but we have found that it does so and thus causes a perfomance loss as it is cause 2 database round trips 1 for the list view and 1 by the RadScheduler (which is not visible and disabled).

Please let us know how we can disable the Databinding/Data fetchhing of the RadSchduler when it is disabled ?

Thanks

Rajesh Maurya
Rajesh
Top achievements
Rank 1
 asked on 26 Aug 2010
1 answer
113 views
I have 5000 records in a grid with paging turned on.  I need to access the datasource from the grid with the filter applied, while maintaining paging.  accessing radGrid.MasterTableView doesn't work since it only holds the records that are currently displayed.  I have tried getting a DataTable from the radGrid.DataSource, but the filter isn't applied at that stage.  I have considered writing a parser for the filter and applying it before I get the datasource, but that doesn't make sense.  Is there a way to get the data before it gets shortened for paging?

Thanks!
Nikolay Rusev
Telerik team
 answered on 26 Aug 2010
1 answer
122 views
Hello, I cannot seem for the life of me to get a RadCalendar to display the current month and year when using a preview calendar.

So, today is 8/25/2010.

When a user goes to that page, I would like it to display August 2010.  It always wants to start on the beginning range of my calendar.

Thanks in advance.

Matt
Shinu
Top achievements
Rank 2
 answered on 26 Aug 2010
2 answers
103 views
I am getting a UI related problem in IE 6. I am facing the following two issues , when there is a vertical scroll in the control.
  1. The text of menu items get distorted.(snapshot attached -- distortedtext IE6.JPG)
  2. There is a white space  between parent and child menu item.(snapshot attached--- spaceIE6.JPG)

The issue may be,  vertical scroll bar coming while expanding the parent menu item.


Thanks,

Sagar
Sagar
Top achievements
Rank 1
 answered on 26 Aug 2010
14 answers
540 views
Hello

i have used <telerik:GridTemplateColumn> for each column in RadGrid... and have some issues like
1). Though i have provided width value to each column, there is no effect shown. when i used TableLayout="Fixed", each column is shown with provided width but rows' height are not looking proper. so is anyone let me know how to set individual column width?
2). i don't want horizontal lines between two rows. how to make it disable?
3). Though i set AllowPaging="True" and PageSize="20" and there are total 50 records as a result, than why its not showing paging?

thank you
Kamini
kamini
Top achievements
Rank 1
 answered on 26 Aug 2010
2 answers
441 views
Hi,

I have a Grid on a page, which contans a list of security gropus for my system. Some ot the groups are system groups and can not be altered. Each group have a bool GroupIsSystem group, placed in a column in the grid.

I would like to be able to hide the "Edit" command button on rows where column "GroupIsSystemGroup" is true, and show the edit button on opposite rows.

I know how to hook into ItemDataBound event, to do conditional formatting of my DataItem, I just cant figure out how to get to the row instance of the "Edit" button and set it to Visible = false.

Sincerely....

Jesper Laustsen
Jesper Vognsen Laustsen
Top achievements
Rank 2
 answered on 26 Aug 2010
0 answers
104 views
Not sure how to describe this well, so I will just do my best.

I have an upload control (and ProgressArea and ProgressManager) in a Tab control, and that Tab Control is in a Window Control. I have the Submit/Upload button inside the Upload control as described in the Telerik documentation.

The first tab has the upload control. The other tab is a RadGridView which lists the uploaded files, and has a LinkButton which allows you to download the file. Pretty simple.

Here is the workflow that is causing me a problem.

1) End user selects a file and uploads it. The progress bar shows up, the file uploads. All is well.
2) Switch to the download tab, and the uploaded file appears in the list as it should.
3) End user clicks on View LinkButton and is Response.Redirect to an HttpHandler which downloads the file. All is well.
4) End user switches back to the first tab to upload another file.
5) End user selects a file.
 HERE IS THE PROBLEM
6) When the submit/upload button is clicked, the file is uploaded, BUT:
   a) The progress bar does not appear
   b) The fie name does not get removed from the selection textbox
   c) The View LinkButton (the one on the tab that's not even showing now) fires again, and attempts to re-download the file that was just downloaded

My gut feeling tells me that some kind of Ajax/Postback tom-foolery is going on here, but I'm lost as to what that might be? Any suggestions?
toddhd
Top achievements
Rank 1
 asked on 26 Aug 2010
1 answer
140 views
I could use some help to understand what I am doing wrong. I want to display the upload progress as my files upload. I think I have things setup the same way as in the documentation, however no progress bar shows up?

<telerik:RadPageView ID="pageUpload" runat="server">
    <div style="border: solid 1px black; width: 100%;">
        <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
        <telerik:RadProgressArea ID="RadProgressArea1" runat="server" DisplayCancelButton="True"
            Skin="WebBlue" />
        <telerik:RadUpload ID="RadUpload1" runat="server" Style="margin: 5px;" AllowedFileExtensions=".doc,.pdf,.jpg,.jpeg,.gif,.png,.tif,.tiff"
            ControlObjectsVisibility="All" InitialFileInputsCount="1" MaxFileInputsCount="5"
            Skin="WebBlue" OnValidatingFile="RadUpload1_ValidatingFile" />
    </div>
</telerik:RadPageView>

I am not sure if the fact that I have this in a Tab is any issue?

Sometimes our controls need a RadAjaxManagerProxy to work correctly, so I tried adding this as well. When I add this code, the little spinner control shows up for a second, but no progress bar, and it also "breaks" the upload - that is, the files DOES NOT upload if I add this ProxyManager code.

<telerik:RadAjaxManagerProxy ID="RadProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadUpload1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadProgressArea1" />
                <telerik:AjaxUpdatedControl ControlID="RadProgressManager1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

What am I missing?
toddhd
Top achievements
Rank 1
 answered on 26 Aug 2010
3 answers
258 views
I saw the previous post about scrolling and nested splitters, but the comments there didn't address my problem.

My nested splitters work fine in IE7, but in IE8 the panes in the nestedsplitter will not scroll if the containing pane is set to Scrolling="None". The pane at the bottom of this sample should scroll:

 

<telerik:RadSplitter ID="ExplorerSplitter"  runat="server" Height="100%" Orientation="Vertical" Width="100%" HeightOffset="104" VisibleDuringInit="false" LiveResize="false" >

<telerik:RadPane CssClass="GridPane" ID="GridPane" runat="server" Scrolling="None" Height="100%" BackColor="white">

<telerik:RadSplitter ID="GridSplitter" runat="server" Height="100%"  Orientation="Horizontal" Width="100%" VisibleDuringInit="false" LiveResize="false" BorderSize="0" CssClass="ExplorerGridSplitter">

<telerik:RadPane ID="GridListPane" runat="server" Scrolling="X" BorderWidth="0" BackColor="white" Height="100%">...

 

 

Bill
Top achievements
Rank 1
 answered on 25 Aug 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?