Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
107 views
I am trying to store/retrieve a list of selected items in a file explorer control. I have been able to retrieve the checked nodes and store them without any difficulty but I am running in to a problem when I try to load the list of items back in the the explorer if they reside in nodes that have not been loaded.

Is it possible to trigger the FileExplorer control to pre-load/expand a node path from the server api?
Dobromir
Telerik team
 answered on 19 Oct 2011
2 answers
130 views
Hi guys.

I have a masked column with dataformatstring set to {0:##.###.###/####-##} and mask set to ##.###.###/####-##.The grid displays and edits the column as expected.
The problem is that I dont´t want to save the format characters to the database. I want to save the raw data 34889238000131 and not the formatted data 34.889.238/0001-31. 
What´s the best way to go in this case?

Thank you.

Zenute Marins
Top achievements
Rank 1
 answered on 19 Oct 2011
3 answers
90 views
Hello,

I have the following radGrid:

<telerik:RadGrid ID="radGrid"  OnItemDataBound="radGrid_ItemDataBound" OnItemCommand="radGrid_ItemCommand">
      <MasterTableView >
                            <Columns>
                                ...
                            </Columns>
                            <NestedViewTemplate>
                                <ParteControl:ParteControl id="ctl" visible="false" runat="server"/>
                            </NestedViewTemplate>
                        </MasterTableView>
                    </telerik:RadGrid>

When I expand the row it fills the Usercontrol:

protected void radGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        if (e.CommandName == Telerik.Web.UI.RadGrid.ExpandCollapseCommandName)
        {
            if (!e.Item.Expanded)
            {
                Label lblId = (Label)e.Item.OwnerTableView.Items[e.Item.ItemIndex]["Info"].FindControl("lblId");
                controls_partescontrol ctl = (controls_partescontrol)((Telerik.Web.UI.GridDataItem)e.Item).ChildItem.FindControl("ctl");
 
                String[] arrValues;
                String srtValues = lblId.Text.ToString();
                arrValues = srtValues.Split('#');
 
                ctl.Pre();
                ctl.Visible = true;
                ctl.Value = arrValues[0].ToString();
                ctl.Coluna = arrValues[1].ToString();
                ctl.Load();
            }
        }
    }

In the Usercontrol I have:

<telerik:RadContextMenu ID="ctxMenu" runat="server">
        <Targets>
            <telerik:ContextMenuControlTarget ControlID="ajaxPanel" />
        </Targets>
        <Items>
            <telerik:RadMenuItem>
                <ItemTemplate>
                    <asp:LinkButton ID="lnk_1" OnClientClick="javascript: callHoldInfo(this,'Parte');" OnCommand="Menu_ItemClick" CommandArgument="0" runat="server"  style="text-decoration: none !important;"></asp:LinkButton>
                </ItemTemplate>
            </telerik:RadMenuItem>
            <telerik:RadMenuItem>
                <ItemTemplate>
                    <asp:LinkButton ID="lnk_2" OnCommand="Menu_ItemClick" CommandArgument="1" runat="server"  style="text-decoration: none !important;"></asp:LinkButton>
                </ItemTemplate>
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadContextMenu>
    <asp:Literal ID="ltrError" runat="server"/>           
    <asp:Panel runat="server" id="ajaxPanel">
    </asp:Panel>

and in the Code behind of the Usercontrol:

if (this.Page != null)
        {
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);
            if (ajaxManager != null)
            {
                foreach (RadMenuItem item in ctxMenu.Items)
                {
                    foreach (Control ctrl in item.Controls)
                    {
                        if (ctrl is LinkButton)
                        {
                            AjaxSetting ajaxSetting = new AjaxSetting(ajaxManager.ID);
                            ajaxSetting.AjaxControlID = ctrl.ID.ToString();
                            ajaxSetting.UpdatedControls.Add(new AjaxUpdatedControl(ltrError.ID.ToString(), "ajaxLoad"));
                            ajaxSetting.UpdatedControls.Add(new AjaxUpdatedControl(ajaxPanel.ID.ToString(), "ajaxLoad"));
                            ajaxManager.AjaxSettings.Add(ajaxSetting);
                        }
                    }
                }
            }
        }


The first Click the pages Flickers as it could not bind the Ajax Settings. Then the Click it work normally.

I also tried to user the RadAjaxManagerProxy, but I could not make it work.

Could you please give me some advise on how to get it right...


Thank you very much,

Rod.




rod
Top achievements
Rank 1
 answered on 19 Oct 2011
0 answers
127 views
Hi all 

I have a page that have many RadPageView and  we select The page according to the  Request.QueryString["AppID"].ToString(); but in the URL it show the  /Demo.aspx?AppID=SchoolProject and when we applying the URL rewrite rule for that i need to  Like my URL as  Following /SchoolProject
 This is the following code
 Demo.aspx

  <telerik:RadPageView ID="RadPageView1" runat="server">.
</telerik:RadPageView>
  <telerik:RadPageView ID="RadPageView2" runat="server">
</telerik:RadPageView>
Demo.aspx.cs
 SelctedAppID = Request.QueryString["AppID"].ToString();
                    if (SelctedAppID == "SchoolProject")
                    {
                        RadTabStrip1.SelectedIndex = 1;
                        RadMultiPage1.SelectedIndex = 1;
                    }
URL is  /Demo.aspx?AppID=SchoolProject but i like /Demo.aspx/SchoolProject



Sushobhit
Top achievements
Rank 2
 asked on 19 Oct 2011
4 answers
72 views

hello

i am using new toolbar , but two of tools "paste from word" and "paste from word, strip font" don't work , when i click in a new window it shows java script error...


thanks

Neda
Neda
Top achievements
Rank 1
 answered on 19 Oct 2011
5 answers
241 views
Hi,

I am using RadWindow control. I have set it's navigate url property which opens a new web page inside the pop-up window.
Now I want that after some server side operation the window must be closed.

In the pop-up window opened there is a Button Control which performs some action on its Click, so as the action performed completes the pop-up window should close. How can this be done..?

Kindly suggest me some solution as soon as possible.

Thanks
Sudeep
Top achievements
Rank 1
 answered on 19 Oct 2011
5 answers
72 views
When I remove the 'RadAjaxManager' client side selection works.  When it is there client side selection goes away.

When I add another grid that is not referenced in the 'UpdatedControls' of the AjaxManager then Both grids rows are client selectable.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebHabitSmasher.Test" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
     
   <div style="width:750px;">
  
      <asp:Label ID="GoalType2Grid_error" runat="server" Width="750px" BackColor="Black" ForeColor="#CC0000" Font-Size="Larger"></asp:Label>
   </div>
        <telerik:RadGrid ID="GoalType2Grid" runat="server" AutoGenerateColumns="False" CellSpacing="0"   Width="750px"
            OnInsertCommand="GoalType2Grid_InsertCommand"
            OnUpdateCommand="GoalType2Grid_EditCommand"
            OnDeleteCommand="GoalType2Grid_DeleteCommand"
            >
                 <ClientSettings >
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>             
            <MasterTableView DataKeyNames="IdMilestones" CommandItemDisplay="Top">
  
              <Columns>
                      <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                               
                     <telerik:GridBoundColumn AllowSorting="False" DataField="Text" Groupable="False" MaxLength="255" ShowSortIcon="False" UniqueName="column" HeaderText = "Milestone">
                        <HeaderStyle HorizontalAlign="Left" />
                     </telerik:GridBoundColumn>
                     <telerik:GridCheckBoxColumn AllowFiltering="False" AllowSorting="False" DataField="UserDefinedPercent" DataType="System.Boolean" Groupable="False" ShowSortIcon="False" HeaderText = "User Entered %" UniqueName="column1">
                     </telerik:GridCheckBoxColumn>
                     <telerik:GridNumericColumn AllowFiltering="False" AllowSorting="False" DataField="Percent" DataType="System.Int32" DecimalDigits="0" Groupable="False" HeaderText="% of Total Goal" ShowSortIcon="False" UniqueName="column2">
                     </telerik:GridNumericColumn>
                     <telerik:GridDateTimeColumn AllowFiltering="False" AllowSorting="False" DataField="DateMilestoneEnd" DataType="System.DateTime" Groupable="False" HeaderText="Date to Complete" ShowSortIcon="False" UniqueName="column3">
                     </telerik:GridDateTimeColumn>                                              
  
                      <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center"  />
                    </telerik:GridButtonColumn>
                   </Columns>
     
                     </MasterTableView>
  
                 </telerik:RadGrid>
  
   <br />
   <br />
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="GoalType2Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GoalType2Grid"  />
  
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
   </telerik:RadAjaxManager>   
  
</asp:Content>

The master page has:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <%--Needed for JavaScript IntelliSense in VS2010--%>
        <%--For VS2008 replace RadScriptManager with ScriptManager--%>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>
    
Martin
Telerik team
 answered on 19 Oct 2011
12 answers
121 views
Looks like drag and drop within the scheduler does not work correctly in Safari when you scroll.  The scroll causes an offset of where the appointment/task is dropped and loses where the mouse is within the scheduler making it appear not to work.  I was able to reproduce in your demo for drag and drop.  

To recreate:

1.  scroll down in the scheduler
2.  drag an appointment

Notice the jump in the scheduler and the scrollbar.

Any help would be appreciated.
Peter
Telerik team
 answered on 19 Oct 2011
1 answer
53 views
hi

my radgrid uses Tempalte in EditFormSettings. It current contains 2 pages of data.
When I click on Add New Record the command button on top of the grid, the edit form opens correctly in insert mode. However when I look closely at the data, it actually shows the second page, and the page number on the bottom of the grid shows "2".

I bind grid the same way in other pages too, however this page is the only one that has this issue.

Any idea why this happened?

Thanks in advance!

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Oct 2011
1 answer
96 views
Hi,
In my project I have asp buttons, checkboxes and already have telerik buttons, grids etc. I want to set a custom skin for all of them.
In master page I put a skinmanager and formdecorator elements and set my custom skin. I used both of them because If I use only formdecorator asp controls affected from skin not telerik controls, or If I use only skinmanager, telerik controls affected from skin not asp controls. So I used all of them.
1- Are there a solution about using only one component for setting a skin to all controls(Asp and Telerik)
2- After building project, in Google Chrome there is no problem in skin, everything is working fine but in IE 9 all controls are looking very bad, in Firefox skin is working but positions are wrong. How can I solve?
In attachments you can see screen captures for Chrome, IE and Firefox.

Thank you.
Tsvetoslav
Telerik team
 answered on 19 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?