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

I am having the exact same problem as mentioned in this thread except I am having this problem with RadGrid "Prometheus":
http://www.telerik.com/community/forums/thread/b311D-hamem.aspx


"When I have a grid that requires horizontal scrolling, but does not have enough rows to require paging, dragging the scroll bar only moves the body of the grid, not the header or footer.

If there are enough rows for there to be paging and virtual scrolling then everything works fine."

Basically, the summary is that when the vertical scroll is NOT present and the horizontal scroll is present this problem happens. When both horizontal and vertical scrolls are present, this problem does not happen.

The data is bound at runtime in the needdatasource event.

I am using the most recent Prometheus 2007-3-1425 hotfix.

Here is the grid definition:
<telerik:RadGrid ID="RadGrid1" runat="server"
            PageSize="50" AllowSorting="True" Skin="Office2007" AllowPaging="True"
            ShowGroupPanel="True"  GridLines="None" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound"  >
            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>                                  
                <MasterTableView CommandItemDisplay="Bottom" CurrentResetPageIndexAction="SetPageIndexToFirst"
                     Dir="LTR" Frame="Border"  TableLayout="Fixed" GroupLoadMode="Server">                   
                    <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                        Resizable="True" Visible="False">
                    </ExpandCollapseColumn>  
                    <CommandItemTemplate>                           
                           <asp:Button ID="btnExcel" Width="150px" Text="Export Excel" OnClick="btnExcel_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />                           
                            <asp:Button ID="btnCSV" Width="150px" Text="Export CSV" OnClick="btnCSV_Click"
                                runat="server" BackColor="AliceBlue" BorderColor="AliceBlue" Font-Bold="true" />
                    </CommandItemTemplate>
                    <Columns>
                     <telerik:GridTemplateColumn AllowFiltering="False" HeaderText="TemplateColumn" UniqueName="TemplateColumn">
                                <ItemTemplate>
                                    <asp:Button ID="Button1" runat="server" CommandName="MyCustomAction" Text="Do action"
                                        OnClick="Button1_Click" />
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                    </Columns>                                                     
                </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True"   >                               
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"     />
                <Resizing AllowColumnResize = "true" ClipCellContentOnResize="true"  EnableRealTimeResize="true" ResizeGridOnColumnResize="true"  />               
            </ClientSettings>
<ExportSettings>
<Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" />
<Pdf FontType="Subset" PaperSize="Letter" />
<Excel Format="Html" />
 </ExportSettings>
</telerik:RadGrid>

Regards,
Talha

RR
Top achievements
Rank 1
 answered on 16 Apr 2008
8 answers
356 views
Is there any way to increase the size of the radEditor dialogs?

I mean, for example, the image or the template managers.

Shaun Peet
Top achievements
Rank 2
 answered on 16 Apr 2008
1 answer
208 views
I have a RadGrid with columns that are created at runtime.
Data cells contain values like A6754 (NB).
I want to set a backcolor for the cells that depends on the letters between the brackets NB in this example.

How do I loop through all the cells in the grid and change the backcolor of the cells? I think the solution will be very easy, but I cannot find it.

Thanks for any advice.
plamen
Top achievements
Rank 1
 answered on 16 Apr 2008
2 answers
117 views
Hi,

I try to make a custom skin for radcalendar control.  I did'nt found a ImagesPath property  like in other controls. So some images (fastNavLeft.gif for example) are not displayed correctly.

How  I can avoid that without put images at the root of my site ?

Regards,
Richard
Top achievements
Rank 1
 answered on 16 Apr 2008
0 answers
317 views

To get familiar in a fast and pretty straight-forward manner with our panelbar control, I suggest that you visit the online resources linked below:

Online examples

Online documentation

KB articles

Code library

Of course, you can browse the public forum as well to find a specific information/code sample concerning an aspect of the panelbar object model/ features. There are numerous threads which can get you started/assist you through the development process.

Finally, we will appreciate your feedback on the structure/content of the online resources - our goal is to continue enriching them, thus facilitating our customers even more.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 16 Apr 2008
1 answer
157 views
Hello,

I've seen, that there are the new releases available. But which of them is the new RadControls ASP.NET and successor of Prometheus?

In The Free Trials Section there are 2 different items:
"RadControls Prometheus" and "RadControls for ASP.NET"

BOTH with release date 4/15/2008. I thought only the (formerly) Prometheus would change in to Q1-2008?

Sorry, but I'm a bit confused.

With kind regards

Philip

Edit: ok, I now understand it. I thought ASP.NET should be replaced by Prometheus/ASP.NET AJAX, not that they will coexist. Sorry!
Ivo
Telerik team
 answered on 16 Apr 2008
1 answer
215 views
Dear Telerik Team,

I'm not able to filter the appointments in scheduler based on the selection in combo.
I have done all that i found in telerik demos but does not work.

Could you please tell me whats wrong in my code
Anything more needs to be done apart from this?

Here is the code:

<

asp:DropDownList runat="server" ID="UserDropDown" AutoPostBack="true" DataSourceID="SqlDataSource1" DataTextField="TaskType" DataValueField="ID" OnDataBound="UserDropDown_DataBound">
</asp:DropDownList>

<telerik:radscheduler runat="server" id="RadScheduler1" width="100%" daystarttime="08:00:00" dayendtime="08:01:00" readonly="true" allowdelete="True" allowedit="True" allowinsert="True" dataendfield="End" datakeyfield="ID" onappointmentinsert="RadScheduler1_AppointmentInsert"
datarecurrencefield
="RecurrenceRule" datarecurrenceparentkeyfield="RecurrenceParentId"
datastartfield="Start" datasubjectfield="Subject" firstdayofweek="Monday" lastdayofweek="Sunday"
overflowbehavior="Expand" monthvisibleappointmentsperday="6" skin="Web20" showfooter="False"
showhourscolumn="False" GroupBy="TaskType">

<ResourceTypes>
<telerik:ResourceType KeyField="ID" Name="TaskType" TextField="TaskType"
ForeignKeyField
="ID" DataSourceID="SqlDataSource1"/>
</ResourceTypes>

<appointmenttemplate>
<asp:hyperlink id="id" runat="server" text='<%# Eval("Subject")%>'>
</asp:hyperlink>
</appointmenttemplate>
</telerik:radscheduler>

And i tried in Serverside also:

Private

Sub InitializeResources()
Dim resType As New ResourceType("TaskType")
resType.DataSourceID =
"SqlDataSource1"
resType.ForeignKeyField = "ID"
resType.KeyField = "ID"
resType.TextField = "TaskType"
RadScheduler1.ResourceTypes.Add(resType)
RadScheduler1.Resources.Add(
New Resource("TaskType", 1, "Expert"))RadScheduler1.Resources.Add(New Resource("TaskType", 9001, "Meeting"))RadScheduler1.Resources.Add(New Resource("TaskType", 90, "Staff"))RadScheduler1.Resources.Add(New Resource("TaskType", 92, "National Expert"))
End Sub

The types that i'm filling with the combo are 5 types. Appointment should be one of the 5 types.

Peter
Telerik team
 answered on 16 Apr 2008
13 answers
609 views
I have a RadGrid that I am trying to use to build a shopping cart. I am having a hard time with formatting the column that will hold the items cost.

This is what I have for that column:

<telerik:GridBoundColumn   
   DataField="Price"   
   HeaderText="Price" 
   DataFormatString="${0:###,###.##}"   
   FooterText="Sub-Total: $" 
   Aggregate="sum">   
</telerik:GridBoundColumn> 

The problem I am having is this: If the item cost is $50.00 it only display's $51. Is it possible to have it display the .00? If I set the DataFormatString to "${0}" I get $51.0000. How can I control the amount of decimal places? The data is being pulled from a SQL table and that column data type is MONEY.

Also I would like to display the sub-total of all my items. It formats the sum as $123.0000 as well. How do I control the amount of decimals here? The footer format doesn't seem to be controlled by the DataFormatString.

I'm sure RadGrid has been used many times for this purpose so I suspect there is an easy solution?

Thanks!

Paul
Josh Winkler
Top achievements
Rank 1
 answered on 16 Apr 2008
1 answer
163 views
Hi,

After install the last version "prometheus future" the next function not work:

GridFilterMenu not found in the class tree.

Thank you.


public

void TraducirMenuFiltrosGrid(RadGrid grid)
{

GridFilterMenu menu = grid.FilterMenu;

foreach (GridMenuItem item in menu.Items)

{

//change the text for the menu item with text StartsWith

switch (item.Text)

{

case "NoFilter":

item.Text =

"Sin Filtro";

break;

case "Contains":

item.Text =

"Que contenga";

break;

case "DoesNotContain":

item.Text =

"Que no contenga";

break;

case "StartsWith":

item.Text =

"Comienza por";

break;

case "EndsWith":

item.Text =

"Finaliza por";

break;

case "EqualTo":

item.Text =

"Igual A";

break;

case "NotEqualTo":

item.Text =

"Distinto de";

break;

case "GreaterThan":

item.Text =

"Mayor que";

break;

case "LessThan":

item.Text =

"Menor que";

break;

case "GreaterThanOrEqualTo":

item.Text =

"Mayor o igual que";

break;

case "LessThanOrEqualTo":

item.Text =

"Menor o igual que";

break;

case "Between":

item.Text =

"Incluido entre";

break;

case "NotBetween":

item.Text =

"No incluido entre";

break;

case "IsEmpty":

item.Text =

"Campo vacio";

break;

case "NotIsEmpty":

item.Text =

"Campo con valor";

break;

case "IsNull":

item.Text =

"Valor nulo";

break;

case "NotIsNull":

item.Text =

"Con valor";

break;

}

}

}

Konstantin Petkov
Telerik team
 answered on 16 Apr 2008
1 answer
134 views
Hi,

We are getting ready to buy your control for 2-4 developers (to start) and I have been asked to do program a dashboard.

So I am using the 30 day trial period.  And I have gotten so far and now I am trying to understand how to do a complicate thing.

I used the PortalSiteCS demo that was given as a starting point and developed my own Dashboard page.

However, I need to be able to have your Menu Control tied to the DockLayout/Docks controls.  The Docks are Initiating UserControls.

So, a person selects a particular type of dock from the RadMenu.

AJAX wise it goes through adds the dock to the UpdatePanel and flushes javascript wise over to the appropriate zone on the client.

For the client not show this movement on the page the UpdatePanel it wraps it in a div with display:none.

However, I also need my Menu to be updated to not show that item anymore in the list.

Same goes for closing a dock, I need the menu to also be updated  to show the dock that was jsut taken off.

How, can I do this? I have tried several different ways with no success in meeting the basic requirement of updating the menu and not showing the movement of the dock/usercontrol on the screen.

Any Help is greatly appreciated :)

Angela
Sophy
Telerik team
 answered on 16 Apr 2008
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?