Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
42 views
When I have a cell selected and I hover over it, it should APPEND the hover class, not replace rcSelected with rcHover, it should look like class="rcSelected rcHover"

This problem has existed for SO LONG and there's so many posts about it.

Please, chuck it into a service pack or something :)  It's the biggest pain the ass...doing this will allow us to style Selected, Hover, and Hover+Selected where right now we just do Selected OR Hover.

Steve
Radoslav
Telerik team
 answered on 11 Apr 2011
1 answer
79 views
Hi,

I have a RadAjaxPanel which contains the following controls:

- RadTabStrip
- RadMultiPage

The RadMultiPage consists of two page views both pages also contains buttons which posts data to the server on server-side.

I also have one RadInputManager which takes care of my validation for both pages.

At the time I was only working with one page view everything worked just fine. However, as soon as my second page view was added I ran into a problem where the second page view won't submit due to required fields not filled out in the first page view, even though all the validations passed on the second form.

Any ideas what I'm doing wrong here?

Thanks in advance!
Nikita Gourme
Top achievements
Rank 1
 answered on 11 Apr 2011
3 answers
97 views
I have an odd problem occurring in a program I wrote some time ago. It uses the RadDateInput control. When i enter a date of "4/4/2011" is automatically changes it to "5/4/2011". It seems to do this on other months as well, but not all. Any idea why this would happen?
Tsvetina
Telerik team
 answered on 11 Apr 2011
2 answers
76 views
Hi there,
      I have a schedular which is used for creating appointments for staff.When I create a new appointment with recurrence ie. a staff is having an appointment daily for a week.The recurrence information is stored in schedular table's field RecData like this
DTSTART:20110407T100000Z  DTEND:20110407T110000Z  RRULE:FREQ=DAILY;UNTIL=20110415T000000Z;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU 

Now I have a page called as a dashboard with date criteria given ie if the date is selected as 15 April2011 then all the appointments of 15 March 2011 will be displayed.
Now if i create a recurrence appointment of a particular staff .The recurrence rule is as follows:
the staff has an appointment daily  from 07 April 2011 to  15 April 2011.
Now when I come to dashboard & select the date as 20 April 2011 then I can the above created appointment,but when i change the date criteria to 21 April 2011 then there is no Record.So Ideally 
I want to display the appointment of this particular staff  till 30 April 2011 on My dashboard because i have created a recurrence appointment toll 30 April 2011


Urgent Help needed

Regards
Sajid
Top achievements
Rank 1
 answered on 11 Apr 2011
0 answers
94 views
This should be a really simple task, but just like every other task I've attempted in asp.net using telerik it's stumping me for a good hour.

                var pageView = multiPage.findPageViewByID("PageDetails");
                pageView.set_selected(true); 

I've tried using that ^ to select a pageview. I've also tried this:

                var pageView = multiPage.findPageViewByID("PageDetails");
                pageView.select(); 

And I've also tried selecting by index. I have found the multiPage fine in the javascript as I currently have the pageview changing as and when the user clicks a panel bar menu item. For that I have used this:

            var item = args.get_item();
            var newPageView = multiPage.get_pageViews().getPageView(parseInt(item.get_value()));
            if (newPageView)
                newPageView.set_selected(true);


But this doesn't work if I try to adapt it to my method.

Thanks.

EDIT: I've sorted it, had to use the clientID (i.e. "ctl00_MainContent....")
Daniel
Top achievements
Rank 1
 asked on 11 Apr 2011
2 answers
312 views
Hi All,

I have a requirement:
Description : In a webpage there will be two telerik grids with name availableinputs and updatedinputs.
On page load the availableinputs grid will be loaded with records available in grid.and from this User will select some records by checking a check box respective to each row.Then user clicks on add Records button.the selected records will go and add to Updated Inputs grid.
Once the selected record is added to updated records grid ,same has to be removed from availableinputs grid.


After this if I need to remove the record from updatedinputs grid.user will click on remove button.and records will be removed

Problem :
First I will bind records to both the grids in Add buttton.its working fine.
after that when I try to check the count of items in updatedinputsgrid on remove button click event, its giving me zero even after I bind the value updatedinputs on Addbutton click.

I tried to rebind the grid with same datasource in Remove button click.
At that time count is showing 1,but the checkbox checked status is always false :(


why this is happening?how to solve the issue.

Thanks,
A2H

Iana Tsolova
Telerik team
 answered on 11 Apr 2011
3 answers
396 views
I have a RadGrid with Pager Template. The pager contains 4 asp buttons for next, previous, last and first functions also we have RadComboBox to set the pagesize, a RadNumeric TextBox for Current page index. The Pager template is defined in aspx page. My problem is i can't get this controls in server side ( in C# ). How can i get this pager template controls in  RadGrid from Server Side(C#).
also how can i handle the events of this pager template controls  from server side.
Princy
Top achievements
Rank 2
 answered on 11 Apr 2011
5 answers
111 views
I'm using the Web Forms RadGrid with an ORM tool that has attributes providing data constraints (required field and other validation rules) as part of its model. What I'm trying to do it come up with a general-purpose way to assign validators to either the in-place editing columns or the automatically generated edit/insert form.

This is a sample of the code I currently have. Based on other examples, I've put it in the pre-render event, but if there's a better event to use for this, I'd be happy to know it. The EntityProperty is the object that allows me to know all the constraints of my entity, which corresponds to a column in a data table. So I'm trying to retrieve the editable item from the RadGrid so I can create and associate the appropriate validator(s) to it based on the validation rules for my entity. How do I get to the editing control for the item in the grid that corresponds to the databound column?

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    if (!this.IsPostBack)
    {
        GridTableView tv = RadGrid1.MasterTableView;
        foreach (GridDataItem gdi in tv.Items)
        {
            // the spelunking isn't quite correct yet. Still working on it.
            EntityProperty ep = entityProps.
                    FirstOrDefault(x => x.Name == gdi.EditFormItem.DataItem.ToString());
            if (ep != null)
            {
                gdi.ID = gdi.ID;
            }
        }
        tv.Rebind();
    }
}

TIA for any tips that lead me in the right direction. I hope my request is clear.

Follow-up: I just found these posts related to Entity Framework 4 and MVC that talk about the same way I want to use model-driven validation. http://stackoverflow.com/questions/4915957/using-system-componentmodel-dataannotations-with-entity-framework-4-0/ and http://ryanhayes.net/blog/data-annotations-for-entity-framework-4-entities-as-an-mvc-model/.

If this isn't a common request, it should be. If it isn't a planned feature for Telerik, it should be.

Marin
Telerik team
 answered on 11 Apr 2011
1 answer
80 views
Hi there

I'm unable to close a RadWindow in FireFox using an HTML image with onclick="Close();".  It works fine in all other browsers.

This is the javascript that I have on the page that's opening in the RadWindow:

 

 

 

<script language="javascript" type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog       
            else if (window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow; //IE (and Moz as well)       
            return oWindow;
        }
  
        function Close() {
            GetRadWindow().Close();
        }           
</script>

 

 

I close the Radwindow using this code:

<img alt="Close Window"  src="closebutton.jpg" onclick="javascript:Close();" style="cursor: pointer" />

As I said, this works fine in all browsers except for FireFox.  I get a java error GetRadWindow() is undefined when I click the Close button in FireFox.

Just for information sake, this is my RadWindowManager code on the content page:
<telerik:RadWindowManager Width="620px" Height="495px" ReloadOnShow="true" 
       ShowContentDuringLoad="false" AutoSize="true" VisibleTitlebar="False" 
       VisibleStatusbar="false" Modal="true" ID="RadWindowManager1" runat="server">
   </telerik:RadWindowManager>

I invoke the RadWindow from the content page like this:
<img src="site/interface/quote.jpg" style="cursor: pointer" onclick="radopen('quote.aspx?p=<%=productname%>');" />

I've tried everything, hope someone here can help!  I'm using 2010 Q3 controls for ASP.NET Ajax in VB.NET.
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2011
1 answer
153 views
Let's use Grid / Hierarchy with templates demo as example and let's say that I want to add image on contact information tab for all users that are older than 30 on the server side in RadGrid1_ItemCreated event:
      protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
      {
         if (e.Item is GridNestedViewItem)
         {
            GridNestedViewItem gnvItem = (GridNestedViewItem)e.Item;
            e.Item.FindControl("InnerContainer").Visible = gnvItem.ParentItem.Expanded;
         }

How I would find the dob data to check if current item person is older than ... 30?

Thanks
Princy
Top achievements
Rank 2
 answered on 11 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?