Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
178 views
I've got the code below, when rendered in IE the buttons are clickable, yet in Firefox and Safari neither buttons are clickable.  They show as enabled but mouse does not change its cursor type and cannot click on the button...

Using button elsewhere on the site and all works just fine...all suggestions welcome...!

Cheers
Cliff

<div style="clear:both; padding-top:5px;"></div>
    <div class="HeaderButtons">
        <div class="Previous">
            <telerik:RadButton ID="btnPrevious" Text="Previous" runat="server" Width="220px" onclick="btnPrevious_Click">
                <Icon PrimaryIconCssClass="rbPrevious" PrimaryIconLeft="5" PrimaryIconTop="5" 
                      SecondaryIconCssClass="rbPrevious" SecondaryIconRight="5" SecondaryIconTop="5"/>
            </telerik:RadButton
        </div>
        <div class="Progress">
            <asp:Label ID="lblProgress" runat="server" Text="Progress"></asp:Label>
        </div>
        <div class="Next">
            <telerik:RadButton ID="btnNext" Text="Next" runat="server" Width="220px" onclick="btnNext_Click">
                <Icon SecondaryIconCssClass="rbNext" SecondaryIconRight="5" SecondaryIconTop="5" 
                      PrimaryIconCssClass="rbNext" PrimaryIconLeft="5" PrimaryIconTop="5"/>
            </telerik:RadButton>  
        </div>
        <div id="divSubmit" runat="server" class="Progress" style="display:none" >
            <telerik:RadButton ID="btnSubmit" Text="Submit Evaluation" runat="server" Width="320px" onclick="btnSubmit_Click">
            </telerik:RadButton>  
        </div>
    </div>


.HeaderButtons
        {
            margin:auto;
            position:relative;
            display:block;
            margin:auto;
            text-align:center;
            width:955px;
            float:left;
        }
        .Previous
        {
            width:250px;
            position:absolute;
            left:0px;
            top:0px;
            text-align:left;
            float: left;
        }
        .Next
        {
            width:250px;
            position:absolute;
            right:0px;
            top:0px;
            text-align:right;
            float: right;
        }
        .Progress
        {
            width:955px;
            position:absolute;
            top:0px;
            left:0px;
            text-align:center;
        }

Cliff Gibson
Top achievements
Rank 1
 answered on 25 Mar 2011
3 answers
100 views

I am currently builting a resource management app. I have a row of data which consists of a resource name and their hours per month for 12 months.

I want the user to be able to edit each month's hours by double click and then edit in place (e.g. http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx) - this works fine.

However, I also want to be able to edit the resource name in a popup window, as I need to have related comboboxes to select the resource name.

Is this possible? I only seem to be able to set the EditMode at MasterTableView level - which means one or the other, but not both.

Any help would be greatly appreciated!

Matt

Matt Kerry
Top achievements
Rank 1
 answered on 25 Mar 2011
1 answer
73 views
Hi, I am new to radWindow control. but I have used it quite a lot in my web application till now. I am developing the application in Dot Net Nuke so I have to work in User Controls. On my main page, i display a RadTreeView. If the user clicks an element in the rad tree view, then i show a grid with details of the selected tree node. in this detail grid (which has multiple records for a selected node) I have a button. if the user press this button i open a RadWindow to show more records. I am using all my RadWindows as Control Container, so i put the UserControl in the radWindow's ContentTemplate and set teh VisibleonPageLoad to true if the user press the button. Now in this opened radwindow i display a grid with more records. now in order to add/edit the records in the grid, i use another radwindow (Control Container) to show the edit form. In this radwindow i can open up another radwindow (again control container) to do certain functionality or to select a value from another user control. So in the end i have a Page then radwindow then another radwindow then another radwindow then some more radwindows.
It is working fine in terms of opening the windows and doing some thing in the window. but i can't make the windows to communicate between each other. One thing that came to my mind was to get the reference of the parent rad windows in their childs by using the parent window name, but the problem is that all the user controls which i am using in the radwindows are also used in other application functionality in different ways. so i wanted to make a generic solution so that if the user control is used independently i.e. with out the radwindow, it will still work.
What I am trying to do right now is that in my Last opened radwindow i display some records in a rad grid and the user can select one of the record and press a button on the rad window, which should close this radwindow for record selection and send the selected item as argument to the parent radwindow. (the parent window is not fixed. because the record selection control can be used multiple times in multiple places so i cant hardcode the parent window reference) I need to find the reference of the current window and the reference to the parent widow to pass the arguments or return value. and this can be done on any level (any number of nested windows).
I hope that this long description is enough to understand my problem.

In short: I want to get the reference to the current radwindow (The code available on demo sites gives error) so that i can close the window from client side. I want to send some arguments back to the parent (either page or another window)

 
Svetlina Anati
Telerik team
 answered on 25 Mar 2011
1 answer
189 views
Greetings,

I have been racking my brain and I think that this is probably something silly that I am missing. I have to generate a list of employee "requirements" in the form of checkboxes. I am databinding them to a database with the following fields:

OptionID (unique Identifier)
Name (for the display of the checkbox)
Checked (a bit)

Am I misunderstanding the Listbox behavior in that I would like to display the text field on a checkbox, with a "value" behind it, and then databind whether or not the checkbox should be checked?

Please also note that I can (and did) create a template field with a checkbox in it, but these checkboxes do not behave the way I would like them to when using the following code from the intro to listboxes:

 

StringBuilder sb = new StringBuilder(); 
IList<RadListBoxItem> collection =RadListBox1.CheckedItems; 
foreach (RadListBoxItem item in collection) 
{
  
    sb.Append(item.Value +  "<br />"); 
}

 

The checked box in the template is not counting towards the checked value of the list item.

I am jsut trying to cut down on code, because if I wanted to cycle through each item and manually check if it should be checked, I could do that using a radiobutton list.

I am using Visual Studio 2010 with radcontrols for asp.net ajax Q2 2010 NET40.

Thanks,

Thomas Turner

 

 

 

 

 

 

 

Dimitar Terziev
Telerik team
 answered on 25 Mar 2011
1 answer
114 views
Hi, I am struggling with what I assumed would be a simple task.  Essentially, in its simplest form it boils down to this...

  1. We have a master page with a scriptmanager.
  2. Using that master page we have a web form with a button on it.
  3. Within the web form is a user control that accepts a public property.  When we load the page, we pass the user control a default value for its public property.
  4. When we click the button it passes the user control a new value for its public property and updates the user control (using AJAX).

Help!?
Maria Ilieva
Telerik team
 answered on 25 Mar 2011
4 answers
83 views
Is this possible?  I see the grid has a oncolumnsreorder event but I'm having trouble getting it to fire.  I can't find any documentation on it either.  My columns have reorderable set to true.  They are auto generated columns though.
-DJ-
Top achievements
Rank 1
 answered on 25 Mar 2011
1 answer
174 views
I have a Rad Combo box in my page that calls a method to populate the data from wcf webservice. I don't have any issue when I run this from VS but in dev and test server I get this error message popop "The Server method 'mymethodname' failed.
The website is using custom authentication. If I change it to Windows authentication, the error goes away.

Could some one please help me.

Thanks,
Manasi
Top achievements
Rank 1
 answered on 25 Mar 2011
1 answer
117 views
Hi all,

I have server-side and client-side code which can control the enabled state of a RadDateTimePicker. It loads as disabled.

When I execute the server-side code "RadDateTimePicker1.Enabled = true" the input field becomes enabled, but the icons continue to have the look of disabled icons. How can I change these icons to enabled? 

Thanks,

Sean

EDIT:

I got the functionality achieved with this:

if( (sender as CheckBox).Checked )
{
    RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup";
    RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup";
    RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup";
    RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup";
     
}
else  
{
    RadDateTimePicker1.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
    RadDateTimePicker1.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
    RadDateTimePicker2.DatePopupButton.CssClass = "rcCalPopup rcDisabled";
    RadDateTimePicker2.TimePopupButton.CssClass = "rcTimePopup rcDisabled";
}
Maria Ilieva
Telerik team
 answered on 25 Mar 2011
3 answers
67 views
Browser: FireFox 3.6.15

Call image editor on an image.
Scale the image.
Click Restore Image.
Scale the image again.

Error message:
Value should be of type decimal

Please respond what action to take.

Marc
Dobromir
Telerik team
 answered on 25 Mar 2011
3 answers
61 views
I have used the radgrid to show some data to my customer, when I enable the 'AllowScroll' and 'UseStaticHeaders' function, there is a display problem in IE8 as attached image. The last part of the header and footer disappear.

I have tested for firefox 3.5.2, all things work fine. My Telerik.Web.UI.dll file version is 2010.2.929.35.

Here is some code for my grid

.ascx part:

<asp:Panel id="TelerikSummaryReportsPanel" runat="server" style="margin-top:10px;">
    <telerik:RadGrid ID="gridReports_Telerik" runat="server"  
                EnableAjaxSkinRendering="true"
                GridLines="Horizontal" CellPadding="0" BorderStyle="None"
                ClientSettings-AllowColumnHide="true" ClientSettings-EnableRowHoverStyle="true"
                ShowStatusBar="true" ShowHeader="true" AllowSorting="true"
                ShowFooter="true" RegisterWithScriptManager="true"
                EnableViewState="true"
                AllowFilteringByColumn="true"
                AllowMultiRowSelection="true">
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings>
            <Scrolling EnableVirtualScrollPaging="false" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
            <Resizing AllowColumnResize="true" EnableRealTimeResize="true"  ShowRowIndicatorColumn="true"
                      ResizeGridOnColumnResize="true" AllowRowResize="false" ClipCellContentOnResize="false" />
            
        </ClientSettings>
    
    </telerik:RadGrid>
    
</asp:Panel>

And I control the height in the C# code, if no height setting or it is larger than the actual height of data, no problem occurs.

.ascx.cs file:

    protected void gridReports_DataBound(object sender, EventArgs e)
    {
        RadGrid Grid = (RadGrid)sender;

        int rowCount = Grid.Items.Count;
        if (rowCount > 25)
        {
            gridReports_Telerik.Height = 700;
        }
    }

What can I do or test to solve this problem? Thanks a lot if you can give some advice
Pavlina
Telerik team
 answered on 25 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?