Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hello,

I've two questions regarding RadEditor:

Q1: I see that when right clicking an image inside RadEditor which uses the default configuration file, it shows the image properties command which opens the image properties dialog, but when I customize the command set using markup or tools file, I can't get such context menus, the examples shown in the documentation only shows command for copy, cut and paste where could I get the command for image properties dialog?

Q2: Is there a way to auto format (indentations, line break...etc) the source code for content markup when switching from design view to HTML view?

Thanks in advance.
Rumen
Telerik team
 answered on 02 Feb 2009
1 answer
217 views
I'm using the Date Picker control (build 2008.3.1125.20) with the FastNavigation option enabled inside a modal widow (ModalPopupExtender).  I'm using the RadAjaxManager to handle the Ajax, and I am setting the zIndex with the following code:

<script type="text/javascript">  
    function pageLoad(sender, args) {  
        Telerik.Web.UI.Calendar.Popup.zIndex = 10000000;  
    }  
</script> 

When I open the modal initially, the date picker works fine... the calendar popup appears above the modal, and the fast navigation popup appears on top of that.  If I close the modal window, and then open it again, clicking the calendar button still shows the calendar popup correctly, but if I click the month, the fast navigation popup appears underneath the calendar popup (but still on top of the modal window).  The problem only occurs on subsequent loads of the modal window (2nd, 3rd, etc)... never the first.

Any ideas?
Iana Tsolova
Telerik team
 answered on 02 Feb 2009
8 answers
362 views

I was wondering if you can put a checkbox in the row of a grouped column. This way if I check that checkbox all of the rows in that grouping would get checked, I look forward to your answer. 

P.S. I don't want to nest queries to achieve this, just one query.

antoniodlp
Top achievements
Rank 2
 answered on 02 Feb 2009
2 answers
127 views
HI all

I'm following the example available here

http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecords.html

The problem is that when i test on my page it doesnt quite work in the way i am expecting

My grid is initially filtered by a dropdown combo box (RadCombo actually ) therefore a postback is required.


When i change options in the drop down the grid is shown with all expand images showing

If i select any expand images the grid refreshes but this time hides all the expand images apart from the ones which actually have detail records.

How can i modify this so that when the grid is refreshed based on a selection from the combo box , i get the response i 'm having (i.e hiding the expand buttons when no detail records are available)

Thanks again folks


so my code is the following

   protected void RadGridRelatedStyles_PreRender(object sender, EventArgs e) 
    { 
 
 
            HideExpandColumnRecursive(RadGridRelatedStyles.MasterTableView); 
         
    } 
    public void HideExpandColumnRecursive(GridTableView tableView) 
    { 
        GridItem[] nestedViewItems = tableView.GetItems(GridItemType.NestedView); 
        foreach (GridNestedViewItem nestedViewItem in nestedViewItems) 
        { 
            foreach (GridTableView nestedView in nestedViewItem.NestedTableViews) 
            { 
                if (nestedView.Items.Count == 0) 
                { 
                    TableCell cell = nestedView.ParentItem["ExpandColumn"]; 
                    cell.Controls[0].Visible = false
                    nestedViewItem.Visible = false
                } 
                if (nestedView.HasDetailTables) 
                { 
                    HideExpandColumnRecursive(nestedView); 
                } 
            } 
        } 
    } 
    protected void RadComboBStyles_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        HideExpandColumnRecursive(RadGridRelatedStyles.MasterTableView); 
 
    } 
and the main settings for the grid are

<telerik:RadGrid ID="RadGridRelatedStyles" OnPreRender="RadGridRelatedStyles_PreRender" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlGroupStyle" GridLines="None" Skin="Gray" Width="250px" PageSize="8"
        <HeaderContextMenu EnableTheming="True" Skin="Gray"
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </HeaderContextMenu> 
        <MasterTableView Caption="Related Group Styles" DataKeyNames="StyleTypeID" 
         HierarchyLoadMode="ServerBind" DataSourceID="SqlGroupStyle"  
         NoMasterRecordsText="No Available Group Styles"


Thanks guys/Gals









IT
Top achievements
Rank 1
 answered on 02 Feb 2009
1 answer
132 views
I have tested on my server this problem is happen to make sure that not just happen on my site also tested it here
http://demos.telerik.com/aspnet-ajax/Input/Examples/RadDateInput/FirstLook/DefaultCS.aspx
The problem still happen.


Please follow the steps below;

  1. input the date in Date: Text box 01/01/2008
  2. Select the Culture: combo box to choose "French" (Result: text should change to 01/01/2008) [Passed]
  3. Select the Culture: combo box to choose "German" (Result: text should change to 01.01.2008) [Passed]
  4. Select the Culture: combo box to choose "English" (Result: text should change to 1/1/2008) [Passed]
  5. Select the Date Format: combo box to choose "Long Date"  (Result: text should change to Tuesday, January 01, 2008) [Passed]
  6. Select the Culture: combo box to choose "French" (Result: text should change to mardi 1 janvier 2008) [Not pass the text change to Tuesday 1 January 2008 the Date: Text box  will be change to the right format after you clicked on Date: Text box]
  7. Select the Culture: combo box to choose "French" (Result: text should change to Dienstag, 1. Januar 2008) [Not pass the text change to Tuesday, 1. January 2008 the Date: Text box  will be change to the right format after you clicked on Date: Text box]
  8. Do the same step with Full option in Date Format: Combo Box


This problem also happen with Thai Culture.
Do I have to write the special code?

Kind Regards,




Iana Tsolova
Telerik team
 answered on 02 Feb 2009
1 answer
331 views
How do you relate two grids in a master/detail arrangment when you have a composite key? I was trying to use the same technique that is used in the Telerik trainer "RadGrid Related Tables" session, by simply adding the additional field to the where clause on the select for my details table, but doing this does not return any records in the details grid. So the select looks like this

SELECT 
    [PrcsName], 
    [MsgCode], 
    [MSGBody], 
    [ToEmailAddress], 
    [FromEmailAddress], 
    [EmailSubject], 
    [EmailAttachmentName], 
    [MailHost], 
    [SendEmailCode]
FROM [EsmEmailInfo]
WHERE 
    (([PrcsName] = @PrcsName) AND ([MsgCode] = @MsgCode))

I know the relationship/data is valid (the composite key is PrcsName + MsgCode) as I can do a straight join using the same criteria and get back all the data I need. If I use a single column from the composite key, it'll return data to the detail grid, but it doesn't return the results I want,,,I get too much data back.

If I have a set of tables with a single field making up the primary/foreign key, it works great, but so far when I've tried to use a composite key it doesn't work. Is there another way I should solve this?

Thanks,
Byron (telerik newbie)
Sebastian
Telerik team
 answered on 02 Feb 2009
1 answer
76 views
Hello,

I have an app. I am using a RadMultiPage with four pageviews. I also use the RadtabStrip with a tab matching each pageview.  On page view 3 i have a Radupload. where i can load files.  On pageview 1 is the search tab. After I upload the files on pageview 3 there is sometimes up to a 5 minute lag before the search page can find it.  On my search page I have four Radcombo boxes that search the database.   On page view 3 I load names of towns. when i go search on the search page to get a list of all of the towns in State A the new town tjhat I uploaded won't show in the state A listing for at least five minutes. 

How do I get rid of this lag time?

Yusef 
Veselin Vasilev
Telerik team
 answered on 02 Feb 2009
1 answer
127 views
We have a RadGrid which has inform edit controls. Each inform edit control has a radDatePicker. This caused the pages to be fairly heavy, so we started using the SharedCalendar property of the radDatePicker to pass in an instance of a RadCalendar. The pages are now lighter, and the RadDatePicker and RadCalendars work without a hitch.

However, each time a date is picked on the RadCalendar, the page scrolls to the top. So in order to mitigate this behaviour, hooked a function up to the OnPopupOpening event to get the pages scroll position. Then a function is hooked up the OnPopupClosing event to reset the pages scrolling position. This does not work. After the OnPopupClosing function fires, the telerik assemblies run several functions. Somewhere along the way, the pages scroll position gets set back to the top (we stepped through the assemblies with a watch setup on the document.body.scrollTop property).

Unfortunately, no client side events are exposed after the assemblies finish executing. We consider this a significant bug. Would you be able to fix this in the near future?

Thanks,

Stew
Sebastian
Telerik team
 answered on 02 Feb 2009
1 answer
95 views
I am using ASP.NET for AJAX Quarter 3 2008 and am having an issue with the RadAjaxManager.

I have an asp:Panel that needs to be shown and hidden during different parts of a registration process.  Inside the panel I have 3 drop down lists to select a date that use AJAX to build the days drop down when the month or year dropdown changes.
I also have a password textbox inside the panel.
I have an asp:Button that works as a next button to hide the panel and show the next panel.

The problem is that since the panel is an updatable control for the next button, all of it's contained controls are also updatable.  When the dropdown onchange event is fired, the AJAX works correctly, but since all controls are now updatable I lose the value in my password textbox since that value is not stored in viewstate.  I can also set the value of any control inside the panel.

RadAjaxManager did not used to work like this.

Is there any way to force controls inside of a panel that is set as an updatable control to not also be updatable controls?

Here is a trimmed down sample of the problem.

ASPX Page
<asp:Panel ID="AJAXpnlRegistrationInfo2" runat="server">  
    <asp:Panel ID="pnlRegistrationInfo2" runat="server" DefaultButton="btnRegisterNext" ToolTip="Registration Form">  
        <asp:TextBox ID="txtPassword1" runat="server" TextMode="password" Width="94"></asp:TextBox> 
        <asp:TextBox ID="txtAddress1" runat="server" Width="94"></asp:TextBox> 
        <asp:DropDownList ID="ddlBirthMonth" runat="server" AutoPostBack="true">  
        <asp:ListItem Value="" Text=""></asp:ListItem> 
        <asp:ListItem Value="1" Text="Jan"></asp:ListItem> 
        <asp:ListItem Value="2" Text="Feb"></asp:ListItem> 
        <asp:ListItem Value="3" Text="Mar"></asp:ListItem> 
        <asp:ListItem Value="4" Text="Apr"></asp:ListItem> 
        <asp:ListItem Value="5" Text="May"></asp:ListItem> 
        <asp:ListItem Value="6" Text="Jun"></asp:ListItem> 
        <asp:ListItem Value="7" Text="Jul"></asp:ListItem> 
        <asp:ListItem Value="8" Text="Aug"></asp:ListItem> 
        <asp:ListItem Value="9" Text="Sep"></asp:ListItem> 
        <asp:ListItem Value="10" Text="Oct"></asp:ListItem> 
        <asp:ListItem Value="11" Text="Nov"></asp:ListItem> 
        <asp:ListItem Value="12" Text="Dec"></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlBirthDay" runat="server" AppendDataBoundItems="true">  
        <asp:ListItem Value="" Text=""></asp:ListItem> 
        </asp:DropDownList> 
        <asp:DropDownList ID="ddlBirthYear" runat="server" AutoPostBack="true" AppendDataBoundItems="true">  
        <asp:ListItem Value="" Text=""></asp:ListItem> 
        </asp:DropDownList> 
    </asp:Panel> 
    <asp:Panel ID="pnlRegButtons" runat="server" CssClass="registrationNav">  
        <asp:ImageButton ID="btnRegisterNext" runat="server" SkinID="GreenContinueButton" /> 
    </asp:Panel> 
</asp:Panel> 

CodeBehind
    protected void Page_Load(object sender, EventArgs e)  
    {  
            btnRegisterNext.Click += new ImageClickEventHandler(btnRegisterNext_Click);  
            ddlBirthMonth.SelectedIndexChanged += new EventHandler(ddlBirthMonth_SelectedIndexChanged);  
            ddlBirthYear.SelectedIndexChanged += new EventHandler(ddlBirthMonth_SelectedIndexChanged);  
      
        radManager.AjaxSettings.AddAjaxSetting(btnRegisterNext, AJAXpnlRegistrationInfo2);  
        radManager.AjaxSettings.AddAjaxSetting(btnRegisterNext, pnlRegistrationInfo2);  
        radManager.AjaxSettings.AddAjaxSetting(ddlBirthMonth, ddlBirthDay);  
        radManager.AjaxSettings.AddAjaxSetting(ddlBirthYear, ddlBirthDay);  
    }  
          
    void btnRegisterNext_Click(object sender, ImageClickEventArgs e)  
    {  
        pnlRegistrationInfo2.Visible = false;  
    }  
      
    void ddlBirthMonth_SelectedIndexChanged(object sender, EventArgs e)  
    {  
        txtAddress1.Text = "Shouldn't be able to set this.";  
        //populate other dates  
    } 

Thanks for your time.
Iana Tsolova
Telerik team
 answered on 02 Feb 2009
2 answers
152 views
I am using RadEditor control, But I have a problem with Cut,copy,paste toolbar button on Editor with IE 7 & Firefox.

When I try to cut in Editor with Cut toolbar button on IE 7.0, there was a dialog coming up. I dont want that diaglog to appear. It has to be silent cut and paste.

Dialog on Firefox say : "Please use CTRL + X to Cut." 

Dialog on IE 7.0 say :   "Do you want to allow your webpage to access your clipboard".

Please give me the answer on it asap.

Thanks,
Tervel
Telerik team
 answered on 02 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?