Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi There,

Is there a way to only allow a certain amount of records to be added using a Radgrid?
Say a user can only add a max of 10 records within the grid.

Thanks.
Daniel
Telerik team
 answered on 15 Jun 2009
0 answers
98 views
Hi,
I am trying to use values from the Resource file to populate  NavigateURL, ToolTip and Text attributes for RadMenu.

The "ToolTip" and "Text" are parsing the Resource file values correctly but the NavigateURL is not parsing the values at all.
 
I am using the following code:

<telerik:RadMenu ID="RadMenu1" runat="server" Style="float: none;" >
                                                 <Items >
                                                        <telerik:RadMenuItem NavigateUrl="gatashomepage.aspx?P=<%$Resources:GlobalResource, MasterMenuItemHomePage%>" Text="<%$Resources:GlobalResource, MasterMenuItemHomePage%>"  ToolTip="<%$Resources:GlobalResource, MasterToolTipHompePage%>"  >
                                                            <Items>
                                                                <telerik:RadMenuItem  NavigateUrl="MyPreferences.aspx?P=<%$Resources:GlobalResource, MasterMenuItemMyPreferences%>"  Text="<%$Resources:GlobalResource, MasterMenuItemMyPreferences%>" ToolTip="<%$Resources:GlobalResource, MasterToolTipMenuItemMyPreferences%>"   />
                                                                <telerik:RadMenuItem  NavigateUrl="logout.aspx"   Text="<%$Resources:GlobalResource, MasterMenuItemLogout%>" ToolTip="<%$Resources:GlobalResource, MasterToolTipMenuItemLogout%>"  />
                                                            </Items>
                                                        </telerik:RadMenuItem>
                                                    </Items>
                                            </telerik:RadMenu>

Thanks
Tapinder

Tapinder
Top achievements
Rank 1
 asked on 15 Jun 2009
1 answer
151 views
Hi

If I use an EditFormTemplate within RadGrid with a non-English culture connected to an ObjectDataSource I cannot update values of decimal type.

The error message I recieve is as follows:
Cannot convert value 3,45 to type Decimal.

The problem (as far as I can see) is that the RadGrid ignores the culture settings that I have set for my asp.net page.
Instead of 3,45 RadGrid awaits 3.45.

I didn't find a property like Culture within RadGrid to finetune this process.

Can you please help me out ?

Thanks.
Veli
Telerik team
 answered on 15 Jun 2009
1 answer
183 views
Hi,

I've placed a scheduler component on my form which uses webservices to populate the scheduler's appointments. Now I want to be able to select the resources I do or don't want to see in the scheduler. The resource population is set to take place serverside, but offcourse it still uses the webservice call to get the actual resources.

I've implemented my own provider to get the resources from my database using Linq. So I now need a way to pass my filter options (which resources should be retrieved) to that function, but I can't find a way to do so.

I've found this post: http://www.telerik.com/community/forums/aspnet-ajax/scheduler/service-and-grouped-views.aspx which is almost what I want. For some reason, I can't cast the SchedulerInfo object to my own custom SchedulerInfo object and thus not read the extra properties I fitted in there. And the only thing the webservice does is transfer the call to the GetResources function of my controller, which ultimately leads to a call of the GetResourcesByType function on my provider. That last one only has the grid and a resourceType string as parameters, where did the SchedulerInfo object go?

So I have two problems:
1) Why can't I cast the SchedulerInfo object to my own SchedulerInfo object
2) How should I pass the filter options to the actual GetResourcesByType method? I thought about temporarily storing them in a static class, but I wonder whether there isn't a better option.

Kind regards
T. Tsonev
Telerik team
 answered on 15 Jun 2009
1 answer
90 views
I have a FormTemplate with my own Update and Cancel buttons. When the user clicks on the Cancel button, the server-side ItemCreated event gets fired. Although firing this event might be part of the page life cycle, I still would like a way of knowing that the FormTemplate was canceled. If I cannot know that it is canceled, code within my ItemCreated event gets executed and I need to avoid this because certain controls during an edit would get set to a bound field but during a cancel, these fields are no longer available. But a more obvious reason I want to skip my code in the ItemCreated event is simply because it makes no sense to execute it when the FormTemplate is closing due to the Cancel button being pressed. Executing that code is wasted performance on the server-side. The IsInEditMode property returns true even when I cancel the FormTemplate, so I have no way of knowing whether I am in edit mode or cancel mode.
Polaris431
Top achievements
Rank 1
 answered on 15 Jun 2009
4 answers
175 views
Hi,

I'm using a Scheduler inside a SplitPane.
Split area is divided in 3 :
  - Left : fixed size, locked
  - Middle : contains scheduler
  - Right : fixed size, can collapse/expand.

On "right" collapse, scheduler resize according to its container, but on "right" expand, it does not resize, and overlap the panel.

How can I fix this please ?

Thanks.
Peter
Telerik team
 answered on 15 Jun 2009
1 answer
147 views
I'm using RadcomboBox and TextBox as template columns in a RadGrid.Edited values of textbox and comboBox disappears when paging occurs.I want to retain that values.
Tsvetoslav
Telerik team
 answered on 15 Jun 2009
1 answer
190 views
Hi,

While opening a RadWindiow, I initialize their behavior (say have just Close and Maximize button). But when the window is shown, the position of the buttons are not proper ie buttons are not appearing to the extreme right of the title bar. When I resize the window, they are positioned properly ie buttons are aligned to the right. Following is the code I am using to show the window

        function openPopup() {
            var oWnd = radopen("http://www.google.com", null);
            oWnd.setSize(1000, 1000);
            oWnd.set_initialBehaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);
            oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Maximize + Telerik.Web.UI.WindowBehaviors.Close);
        }
I am currently using "Hay" skin (able to see the same behavior with Default skin also). Product version of the assembly is 2009.01.0402.35.

Regards,

Raja


Fiko
Telerik team
 answered on 15 Jun 2009
1 answer
188 views
Dear Telerik,

I'm trying to find a way to check whether an username exists during the registration. Preferable while the user is typing his/her username. This could be done through a webservice. Does the input control support this feature? Is their code online which shows how this will work?

Thanks in advance.

Robert
Testing Telerik.
Veli
Telerik team
 answered on 15 Jun 2009
1 answer
71 views
I have this:

   <telerik:RadEditor id="radEditor" runat="server" > 
          <CssFiles> 
                <telerik:EditorCssFile Value="~/css/radeditor.css" /> 
           </CssFiles> 
   </telerik:RadEditor> 

And in my radeditor.css:

body  
{  
    font-size:12px;  
    font-family:Arial;  
}  
 
 

The problem is, the editor's text will have these font styles only in Firefox. In IE, it just shows text with ugly times new roman and 12px. Dont know what i am missing. Its fine in firefox...
Rumen
Telerik team
 answered on 15 Jun 2009
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?