Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 views
Hi
I have 4 grids on batch mode on a page, I have to updated all of them in once with a Save button, How do I get only the records which are changed in each grid?
Thanks
Angel Petrov
Telerik team
 answered on 02 Jul 2013
1 answer
136 views
I am a newer web developer.  I am working with ASP.NET 4  and C# in visual studio 2012. Also, I am using the latest version of the UI controls for ASP.NET.

I have a page where I need to be able to load a bunch of user controls(ascx pages).  I used the following example :
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx
to start building what I needed. I have 6-7 different controls but for this question I am going to relate to only 3 of them.

I have a master page that I am building off of.  That master page has the RadScriptManager and RadAjaxPanel.  The panel is set up as follows:

<div class="contentContainer">
    <div class="contentPanel">
        <telerik:RadAjaxPanel runat="server">
            <asp:ContentPlaceHolder ID="MainContent" runat="server" />
        </telerik:RadAjaxPanel>
    </div>
</div>

Then, in my page I have the following:

<telerik:RadAjaxPanel runat="server">
    <div class="tabsContainer">
        <asp:LinkButton ID="lblDetails" runat="server" CssClass="headerTabItem" Text="Details"  />
        <asp:LinkButton ID="lblDrafts" runat="server" CssClass="headerTabItem" Text="Drafts"/>
        <asp:LinkButton ID="lblFees" runat="server" CssClass="headerTabItem" Text="Fees"/>
     </div>
    <div class="contentContainer">
        <div class="panelContent">
            <asp:Panel ID="displayPanel" runat="server"/>  
        </div>
    </div>
        <div class="controlsContainer">
        </div>
</telerik:RadAjaxPanel>

Then my code behind is as follows:

    private string LatestLoadedControlName
    {
        get
        {
            return (string)ViewState["LatestLoadedControlName"];
        }
        set
        {
            ViewState["LatestLoadedControlName"] = value;
        }
    }
 
    #endregion
 
 
    #region Events
 
    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
        lblDetails.Click += new System.EventHandler(this.lb_Details_Click);
        lblDrafts.Click += new System.EventHandler(this.lb_Drafts_Click);
        lblFees.Click += new System.EventHandler(this.lb_Fees_Click);
        lblPayments.Click += new System.EventHandler(lb_Payments_Click);
        lblDeposits.Click += lb_Deposits_Click;
        lblTransactions.Click += lb_Transactions_Click;
        lblNotes.Click += lb_Notes_Click;
        lblStatements.Click += lb_Statements_Click;
 
    }
 
 
 
    /// <summary>
    /// Handles the Load event of the Page control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadUserControl(LatestLoadedControlName ?? "ClientDetail.ascx");    
        }
 
 
    }
 
    override protected void OnInit(EventArgs e)
    {
        InitializeComponent();
        base.OnInit(e);
    }
 
 
    protected void Page_PreRender(object sender, EventArgs e)
    {
 
    }
 
    #endregion Events
 
    private void lb_Details_Click(object sender, System.EventArgs e)
    {
        LoadUserControl("ClientDetail.ascx");
    }
 
    private void lb_Drafts_Click(object sender, System.EventArgs e)
    {
        LoadUserControl("Drafts.ascx");
    }
 
    private void lb_Fees_Click(object sender, System.EventArgs e)
    {
        LoadUserControl("Fees.ascx");
    }  
 
    /// <summary>
    /// Loads the user control.
    /// </summary>
    /// <param name="controlName">Name of the control.</param>
    public void LoadUserControl(string controlName)
    {
 
        if (!controlName.Contains(".ascx"))
        {
            //TODO: Make this better with substring
            controlName = controlName.Replace("MainContent_", "");
            controlName += ".ascx";
        }
 
        if (LatestLoadedControlName != null)
        {
            Control previousControl = displayPanel.FindControl(LatestLoadedControlName.Split('.')[0]);
             
            if (!Object.Equals(previousControl, null))
            {
                this.displayPanel.Controls.Remove(previousControl);
            }
        }
 
        string userControlID = controlName.Split('.')[0];
 
        Control targetControl = displayPanel.FindControl(userControlID);
        
        if (Object.Equals(targetControl, null))
        {
            UserControl userControl = (UserControl)this.LoadControl(controlName);
 
            //slashes and tildes are forbidden
            userControl.ID = userControlID.Replace("/", "").Replace("~", "");
 
            this.displayPanel.Controls.Add(userControl);
 
            LatestLoadedControlName = controlName;
        }
 
    } 
 
}


It will load pages the first time.  I can then also swap drafts and fees but I can not return to the details page.  In my debugging I am not seeing it ever finding the old control and removing it.  At this point I am at a loss.  

Am I going down the right path?  Should I do this a different way?

Thanks for your time in advance.




Andrey
Telerik team
 answered on 02 Jul 2013
1 answer
107 views

Hello, I'm writing you because now I'm having problems about session state in web farm and telerik controls. My web server now is configured in SLQSever mode but when I try start up my site this error show up (see attached file).


By other hand, I wondering you  if there is any upgrade about telerik controls to help me to prevent this error.

 

Best Regards, many thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jul 2013
4 answers
121 views

Hello Telerik team,

i have two problems in my project.

the first one occures while Radwindow is moved over Heavy-Weight Objects.
The border of the window disappears while it is over the object (mouse key down).
If i stop moving the window, the border is drawn again (mouse key up).

IE is an special case. Here i can only stop moving the window, if a part of it is not over the object. Otherwise i am not able to do it.

The HTML in this window is visible all the time.

Overlay property of the window is set to true, and the z-index of the window is higher than the z-index of my PDF-Viewer Plugin.

Do you have any hints for me?

The second Problem:

I have a grid with enabled inline-edit mode and all rows are editable.
In the commanditem of this grid is a search-button for possible entries.
If i tab to an open cell an click this search button, the cell loses focus and a radwindow with possible entries is shown.
After the search-value is found and confirmed, it is automatically insertet in the "opener" cell. The focus is set to it as well.

But if i want to tab to the next cell, the first cell of the first row is selected. Is there a possibility to resolve this issue without setting tabindex for every cell manually?

Thanks a lot!

 

Eyup
Telerik team
 answered on 02 Jul 2013
6 answers
131 views
var kon = -1;
var a = 'Tam Sitogenetik Yanıt';
var b = 'Kısmi Sitogenetik Yanıt';
var c = 'Minör Sitogenetik Yanıt';
var d = 'Minimal Sitogenetik Yanıt';
var e = 'Yanıt Yok';

kon = $find('cid46889').get_value();

if ($find('cid46889').get_value() != '')
{
if (kon ==  0)  $find('cid47267').set_value(a); 
if (kon >= 1 && kon <= 35) $find('cid47267').set_value(b); 
if (kon >= 36 && kon <= 65) $find('cid47267').set_value(c); 
if (kon >= 66 && kon <= 95) $find('cid47267').set_value(d); 
if (kon > 95) $find('cid47267').set_value(e); 
}
else $find('cid47267').set_value(''); 
----------------------------------------------------------------------
when i enter 0 in textbox, it is return empty. but it must show 'Tam Sitogenetik Yanıt'
it is not giving error but right text is not returning back.
Hatice
Top achievements
Rank 1
 answered on 02 Jul 2013
3 answers
81 views
Hi,

I am using Radscheduler with WCF calling.

 Its working in IE but not working in Mozila and GoogleChrome.

show error -GetAppointment failed.

Please update me.

Thanks,



Plamen
Telerik team
 answered on 02 Jul 2013
0 answers
128 views
Good day,

we have one treeview in a masterpage content, which is skinned using

    <telerik:RadStyleSheetManager ID="rssm" runat="server">
        <StyleSheets>
            <telerik:StyleSheetReference Assembly="Ourskinsproject.Skins" Name="Ourskinsproject.Skins.TreeView.Ourskin.css" />

The CSS file is in our project, and uses the webresource like this

.Ourtreestyle .rtPlus, .rtMinus
{
    background-image: url('<%=WebResource("Ourskinsproject.Skins.TreeView.PlusMinus.png")%>');
}


And the treeview renders correctly. Images are in fact embedded in the DLL.

The problem is:
Inserting the same treeview into a different page, in an IFRAME (no masterpage), "breaks" the skin, which elements become invisible, meaning that they will not be parsed from webresource, and the image urls remain in their
'<%=WebResource("Ourskinsproject.Skins.TreeView.PlusMinus.png")%>'

unparsed format.

We use code to add the skin to the page, like this

    protected override void OnInit(EventArgs e)
    {
...
        StyleSheetReference cssTreeview = new StyleSheetReference("Ourskinsproject.Skins.Treeview.Ourskin.css", "Ourskinsproject.Skins");
...
        radStyleSheetManager.StyleSheets.Add(cssTreeview);


The css is actually present in the page, and its styles are available and applied, but URLs will not be processed by the webresource.

What are we missing? What needs to be done for the css to be parsed, other than adding it to the page?

Thanks in advance.
archimede
Top achievements
Rank 1
 asked on 02 Jul 2013
6 answers
460 views
Hi Team,
I have a radgrid with ClientSelectColumn.
I select a row on first page of the grid, move to second page select 3 rows on second page.
When I come back to first page, my selection on the first page disappears. I mean the selection does not persist.
So I tried what has been said in this post. It works very well as far as visualisation is concerned. It does show that I have my rows selected from different pages.
But when on a button click (outside the grid) I try to loop through this collection, all I get is the records from current selected page and not all the rows selected from different pages.

foreach (GridDataItem item in RadGrid1.SelectedItems)
{
..// Code here
}

RadGrid1.SelectedItems  gives rows from the current selected page only and not the entire selection.

Will you please help me with this?
Any help appreciated.

Thanks,
Lok..
Eyup
Telerik team
 answered on 02 Jul 2013
5 answers
253 views
I have perused your documentation. Please can you tell me the specific file location/path to place the custom CSS file and the specific syntax to update the ListConfig.xml so as to point to the new CSS file.

Thank you
Ianko
Telerik team
 answered on 02 Jul 2013
3 answers
163 views
Hi All,
   we just discovered the RadFilter control.

We had been mostly using standard asp controls to feed parameters into a code behinds method call to a stored procedure, thus every time we wanted to re-filter the data set, we got the data set again with a fresh query.

I had been putting in column by column custom filtering when I stumbled across the RadFilter control.

While the RadFilter control is very powerful, we are afraid some of our less knowledgeable users will be clueless on how to use it.

Can we:
1) Preset the RadFilter with a set of initial filters?
2) Set up "Presets" of commonly used filter sets that I could apply with a button press?
Antonio Stoilkov
Telerik team
 answered on 02 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?