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

Hi telerik,


We recentlty start using telerik products. 

I have one table TABLE_JAPVALUES  :

DATE      RDVAL  PDVAL DPVAL  CTVAL ATVAL
1-1-09       100       50        45         85        90
1-2-09       50         20        15         50        55
1-3-09       120       40        40         70        95
1-4-09       100       30        30         95        80

I want a report where I can select what columns I want to see in report with Avg. of that columns

So I want a  ckeckboxlist  like this that should show all the columns of the table:

RDVAL
PDVAL
DPVAL
CTVAL
ATVAL

If I Only select these columns-
RDVAL
DPVAL
ATVAL

It should show REPORT like this:

DATE      RDVAL   DPVAL   ATVAL
1-1-09       100          45        90
1-2-09        50           15        55
1-3-09       120          40        95
1-4-09       100          30        80
AVG           92.5       32.5      80

 If I have some way to pass Select parameters to pass sql storedproc that will help.

Do you have any tutorial or sample code.

I will really appreciate your help.

Princy
Top achievements
Rank 2
 answered on 15 Mar 2010
1 answer
143 views
Is there any way to always force the upload to the root folder of the file explorer?
Lini
Telerik team
 answered on 15 Mar 2010
3 answers
192 views
Hi

* I have  a Grid on a page, and i converted a column(Category) to a template then i placed a RadComboBox in the filter section of the template.

* now when i run the page i can see the Category column populating the content and i can select from the drop down menu (filter).

-- looking at the examples and demos included on Telerik Documentation did not help me (as new converter from different programming language to asp.net). Telerik extensions is a great product and such a simple task (like filter in grid using a drop down menu) should be set with few clicks rather than going back and forth modifying this code and that code. and having this drop down column within the Grid should make it easy without the need for all this code..

* in simple way how can i move from here to make the selection work as filter (as for now i can select but doing nothing).

Thanks 

grand lorie
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
199 views
Hi,

I have a problem with modal window, that is opened form inside of   RadAjaxPanel.

I have this RadAjaxPanel tag with Timer.

<telerik:RadAjaxPanel ID="ExistReportsGrid_Panel" runat="server" Visible="false">
                            <asp:Timer ID="ExistReportsGrid_Timer" runat="server" Interval="4000" OnTick="ExistReportsGrid_Timer_Tick"
                                Enabled="false">
Timer is enabled serverside.

On timer tick I enable one button also inside ExistReportsGrid_Panel, that opens modal windows. I open modal window this way:

<Buttons:xxx ID="BtnShowModal" Text="Show graph" runat="server"  OnClick="showModal"
                    meta:resourcekey="BtnShowModal" Visible="true" />

RadWindowManager is also insde RadAjaxPanel
<telerik:RadWindowManager ID="RadWndwManager" runat="server" Behavior="Default"
                            InitialBehavior="None" Left="" style="display: none;" Top="">
</telerik:RadWindowManager>

This is function I use for opening modal wnd
        RadWindow WinPreview = new RadWindow();
        WinPreview.Width = Unit.Pixel(840);
        WinPreview.Height = Unit.Pixel(700);
        WinPreview.NavigateUrl = "~/pages/xxxx/xxxxxx.aspx?lid=" + SelectedReport.ToString();
        WinPreview.Behaviors = WindowBehaviors.Move | WindowBehaviors.Resize | WindowBehaviors.Close | WindowBehaviors.Reload | WindowBehaviors.Maximize;
        WinPreview.VisibleOnPageLoad = true;
        WinPreview.Modal = true;
        WinPreview.Title = "";
        WinPreview.VisibleStatusbar = false;
        WinPreview.KeepInScreenBounds = true;
        WinPreview.EnableEmbeddedBaseStylesheet = true; //Wenn in Codebehind dann auf true sonst kein Style
        RadWndwManager.Windows.Add(WinPreview);


When modal window shows, I get really weird Window with something like tabs, and width is near infinity.

This code works well, and gives nice window if RadWindowManager and button are outside RadAjaxPanel

see attached screenshots of modal window



Georgi Tunev
Telerik team
 answered on 15 Mar 2010
2 answers
200 views
I have previosly used Page.Controls in projects to loop thru all server controls this:

    foreach (Control ctrl in Page.Controls)
    {
        findCtrl(ctrl);
    } 

   
public void findCtrl(Control ctrlTry)
    {
        if (ctrlTry.HasControls()) // if the control contrains other controls
        {
           
            if (ctrlTry.ID != null && ctrlTry.ID != "") // control has a ID-name
            {
                Response.Write(ctrlTry.ID + "<BR>");
            }

 

            foreach (Control lastCtrl in ctrlTry.Controls)
            {
                findCtrl(lastCtrl);
            }
        }
        else
        {
            if (ctrlTry.ID != null && ctrlTry.ID != "")
            {
                Response.Write(ctrlTry.ID + "<BR>");
            }
        }
    }

I've placed some radtextboxes in a Formview and used a table in the EditItemTemplate for design-reasons.
But then I can't use this approach.

 

<asp:FormView ID="FormView1" runat="server"
                  DataSourceID="sdsMeHaulier"
                  DataKeyNames="HaulierID"
                  DefaultMode="Edit" 
                  onitemupdated="FormView1_ItemUpdated" >       
        <EditItemTemplate>
            <table id="tblHaulier">
                <tr>
                    <td valign="top">
                        <telerik:RadTextBox ID="tbHaulierName" runat="server"
                                            Label="HaulierName"
                                            Text='<%# Bind("HaulierName") %>'
                                            Enabled="true"
                                            EnableTheming="True"
                                            ReadOnly="false" >
                        </telerik:RadTextBox>
                        <br />
                       
                        <telerik:RadTextBox ID="tbDepName" runat="server"
                                            Label="DepName"
                                            Text='<%# Bind("DepName") %>'
                                            Enabled="true"
                                            EnableTheming="True"
                                            ReadOnly="false"

and so on.
None of the radtextboxes appear in the list of controls.

Any ideas?  

 

 

 

BOS
Top achievements
Rank 1
 answered on 15 Mar 2010
3 answers
118 views
Hello,
  I have encounter a problem in using RadComboBox in Safari, the item lists' position not shown under the textbox but some where else with the scrolling, I have check another page and not found this problem, I checked the codes and have no idea why this happened.

the code snippets  like

<div id="site"
 <div class="devide"
          
        <fieldset class="column_left"
 
...... 
 
<div class="dl"
                <div class="dt"
                    <label for="ddlDepartment">Avdeling:</label></div
                <%--<asp:DropDownList ID="ddlDepartment" runat="server" CssClass="drop_wide" AppendDataBoundItems="true" > 
                    <asp:ListItem Value="0" Text="- Velg avdeling -" /> 
                </asp:DropDownList>--%> 
                <telerik:RadComboBox ID="RCBDepartment" runat="server" AppendDataBoundItems="true" > 
                <Items> 
                <telerik:RadComboBoxItem Value="0" Text="- Velg avdeling -" /> 
                </Items> 
                </telerik:RadComboBox> 
                 <span class="required">*</span> 
            </div>

...

</fieldset>
</div> 
</div> 
Simon
Telerik team
 answered on 15 Mar 2010
7 answers
438 views
I'm currently using version 2008.1.515.20

I'm finding that when I don't set the Label on a RadTextBox it is drawn at the width I set.  If I do set the Label, then the control is drawn as width=100%.

This is the code that produces the correct width
<telerik:RadTextBox ID="RadTextBox1" runat="server" InvalidStyleDuration="100" Skin="Office2007" Text='<%# Bind("EstimateTitle") %>' Width="100px" Wrap="False"></telerik:RadTextBox>


This is the code that produces the 100% width.
<telerik:RadTextBox ID="RadTextBox1" runat="server" InvalidStyleDuration="100" Label="Title" Skin="Office2007" Text='<%# Bind("EstimateTitle") %>' Width="100px" Wrap="False"></telerik:RadTextBox>
Dimo
Telerik team
 answered on 15 Mar 2010
2 answers
290 views
Hi,

I would like to create a Datasource like this "SELECT field FROM table WHERE field = 'cond' @ParamSupp  ORDER BY field
In this example, I want to set a empty default value to @ParamSupp to have this => SELECT field FROM table WHERE field = 'cond' ORDER BY field
And in my code, sometimes I would add some parameters to my request. For example, assign "AND field2 = 'cond2 AND field3='cond3'" to have a datasource like this => SELECT field FROM table WHERE field = 'cond' AND field2 = 'cond2 AND field3='cond3'  ORDER BY field

Is it possible ? I try different solution like : AND @param with default value '1 = 1', but it doesn't work anymore. So I rewrite entire sql request to this DS at this time. It works fine but my request is in double (in aspx and in code behind), and if I could, I would avoid this.

Thanks in advance.
Greg

Greg Le Moine
Top achievements
Rank 1
 answered on 15 Mar 2010
3 answers
226 views
hi
i use radcombobox and scriptmanager
i modify web.config(http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html)
when i open my page in sharepoint i have this error
 The control with ID 'combobox1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
please help me
Bodevain Svensson
Top achievements
Rank 1
 answered on 15 Mar 2010
5 answers
170 views
Hi
I have customized the date time picker to a Month Year picker with the help of the following code library
http://www.telerik.com/community/code-library/aspnet-ajax/calendar/month-year-picker.aspx
In this code sample when we click on the Calendar popup button of the DateTimePicker the Fast Navigation popup with the Month and Year listing is shown instead of the Calendar popup.Now I want to remove the month listing from this fast navigation popup to convert the DateTimepicker to an Year picker.How can I achieve this requirement.
Dimo
Telerik team
 answered on 15 Mar 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?