Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
83 views

Am using radgrid in which am binding my sp ... in my sp am using  dynaimic pivot 

Name  Block Name       Type    2012/1/1   2012/1/2 2012/1/3   till 31 for monthly status    ....total 

xyz      IT                   dom        1                  1            1                                                    3

abc      f.s                   dom        3                  3           3                                                     9

pqe      Finance            sea         4                  1           2                                                     7

how can i bind dynamic dates to rad grid please help me ..


telerik:RadGrid ID="grdBlock" runat="server" GridLines="None" AllowFilteringByColumn="True"
                                           
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="True" ShowGroupPanel="True"
                                           
PageSize="25" OnNeedDataSource="grdBlock_NeedDataSource" Skin="Office2007" OnItemCommand="grdBlock_ItemCommand">
                                           
<GroupingSettings CaseSensitive="false" />
                                           
<ExportSettings HideStructureColumns="true" IgnorePaging="true" FileName="Block"
                                               
ExportOnlyData="true" OpenInNewWindow="true">
                                               
<Excel Format="ExcelML" />
                                           
</ExportSettings>
               
<MasterTableView>
                                               
<Columns>
                                                   
<telerik:GridTemplateColumn UniqueName="Block_Master_Id" SortExpression="Block_Master_Id"
                                                       
DataField="Block_Master_Id" Visible="false">
                                                       
<ItemTemplate>
                                                            <asp:Label ID="lblBlockId" runat="server" Text='
<%# Bind("Block_Master_Id") %>'>
                                                           
</asp:Label>
                                                       
</ItemTemplate>
                                                       
<ItemStyle HorizontalAlign="Center" />
                                                   
</telerik:GridTemplateColumn>
                                                   
<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Center" UniqueName="Block_Name"
                                                       
DataField="Employee_Name" HeaderText="Employee Name" ReadOnly="true" SortExpression="Employee_Name">
                                                   
</telerik:GridBoundColumn>
                                                   
<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Center" UniqueName="Block_Name"
                                                       
DataField="Block_Name" HeaderText="Block Name" ReadOnly="true" SortExpression="Block_Name">
                                                   
</telerik:GridBoundColumn>
                                                   
<telerik:GridBoundColumn ItemStyle-HorizontalAlign="Center" UniqueName="BlockType"
                                                       
DataField="BlockType" HeaderText="BlockType" ReadOnly="true" SortExpression="BlockType">
                                                   
</telerik:GridBoundColumn>

                                               
</Columns>
                                           
</MasterTableView>
                                     
                                       
</telerik:RadGrid>

Kshitiz
Top achievements
Rank 1
 asked on 01 Feb 2012
1 answer
236 views
I have a page with RadAjaxPanel and RadAjax Loading Panel.
I also have a modalpopup extnder with a RAdGrid inside it. Everytime i Page the radgrid,It take about six seconds to page(since page is quite heavy with dynamic cntrls) and in the mean time the loading panel falls behind the modal popup and not over it.
Is there an way to overlay the Modalpopupextender with the Loading panel while paging  etc?
Mira
Telerik team
 answered on 01 Feb 2012
1 answer
143 views

hi

how to call serverside textbox changed event from javascript client side
pls help..............
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Feb 2012
4 answers
141 views
I'm using a user control to insert new records into a grid. How can I control the sorting of the grid after the insert has completed?
Frank
Top achievements
Rank 2
 answered on 01 Feb 2012
1 answer
128 views

Hi,

I'm trying to create a menu item like the one in the mega dropdown example.

Mega Drop Down

I've added my own html code to one of my RadMenuItem elements which is working fine.

My only problem now is how i can remove the skined background (I'm using the WebBlue skin) and

replace it with a plane white background. The realy importent css classes used in the example 

(like "Products") unfortunately are not part of the source code.

Best regards

Martin Horst

Kate
Telerik team
 answered on 01 Feb 2012
0 answers
85 views
Hi

We have a page that we are updating the RadGrid control from telerik RadGrid classic to telerik RadGrid ASP.Net Ajax control kit.

This page has 2 grids registered to it.

The first grid binds the data on the server and returns a set of results. We then select items on this grid and pass the selected items to the second grid on the page to highlight to the user what items there are selecting against one of our containers.

Previously our code done the following (Updated with the latest Telerik client side api reference calls)

function AddToList(index)
	{
		var grid = $find('<%=grd.ClientID%>');    
		var Tick = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('IMG')[0];
		var PlusMinus = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('IMG')[1];
		var hid = grid.MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('INPUT')[10];
		
		if (!IsRevoked(PlusMinus) && !IsStatic(PlusMinus))
		{
			hid.value = "true";
			grid.MasterTableView.get_dataItems()[index].get_element().style.backgroundColor = "#E2EFE1";
			Tick.style.display = "block";
			PlusMinus.src = "../icons/tree/GreyMinus.gif";
			
			ShowRow(index);
		}
	}
Our problem lies in the ShowRow(index) call at the end of the method:

function ShowRow(index) 
{
	var ChkBox = GetPickerGrid().MasterTableView.get_dataItems()[index].get_element().getElementsByTagName('INPUT')[1];
    ChkBox.checked = true;
 
    GetPickerGrid().MasterTableView.ShowRow(index);
}

ShowRow is not an object.

Could you please point me in the right direction as to what ShowRow has now been replaced with or an alternative solution to what I am trying to achieve?

Regards,
Jonathan
Jonathan
Top achievements
Rank 1
 asked on 01 Feb 2012
3 answers
1.0K+ views
hi friends, sorry to ask this silly question. but iam new to telrik.
i placed a textbox control in my screen, which haves width:450px and height:100px.
the label for that textbox is placed in the middle for textbox, i need that text to place in the top against that textbox.

how to apply the text on top for the textbox. what css class should used to bring the text on the top.
thanks in advances
S.Rajkumar.
Vasil
Telerik team
 answered on 01 Feb 2012
5 answers
216 views
Good day,

I have a question regarding the usage of the StyleSheetManager in combination with Ajax Postbacks.

In some application scenarios we'd like to add stylesheets to the StyleSheets collection of the StyleSheetManager depending on the usercontrol we are loading after a javascript postback.

For instance:
- A button in an UpdatePanel is clicked
- An AJAX Postback occurs
- New Usercontrol is added to the controls collection of the Page
- Page_Init event of the new control is fired:

protected void Page_Init(object sender, EventArgs e)
{
    RadStyleSheetManager.GetCurrent(Page).StyleSheets.Add(new StyleSheetReference("KaosCore.Style.Widgets.FeedWall.css", "KaosCore"));
 
     
 
    RadScriptManager.GetCurrent(Page).Scripts.Add(new ScriptReference("KaosCore.Javascript.Widgets.FeedWall.js"));
 
}

- The scriptmanager loads its newly added script after the AJAX postback.
- The StyleSheetManager doen't seem to load the newly added stylesheet.

It looks like the RadStyleSheetManager loads only the Stylesheets added to the collection when the page is fully loaded ( !IsPostBack ).

Is there any way we can let the stylesheetmanager update the stylesheets in the head section with the current StyleSheets collection after an ajax postback?

Thanks in advance.

Regards,
P. van de Kamp
Application Developer

Imran Javed Zia
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
224 views
I have defined a RadUpload control: 

<telerik:RadUpload MaxFileSize="512000" OverwriteExistingFiles="true" ControlObjectsVisibility="None"
          runat
="server" ID="RadUpload1" OnValidatingFile="uploadMedia_ValidatingFile"
          OnClientFileSelected
="uploadMedia_FileSelected" Width="500px" />

But this is rendered as: 

<span class="ruFileWrap ruStyled" style="width: 80px;" jQuery171041561896132524767="11">
   
<input class="ruFileInput" id="ctl00_MainContent_Edit1_RadUpload1file0" submitName="ctl00_MainContent_Edit1_RadUpload1file0" type="file" size="23" unselectable="on" _events="[object Object]"/>
   
<label style="display: none;" for="ctl00_MainContent_Edit1_RadUpload1file0">
   
<input class="ruFakeInput" id="ctl00_MainContent_Edit1_RadUpload1TextBox0" type="text" size="22"/>
   
<label style="display: none;" for="ctl00_MainContent_Edit1_RadUpload1TextBox0">
   
<input class="ruButton ruBrowse" type="button" value="Select"/>

You may notice the style="width: 80px;" property. That's the bit that's causing problems, it's 'cutting off' the right half of the control. I've traced the style using IE's developer tool but all it's telling me is that it's 'Inline.' Where is this styling defined? Is it possible to override the 80px?

Thanks a lot.

EDIT: Please note that this happens regardless of whether I'm setting the EnableFileInputSkinning and InputSize properties, these where just set in an attempt to solve the problem, and it didn't work. 

It's also worth mentioning that this has happened since our recent upgrade to Q3 2011 SP1.
Julien Pierre
Top achievements
Rank 1
 answered on 01 Feb 2012
17 answers
378 views
Hi,

In my current project, I have a RadGrid with multilevel grouping which contains editable checkboxes.

However, it is not possible to collapse the group of items in the RadGrid.

The code is given below and the webpage is available on http://www.gouw.ws/EditGrouping.aspx

Can you please tell me how to make the RadGrid collapsible?

ASPX:
=====
<telerik:RadGrid ID="RadGrid1" AutoGenerateColumns="false" AllowMultiRowEdit="true"
    OnNeedDataSource="RadGrid1_NeedDataSource" OnPreRender="RadGrid1_PreRender" runat="server">
    <ClientSettings EnableAlternatingItems="false">
        <Scrolling UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView EditMode="InPlace" TableLayout="Fixed">
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="Category" SortOrder="Ascending" />
                </GroupByFields>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="Category" HeaderText="Category" />
                </SelectFields>
            </telerik:GridGroupByExpression>
            <telerik:GridGroupByExpression>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="Type" SortOrder="Ascending" />
                </GroupByFields>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="Type" HeaderText="Type" />
                </SelectFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <Columns>
            <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" ReadOnly="true" UniqueName="Name" />
            <telerik:GridCheckBoxColumn DataField="Email" DataType="System.Boolean" HeaderText="Email" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ReadOnly="false" UniqueName="Email" />
            <telerik:GridCheckBoxColumn DataField="SMS" DataType="System.Boolean" HeaderText="SMS" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ReadOnly="false" UniqueName="SMS" />
            <telerik:GridCheckBoxColumn DataField="NotifyByEmail" DataType="System.Boolean" HeaderText="Notify By Email" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ReadOnly="false" UniqueName="NotifyByEmail" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

ASPX.CS:
========
public partial class EditGrouping : System.Web.UI.Page
{
    private List<Data> _data = null;
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            _data = Data.Load();
            Session["DATA"] = _data;
        }
        else
        {
            _data = (List<Data>)Session["DATA"];
        }
    }
 
    protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        this.RadGrid1.DataSource = _data; ;
    }
 
    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        foreach (GridDataItem item in this.RadGrid1.Items)
        {
            item.Edit = true;
        }
        this.RadGrid1.Rebind();
    }

Regards,
Herman
Tsvetina
Telerik team
 answered on 01 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?