Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
167 views
I want to know if the Telerik Menu has the ability to postback server side and be able to grab the event arguments
to determine what menu item was selected, then do something with it. 

Something similar to this code that their competitors have at CA.

As you can see.  It gets into the Event Arg, I pull the value I assigned in the HTML side, then determine where I want to go.

Is this possible?  Or something the same? 

private

void Menu1_ItemSelected(object sender, ComponentArt.Web.UI.MenuItemEventArgs e)

 

{

MenuItemSelected = e.Item.Value;

Session[

"MenuItemSelected"] = MenuItemSelected;

 

ChooseMenu();

 

}

Bryan Page
Top achievements
Rank 1
 answered on 15 Jul 2009
10 answers
371 views
I'd like to check the row visibility of a radgrid's row at client.

I always get false in display variable in code below, even using masterTableView.get_dataItems()[i].style.display, then i get always none

obs: any rows could be hidden at client side.

var radGrid = $find('<%= RadGridFuncionalidades.ClientID %>'); 
                if (radGrid != null) { 
                    var masterTableView = radGrid.get_masterTableView(); 
                    for (var i = 0; i < masterTableView.get_dataItems().length; i++) { 
                        // debugger 
                        var gridItemElement = masterTableView.get_dataItems()[i].get_element(); 
                        var display = masterTableView.get_dataItems()[i].get_display(); 

Any suggestions?
Pavlina
Telerik team
 answered on 15 Jul 2009
1 answer
187 views
Hello Telerik,

Here is the scenario:

I have created 4 RadComboBoxes, each containing data selections, retrieved dynamically, in the form of CheckBoxes. I would like to enable users to view their selections before submitting. I saw a Telerik example wherein the selections were displayed in the input text field of a RadComboBox, but that is too limiting for the numbers of data items the boxes will contain.

I reviewed the Dock control and an example of dynamic creation and thought that this would be perfect for the project provided I could get everything working properly. I implemented the idea nearly successfully for one box. Perhaps someone can help me with the issues I'm facing.

1. The Dock disappears on a postback. I'd like for the user to be able to see the contents of all the boxes at once. Thus, the postback issue only permits only one display of a RadDock control at a time.
2. I tried to format the list of box items using: \r\n. However, the display of contents wrapped, ignoring carriage return and line feed.
3. I tried to manually insert a ListBox into the markup, but that control is rejected. It's not a valid RadDock object.
4. I've thought of using a RadGrid, but manipulating its contents within a RadDock control using javascript seems a little daunting. I would have to handle switching the visibility off the RadDock in javascript, too, since it should not be visible unless summoned.
5. I think adding a RadGrid server side into a dynamically created RadDock would be OK, but I don't know how to do that.

Basically, I want:

  1. Display on demand for each of the ComboBoxes
  2. Persistence of all the displays through postbacks, until the user dismisses the control
  3. The kind of data legibility and organization that can be achieved using a ListBox or a Grid

Do you have some suggestions/examples for a Telerik beginner?

Thank you in advance,

Arnold
Pero
Telerik team
 answered on 15 Jul 2009
0 answers
51 views
Hi:
     I have a drop down list which is a part of the resource collection. I want to be able to set the value of this dropdown when the advanced form loads. I was thinking I could do it in the databound event but did not see one for the resource collection.

Thanks,
Aditya
Aditya
Top achievements
Rank 1
 asked on 15 Jul 2009
2 answers
136 views

I have been working on a problem related to use of the default content filters in RadEditor, and have reduced the problem to:

If ConvertFontToSpan is enabled, then, if the HTML has "overlapping" P and SPAN elements (I believe that this is invalid HTML), e.g.

<p>
<span>
</p> 
text

</span>

then, when the default content filtering is done, the result inclues an &nbsp:

<span>
<p>&nbsp;</p>
text </span>


This can be demonstrated by using the online demo at:

http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx

and switching to HTML view, first replacing the HTML with:

<p>
<span>
</p> 
text

</span>

then switching to design view and then back to HTML view again, at which time, the contents are:

<span>
<p>&nbsp;</p>
text </span>

Disabling ConvertFontToSpan and repeating this results in:

<p><span>text </span></p>
text

No &nbsp;

So, I am wondering: Although the input is invalid, is ConvertFontToSpan doing the right thing by introducing a non-break space?

I am not sure.

-Jon





Jon
Top achievements
Rank 1
 answered on 15 Jul 2009
3 answers
220 views
Do Stored Procedures work with the RadGrid Controls?  It appears that my Insert stored procedure has no effect on the RadGrid control and everytime I try to enter a new record, no new records get inserted.  The following is my stored procedure:

USE [EmployeeScreening]  
GO  
/****** Object:  StoredProcedure [dbo].[InsertMemberFamilyInfo]    Script Date: 07/15/2009 06:45:46 ******/  
SET ANSI_NULLS ON 
GO  
SET QUOTED_IDENTIFIER ON 
GO  
-- =============================================  
-- Author:      <user>  
-- Create date: <07/13/09>  
-- Description: <Insert Employee Family Information>  
-- =============================================  
ALTER PROCEDURE [dbo].[InsertMemberFamilyInfo]  
    -- Add the parameters for the stored procedure here   
    @MemberFamilyID             int = NULL OUTPUT,  
    @EmployeeID                 int,  
    @MemberFamilyNumber         int,  
    @Allergies                  nvarchar(50),  
    @Weight                     int,  
    @Age                        int,  
    @DateOfBirth                datetime,  
    @MemberFamilyCreatedDate    datetime,  
    @MemberFamilyCreatedBy      nvarchar(50)  
AS 
BEGIN 
 
        -- Insert statements for procedure here  
    INSERT INTO MemberFamilyInfo (EmployeeID, MemberFamilyNumber, Allergies,  
    Weight, Age, DateOfBirth, MemberFamilyCreatedDate, MemberFamilyCreatedBy) VALUES 
(@EmployeeID, @MemberFamilyNumber, @Allergies, @Weight, @Age, @DateOfBirth,  
@MemberFamilyCreatedDate, @MemberFamilyCreatedBy);  
 
SET @MemberFamilyID = SCOPE_IDENTITY();  
          
    END;  
 
DECLARE @ID INT;  
EXEC dbo.InsertMemberFamilyInfo @MemberFamilyID = @ID OUT,  
@EmployeeID = 1,  
@MemberFamilyNumber = 1,  
@Allergies='',  
@Weight=1,  
@Age = 99,  
@DateOfBirth='19000101',  
@MemberFamilyCreatedDate = '20090714',  
@MemberFamilyCreatedBy = 'Me' 
       
       
 
SELECT @ID ID; 
Sebastian
Telerik team
 answered on 15 Jul 2009
3 answers
124 views
Hi,

I put an AppTemplate on my RadScheduler.
here is my code : 
public class AppTemplate : ITemplate
        {
            public void InstantiateIn(Control container)
            {
                var subject = new Literal();
                subject.DataBinding += subject_DataBinding;
                container.Controls.Add(subject);
            }

            private static void subject_DataBinding(object sender, EventArgs e)
            {
                var subject = (Literal)sender;
                var aptCont = (SchedulerAppointmentContainer)subject.Parent;
                Appointment app = aptCont.Appointment;

                var myId = app.ID.ToString().Split('_');
                int idCalendar = Convert.ToInt32(myId[0]);

                var calendar = new BLLCalendar().getCalendar(idCalendar);

                String numAffaire;
                try
                {
                    numAffaire = calendar.Affaire.Num;
                }
                catch
                {
                    //var user = new BLLUser().getUser(calendar.IdUser);
                    //numAffaire = user.NumeroService;
                    numAffaire = calendar.CodeHeure1.Libelle;
                }

                if (calendar.IsValider)
                {
                    app.ForeColor = Color.Green;
                }
                if (calendar.IsSaisie)
                {
                    app.ForeColor = Color.Red;
                    app.AllowEdit = false;
                    app.AllowDelete = false;
                }


                subject.Text = String.Format("{0} - {1}", numAffaire, calendar.Temps);
                app.ToolTip = calendar.Commentaire;

                app.CssClass = SchedulerCSS.getCSSHeures(calendar.CodeHeure);
            }
        }


With this I have questions : 
- Is it possible to add the recurrence Icon or other Icons on appointment ?
- Why with some SchedulerCSS the proprety app.ForeColor = Color.Red; doesn't work ?

thank you.

PS : Q2 is great !!!! 
Veselin Vasilev
Telerik team
 answered on 15 Jul 2009
2 answers
136 views
Hi,
        How shall i show custom message when there is no series in the datasource, instead of showing the default one
"There is no or empty series".


Thanks,
Avi

Avi
Top achievements
Rank 1
 answered on 15 Jul 2009
1 answer
80 views
Dear Sir,
I want to underline any one character in the RadTabStrip controls caption to make it as a Shortcut key.


For Example:
           From the MenuBar of Microsoft Word contains
                File,Edit and etc.. as F and E are underlined.

Note:
    How can I attach jpeg image and sample files to the forum.
    Please Reply for this also..

By Suriya.
Paul
Telerik team
 answered on 15 Jul 2009
0 answers
93 views
Hi All,
I have a set or rows, when I click on view button after selecting more than 1 row, a new window opens in which on the left hand side I have a list of selected documents and on the right hand side I have the first document open. I want the margin between the left and the right hand side to be able to get dragged. ie. the left and right hand side should be resizable.

Can anyone please help me with this??

thanks,
Amol Parikh
Amol Parikh
Top achievements
Rank 1
 asked on 15 Jul 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?