Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
103 views
We need to develop our own skin for the datepicker and the timepicker in the calendar control.  We need a css for the calender/pickers.  Where can I get a css for this component that includes the formats for the pickers?
Sebastian
Telerik team
 answered on 26 Jun 2009
0 answers
169 views
I have placed a RadComboBox on my page as following:

 

<radCb:RadComboBox ID="RadComboBox2" runat="server" 

SkinsPath="~/RadControls/ComboBox/Skins" Width="150px">   

 

</radCb:RadComboBox>

I have to populate some items (e.g. 2 countries) into this using javascript:
function populateMyRadComboBox(comboBox)
{
...
// what I want is:
// comboBox.Items.Clear();
// comboBox.Items.Add('UK');
// comboBox.Items.Add('US');
}

How can I do this using JavaScript?

Any help?

Pooya
Top achievements
Rank 1
 asked on 26 Jun 2009
2 answers
136 views
I used the codes written here for OnClientSelectedIndexChanged: http://www.telerik.com/help/aspnet-ajax/combo_clientsideonclientselectedindexchanged.html

The event is raised when an item selection is changed but the parameters are not passed.

eventArgs is null inside the function and sender just has Text and Value properties.

Any help is much appreciated.
Pooya
Top achievements
Rank 1
 answered on 26 Jun 2009
3 answers
128 views
not sure why but i added the form decorated to my master page. and it seems the controls dont get rendered correctly.
the only styling i am using is a cssclass that sets the width of the controls.
but even then some controls do and some do not.

are there any issues with have the radformdecorater on a master page and having it decorate on the controls in the content page as well as webusercontrols inside the content page.

i even have one page where some controls are decorated and others are not even though they have the same cssclass assigned and are the same type of controls.

thanks
Georgi Tunev
Telerik team
 answered on 26 Jun 2009
1 answer
94 views
I am generating a grid that contains hiearchical data.  The child detail table is being generated in the DetailTableDataBind event.  When the child table is displayed the columns twice.  I only want them to display once.  Any ideas?

 

protected void rgdTestPlan_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

 

{

 

 

GridDataItem parentItem = e.DetailTableView.ParentItem as GridDataItem;

 

 

 

if (parentItem.Edit)

 

{

 

 

return;

 

}

 

 

GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;

 

 

 

if (e.DetailTableView.Name == "TestPlanList")

 

{

 

e.DetailTableView.DataSource = 'myDataTable'

 

 

 

}

}



ASPX

 

 

 

<telerik:RadGrid ID="rgdTestPlan" GridLines="None" Skin="Web20" AllowMultiRowSelection="false" AllowMultiRowEdit="false" runat="server"

 

 

 

AutoGenerateEditColumn="false" OnItemCreated="rgdTestPlan_ItemCreated" OnNeedDataSource="rgdTestPlan_NeedDataSource"

 

 

 

 

 

 

 

 

OnUpdateCommand="rgdTestPlan_OnUpdateCommand" on OnDetailTableDataBind="rgdTestPlan_DetailTableDataBind" OnCancelCommand="rgdTestPlan_OnCancelCommand" OnSortCommand="rgdTestPlan_OnSortCommand"

 

 

 

 

 

 

 

 

OnItemDataBound="rgdTestPlan_ItemDataBound"

 

 

 

 

 

 

 

 

ShowStatusBar="true" AllowPaging="true" >

 

 

 

 

 

 

 

 

<PagerStyle Mode="NextPrevNumericAndAdvanced" EnableSEOPaging="false"></PagerStyle>

 

 

 

 

 

 

 

 

<HeaderContextMenu EnableTheming="True"><CollapseAnimation Duration="200" Type="OutQuint" /></HeaderContextMenu>

 

 

 

 

 

 

 

 

<PagerStyle Mode="NextPrevNumericAndAdvanced" EnableSEOPaging="false"></PagerStyle>

 

 

 

 

 

 

 

 

<HeaderContextMenu EnableTheming="True"><CollapseAnimation Duration="200" Type="OutQuint" /></HeaderContextMenu>

 

 

 

 

 

 

 

 

<MasterTableView AutoGenerateColumns="False" EditMode="InPlace" Name="TestSpecList" AllowNaturalSort="false" DataKeyNames="MasterSpecId" CommandItemDisplay="None">

 

 

 

 

 

 

 

 

<DetailTables>

 

 

 

 

 

 

 

 

<telerik:GridTableView DataKeyNames="TestPlanId" Name="TestPlanList" Width="100%" runat="server">

 

 

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="/Img/Using/GridEdit.gif" UniqueName="EditCommandColumn"><ItemStyle CssClass="MyImageButton" /></telerik:GridEditCommandColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="TestPlanId" HeaderText="TestPlanId" SortExpression="TestPlanId" UniqueName="TestPlanId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="PlatformMasterSpecId" HeaderText="PlatformMasterSpecId" SortExpression="PlatformMasterSpecId" UniqueName="PlatformMasterSpecId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="ContainerId" HeaderText="ContainerId" SortExpression="ContainerId" UniqueName="ContainerId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="ParamLimitId" HeaderText="ParamLimitId" SortExpression="ParamLimitId" UniqueName="ParamLimitId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="TestJobId" HeaderText="TestJobId" SortExpression="TestJobId" UniqueName="TestJobId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="ContainerName" HeaderText="Container" SortExpression="ContainerName" UniqueName="ContainerName" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="PlanLevel" HeaderText="Plan Level" SortExpression="PlanLevel" UniqueName="PlanLevel" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Priority" HeaderText="Priority" SortExpression="Priority" UniqueName="Priority" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="ForwardTestPlanId" HeaderText="Symbol Feed Forward" SortExpression="ForwardTestPlanId" UniqueName="ForwardTestPlanId" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="TestPlanStatus" HeaderText="Test Plan Status" SortExpression="TestPlanStatus" UniqueName="TestPlanStatus" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="TestJobName" HeaderText="Test Job Name" SortExpression="TestJobName" UniqueName="TestJobName" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

<%

 

--<SortExpressions>

 

<telerik:GridSortExpression FieldName="PlanLevel"></telerik:GridSortExpression>

<telerik:GridSortExpression FieldName="ContainerName"></telerik:GridSortExpression>

</SortExpressions>--

 

 

%>

 

 

 

</telerik:GridTableView>

 

 

 

 

 

 

 

 

</DetailTables>

 

 

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="/Img/Using/GridEdit.gif" UniqueName="EditCommandColumn"><ItemStyle CssClass="MyImageButton" /></telerik:GridEditCommandColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="UniqueGridId" HeaderText="UniqueGridId" UniqueName="UniqueGridId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="MasterSpecId" HeaderText="MasterSpecId" SortExpression="MasterSpecId" UniqueName="MasterSpecId" Visible="false"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="FuncBlock" HeaderText="Functional Block" SortExpression="FuncBlock" UniqueName="FuncBlock" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Param" HeaderText="Parameter" SortExpression="Param" UniqueName="Param" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Symbol" HeaderText="Symbol" SortExpression="Symbol" UniqueName="Symbol" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="Cond" HeaderText="Condition" SortExpression="Cond" UniqueName="Cond" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridBoundColumn DataField="TestType" HeaderText="TestType" SortExpression="Test Type" UniqueName="TestType" Visible="true"></telerik:GridBoundColumn>

 

 

 

 

 

 

 

 

<telerik:GridDropDownColumn DataField="Priority" HeaderText="Priority" SortExpression="Priority" UniqueName="Priority" Visible="true"></telerik:GridDropDownColumn>

 

 

 

 

 

 

 

 

<telerik:GridDropDownColumn DataField="ForwardTestPlanId" HeaderText="Symbol Feed Forward" SortExpression="ForwardTestPlanId" UniqueName="ForwardTestPlanId" Visible="true"></telerik:GridDropDownColumn>

 

 

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

 

 

<EditFormSettings UserControlName="TestSpec_Entry.ascx" EditFormType="WebUserControl">

 

 

 

 

 

 

 

 

<EditColumn UniqueName="EditTestSpec"></EditColumn>

 

 

 

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

 

 

<clientsettings>

 

 

 

 

 

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="false"></Scrolling>

 

 

 

 

 

 

 

 

<selecting allowrowselect="True" />

 

 

 

 

 

 

 

 

</clientsettings>

 

 

 

 

 

 

 

 

<FilterMenu EnableTheming="True">

 

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

 

 

 

 

 

 

</FilterMenu>

 

 

 

 

 

 

 

 

</telerik:RadGrid>

 

 

Princy
Top achievements
Rank 2
 answered on 26 Jun 2009
5 answers
191 views
I have a grid defined as below.  I want all of the columns to have white text, with alternating shades of green for the rows.  Everything works fine except that the single hyperlink column that I have uses the default foreground color (black).  I've tried setting the color on both the grid ItemStyle (which worked for everything else) and then I tried setting the attribute on the GridHyperLinkColumn, which still did not work.

<telerik:RadGrid ID="gridResults" runat="server" EnableEmbeddedSkins="True" Skin="Default"   
            width="100%" GridLines="None" AutoGenerateColumns="False"   
            StatusBarSettings-ReadyText="Click on a row to see the device details">  
            <SelectedItemStyle BackColor="#BE7F3F" /> 
            <HeaderStyle Font-Size="8pt" HorizontalAlign="Center" VerticalAlign="Bottom" /> 
            <ItemStyle ForeColor="White" Font-Size="8pt" BackColor="#9CAC57" HorizontalAlign="Center" VerticalAlign="Top" /> 
            <AlternatingItemStyle ForeColor="White" Font-Size="8pt" BackColor="#B1C363" HorizontalAlign="Center" VerticalAlign="Top" /> 
            <HeaderContextMenu EnableEmbeddedSkins="False"></HeaderContextMenu> 
            <MasterTableView DataKeyNames="FacilityID,ControlNum,EquipActive" GridLines="None" TableLayout="Fixed">  
                <Columns> 
                    <telerik:GridButtonColumn CommandName="Select" Text="Details" UniqueName="colSelect" /> 
                    <telerik:GridHyperLinkColumn DataNavigateUrlFormatString="newwo.aspx?fac={0}&amp;cn={1}"   
                        DataNavigateUrlFields="FacilityID,ControlNum" Text="Open WO" UniqueName="OpenWO" ItemStyle-ForeColor="White" /> 
                    <telerik:GridBoundColumn DataField="ControlNum" HeaderText="SCTM Tag #" UniqueName="ControlNum" /> 
                    <telerik:GridBoundColumn DataField="CustTag" HeaderText="Facility Tag #" UniqueName="CustTag" /> 
                    <telerik:GridBoundColumn DataField="PriorTag" HeaderText="Prior Tag #" UniqueName="PriorTag" /> 
                    <telerik:GridBoundColumn DataField="Serial" HeaderText="Serial #" UniqueName="Serial" /> 
                    <telerik:GridBoundColumn DataField="ShortName" HeaderText="Facility" UniqueName="ShortName" /> 
                    <telerik:GridBoundColumn DataField="DeptName" HeaderText="Cost Ctr/Dept" UniqueName="DeptName" /> 
                    <telerik:GridBoundColumn DataField="EquipStatusName" HeaderText="Status" UniqueName="EquipStatusName" /> 
                    <telerik:GridBoundColumn DataField="ManfName" HeaderText="Manufacturer" UniqueName="ManfName" /> 
                    <telerik:GridBoundColumn DataField="DeviceDescription" HeaderText="Description" UniqueName="DeviceDescription" /> 
                </Columns> 
                <EditFormSettings> 
                    <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif"></EditColumn> 
                </EditFormSettings> 
            </MasterTableView> 
            <ClientSettings> 
                <Scrolling ScrollHeight="100px" AllowScroll="true" UseStaticHeaders="true" FrozenColumnsCount="4" /> 
            </ClientSettings> 
            <FilterMenu EnableEmbeddedSkins="True"></FilterMenu> 
        </telerik:RadGrid> 

Any ideas?  Thanks in advance!
Nicolaï
Top achievements
Rank 2
 answered on 26 Jun 2009
1 answer
157 views
Hello,

I am wondering if there is a way to open a RadWindow and access an object from the parent on the server side.  For example, I have a RadTree in the Parent Page.  Clicking on a button will lauch a RadWindow and on the PageLoad (server side) of the RadWindow I want to access the RadTree which is on the Parent page.

Thanks,
Feizal
Georgi Tunev
Telerik team
 answered on 26 Jun 2009
3 answers
398 views
Hi everyone,

Frist of all i just have to say how in love with RadGrid I am! :D Unfortuantely I don't think it loves me back or RadAjaxPanel is jellous and is causing me issues...

The problem I have is that when the RadAjaxPanel executes it's first postback the following features of Radgrid stop working until the entire page is postedback/refreshed.

  • RadGrid Row Selection
  • RadGrid Filter dropdown menu doesn't appear and generates Javascript errors
  • RadGrid Grouping ceases to work,

Can anyone assist me?

Thanks,
 
Xavier.

Xavier
Top achievements
Rank 1
 answered on 26 Jun 2009
1 answer
127 views
I have a node template which has a number of image buttons on it.

Is there an easy way of getting the node  on which the buttons reside on the click event? More generically, is there a way of getting the parent node of any controls in the NodeTemplate on their click event?

--
Stuart
Atanas Korchev
Telerik team
 answered on 26 Jun 2009
25 answers
1.3K+ views

Hi there, sorry for posting the same question again, I am facing a problem while using multiple ajaxmanagers with JS  $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Reset");

below is the details about the problem:

======> Main.aspx (is not a master page it’s a normal .aspx page)
            #
            #
            #=========> usercontrol1.ascx (this control is dynamically added to the Main.aspx page)
                                   ( it has the 1 radgrid, 1 radajaxmanage, 1 textbox)    
                                    ( while typing the text on the textbox i fire a JS event which fire a ajax request using this code
                                     $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("Reset"); )
            #
            #
            #=========> usercontrol2.ascx (this control is dynamically added to the Main.aspx page)
                                   ( it has the 1 radgrid, 1 radajaxmanage, 1 textbox)    
                                    ( while typing the text on the textbox i fire a JS event which fire a ajax request using this code $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("Reset"); )

there are two controls which are dynamically added on the main.aspx page, each control has its own radajaxmanager and fires a ajaxrequest using the JS function. if i add only one control to the page it works fine but as soon as I add the other control i start getting the "single instance" error message of radajax manager. I found few articles on the same but was not able to find the solution.

If there is any other example which solves the same problem kindly post it here



thanks aton
nitesh monga

            
Sebastian
Telerik team
 answered on 26 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?