Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
568 views
Hi guys,

I had look through your posts and cant seem to find what i am looking for.

Could someone please post a link to a answer to my question because im sure this would have been answered before.

Inside of my 1st Radwindow a user will have an option so search for a customer, When the user clicks on a button it opens another RadWindow inside of my current RadWindow. my 2nd Radwindow will pass data to the 1st RadWindow if the save button is clicked.

The 2nd RadWindow has a "Save" and "Close" button.

What i need is when the save button or close button is clicked the 2nd Radwindow will close and display the 1st one again

Thnx in advance.
newguy
Top achievements
Rank 1
 answered on 19 Jul 2013
5 answers
73 views
hello 
I have attach image of grid
in which grid filter in not visible
Maria Ilieva
Telerik team
 answered on 19 Jul 2013
4 answers
209 views
Hello,
Am using Rad Grid with NeedDataSource for databinding, and also used paging and filter.
I have set filtering only for "Contains" without filter icon just by pressing enter
Please find my aspx below,
I added paging drop down values in Grid_ItemCreated Event,
Filtering works fine when the page size is 50 or less than that,
Now my problem is when I select page size as 100, filtering is not working for any of the columns.

Using the browser Mozilla Firefox,


protected void Managegridview_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridPagerItem)
            {
                var dropDown = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
                var totalCount = ((GridPagerItem)e.Item).Paging.DataSourceCount;
                var sizes = new Dictionary<string, string>()
                {
            {"10", "10"},
            {"20", "20"},
            {"50", "50"}
                };
 
                if (totalCount > 100)
                {
                    sizes.Add("100", "100");
                }
                if (totalCount > 200)
                {
                    sizes.Add("200", "200");
                }
                sizes.Add("All", totalCount.ToString());
 
                dropDown.Items.Clear();
                foreach (var size in sizes)
                {
                    var cboItem = new RadComboBoxItem() { Text = size.Key, Value = size.Value };
                    cboItem.Attributes.Add("ownerTableViewId", e.Item.OwnerTableView.ClientID);
                    dropDown.Items.Add(cboItem);
                }
                
dropDown.FindItemByValue(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;- NullreferenceException in this line(object reference not set to instance of object)
            }
        }

.aspx
<telerik:RadGrid ID="Managegridview" runat="server" AllowPaging="true" AllowSorting='true'
        GridLines="None" OnNeedDataSource="Managegridview_NeedDataSource" OnItemDataBound="Managegridview_ItemDataBound"
        AllowFilteringByColumn="true" CellSpacing="0" Skin="WebBlue"
        OnItemCreated="Managegridview_ItemCreated" PageSize="50">
        <GroupingSettings CaseSensitive="false"/>
        <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" AllowColumnHide="true" ColumnsReorderMethod="Reorder">
            <Resizing AllowColumnResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="false" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <MasterTableView GridLines="None" Width="100%" AllowMultiColumnSorting="true">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"
                Created="True">
            </ExpandCollapseColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle PageSizeControlType="RadComboBox" Mode="NextPrevAndNumeric" EnableSEOPaging="True"
                AlwaysVisible="true"></PagerStyle>
        </MasterTableView>
        <HeaderStyle Width="100px" />
 
<%--<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>--%>
 
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
Kothai
Top achievements
Rank 1
 answered on 19 Jul 2013
4 answers
94 views
Hi all

Is it possible to integrate radslider with radnumerictextbox so that each work in a sync fashion. The value change gets reflected in both controls.

Thanks
Ivy
Shinu
Top achievements
Rank 2
 answered on 19 Jul 2013
3 answers
166 views
Hi there
Is it possible to align the date part of the header of the scheduler control?
I have removed all controls in the header except the date part and wish to align this on the right
I have tried some styles as well
Thanks

 

ShowHeader="True" 
ShowNavigationPane="false"   
ShowViewTabs="false" 
EnableDatePicker="false" 
 
<style type="text/css">   
div.RadScheduler .rsHeader   
{   
text-align: right;   
padding-right: 0px;   
margin-right:0px;   
background-position:right;   
 }  
</style>   
 
 

 

 

 

 

 

Boyan Dimitrov
Telerik team
 answered on 19 Jul 2013
1 answer
62 views
I'm using the radGrid control with ajax set, for databinding I'm using asp.net 4.5 model binding and my select method returns an IQueryable as a data type. When I sort a column and then change the page, the page index changes, but the page contents remains the same. How can I solve this problem?
Milena
Telerik team
 answered on 19 Jul 2013
2 answers
183 views
Dear Telerik,

I am using a RadGrid with as custom data entry form and both are related only when the user clicks a link in the grid's row that fills up the Data enrty form with the row values. All manual. Now, this link column is actually this:

<telerik:GridTemplateColumn HeaderText="" UniqueName="EditColumn">
    <ItemTemplate>
        <asp:LinkButton CommandName="Edit" ID="LinkButtonEdit" runat="server">
            <asp:Image ID="ImageEdit" runat="server" ImageUrl="~/Images/Grid/Edit.gif" AlternateText="Edit" /></asp:LinkButton>
    </ItemTemplate>
</telerik:GridTemplateColumn>  

Everything works fine but upon clicking the link to edit, the grid row drops and shows a bit of it's built in edit form. I need to disable that.
Rajendran
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
115 views
I have an instance where i need to call some javscript from my code behind file, and when I do, no other fucntions work on the page anymore.  My radmenu no longer works and all the ajaxtool kit stuff i have operating no longer work as well.  I put everything in a radScriptBlock but the same result.  how can I resolve this problem.  This command does nothing with the menu system, it just opens up a div if a value equals 1.  I need to call in code behind only in certain instance but it disables everything else and should not.


If myDataTable.Rows.Count > 0 Then
           If myDataTable.Rows(0)(2) = "True" Then
               FILLDDL() 'Fill the drop down lists
               rblReported.SelectedValue = 1
               ScriptManager.RegisterStartupScript(Me.Page, GetType(String), "OpenDiv", "OpenDiv();", True)
           Else
               rblReported.SelectedValue = 0
           End If
 
       Else
 
       End If
 
 
 
function OpenDiv() {
                   var rbl = document.getElementById("<%=rblReported.ClientID%>");
                   var radios = rbl.getElementsByTagName("input");
                   var div = document.getElementById("Recruited");
                   var forms = document.getElementById("printform");
                   var Recheader = document.getElementById("RecInfo");
                   var Selval
                   for (var i = 0; i < radios.length; i++) {
                       if (radios[i].checked) {
                           Selval = radios[i].value;
                           if (Selval == 1) {
                               div.style.display = "inline";
                               forms.style.display = "inline";
                               Recheader.style.display = "inline";
                           }
                           else if (Selval == 0) {
                               div.style.display = "none";
                               forms.style.display = "none";
                               Recheader.style.display = "none";
                           }
                       }
                   }
               }

Dimitar Terziev
Telerik team
 answered on 19 Jul 2013
6 answers
778 views
How can I set/change the text of a column header on the client in response to a client-side event?  I would expect a GridTableView.set_columnHeaderText() or GridColumn.set_headerText(), but I don't see any methods like this?
Daniel
Telerik team
 answered on 19 Jul 2013
1 answer
166 views
Hey Guys.
I'm having a silly problem with updating the radlistbox on buttonclick.

can you give me a hint.

Thnx in advance

------.aspx------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="prova.aspx.cs" Inherits="Pages_prova" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager runat="server" ID="scriptMgr1">
        </asp:ScriptManager>
        <table>
            <tr>
                    <td align="left">
                        <telerik:RadListBox runat="server" ID="RL_PagesSource" Height="180px" Width="200px" ></telerik:RadListBox>
                    </td>
                    <td valign="top" align="center">
                    <br />
                        <telerik:RadButton ID="RB_PLeft" runat="server" Text=" > " Width="40px"
                            onclick="RB_PLeft_Click" SplitButtonCssClass=""
                            SplitButtonPosition="Right" ></telerik:RadButton><br /><br />
                        <telerik:RadButton ID="RB_PRight" runat="server" Text=" < " Width="40px"
                            SplitButtonCssClass="" SplitButtonPosition="Right" ></telerik:RadButton><br /><br />
                        <telerik:RadButton ID="RB_PLAll" runat="server" Text=" >> " Width="40" ></telerik:RadButton><br /><br />
                        <telerik:RadButton ID="RB_PRAll" runat="server" Text=" << " Width="40" ></telerik:RadButton><br /><br />
                    </td>
                    <td style="padding-left:30px;" align="left">
                        <telerik:RadListBox runat="server" ID="RL_PageDestination" Height="180" Width="200"
                AutoPostBack="True" onselectedindexchanged="RL_PageDestination_SelectedIndexChanged"></telerik:RadListBox>
                    </td>
            </tr>
        </table>
    </div>
     
    <telerik:RadAjaxManager runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RB_PLeft">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RL_PagesSource" />
                    <telerik:AjaxUpdatedControl ControlID="RL_PageDestination" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    </form>
</body>
</html>


-----.aspx.cs----
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
 
public partial class Pages_prova : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            RL_PagesSource.Items.Add(new RadListBoxItem("aaaa", "asdf"));
            RL_PagesSource.Items.Add(new RadListBoxItem("aasdf", "asdf"));
            RL_PageDestination.Items.Add(new RadListBoxItem("aasasdfadf", "asdf"));
        }
    }
    protected void RB_PLeft_Click(object sender, EventArgs e)
    {
        if (RL_PagesSource.Items.Count == 0 || RL_PagesSource.SelectedItem == null)
        {
        }
        else
        {
            RadListBoxItem it = new RadListBoxItem();
            it = RL_PagesSource.SelectedItem;
            RL_PageDestination.Items.Add(new RadListBoxItem(it.Text, it.Value));
             RL_PageDestination.DataBind();
            // RL_PagesSource.SelectedItem.Remove();
            // RL_PagesSource.DataBind();
        }
    }
    protected void RL_PageDestination_SelectedIndexChanged(object sender, EventArgs e)
    {
 
    }
}
Bozhidar
Telerik team
 answered on 19 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?