Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
77 views
Hello, i have a problem with collapsing NestedViewTemplate.
I have Grid with NedtedViewTemplate, when i expand an row everythink works fine, but collapsing not working.
If i click another row, the first is collapsing automaticaly, it`s imposible to expand two rows in one time, and also can`t collaps any row. Please help me with it.
Code below-

<telerik:RadGrid runat="server" ID="rgBase" OnNeedDataSource="rgBase_OnNeedDataSource" AutoGenerateColumns="false">

<MasterTableView EditMode="InPlace" AllowFilteringByColumn="true" ExpandCollapseColumn-Display="true" EnableViewState="false" AllowNaturalSort="false" AllowMultiColumnSorting="false" HierarchyLoadMode="ServerOnDemand" TableLayout="Fixed" Width="100%">

<NestedViewTemplate>

 

<asp:Label ID="lName" Text='<%# Eval("new_materialid") %>' runat="server" Visible="true"></asp:Label>

 

</NestedViewTemplate>

 

<Columns>

<telerik:GridTemplateColumn HeaderText="Column1" AllowFiltering="false" SortExpression="qty" UniqueName="qty" >

 

<ItemTemplate>

 

<asp:Label ID="lQTY" Text='<%# Eval("qty") %>' runat="server"></asp:Label>

 

</ItemTemplate>

 

<ItemStyle CssClass="gridItem" HorizontalAlign="Left" />

 

<HeaderStyle CssClass="gridHeader" Width="110" HorizontalAlign="Left"/>

 

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn HeaderText="Column2" AllowFiltering="false" UniqueName="remain" SortExpression="remain">

 

<ItemTemplate>  

 

<asp:Label ID="lRemain" Text='<%# Eval("remain") %>' runat="server"></asp:Label>

 

</ItemTemplate>

 

<ItemStyle CssClass="gridItem" Width="100" HorizontalAlign="Left" />

 

<HeaderStyle CssClass="gridHeader" Width="110" HorizontalAlign="Left"/>

 

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

 

<SortingSettings EnableSkinSortStyles="false" />

<ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" >

 

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

 

<Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" EnableRealTimeResize="false" />

 

<Selecting AllowRowSelect="true" />

<ClientEvents/>

</ClientSettings>

<SelectedItemStyle

CssClass="gridSelectedItemStyle"/>

</telerik:RadGrid>

 

protected void rgBase_OnNeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)

 

{

 

 

string _id = Request["id"].ToString();

 

 

 

Guid entityID = new Guid(_id);

 

ReloadData(3, entityID);

}


Tsvetina
Telerik team
 answered on 11 Jul 2011
2 answers
91 views
dear all,

I am trying to add in pictures for the tabs, and want them to overlap (like the attached picture).

I use margin on all of them, so that they will squeeze together, and then use z-index to arrange them.

but the problem is the z-index only affects the first tab, the other 3 tabs does not arrange according to the z-index

I use C# (Telerik Version=2010.3.1317.35) and my code looks like :

AddTab("Account Info", true, "10");
AddTab("Enter Info", true, "8");
AddTab("Confirm Info", true, "2");
AddTab("Submit", true, "1");

private void AddTab(string tabName, bool enabled, string zIndex)
{
RadTab tab = new RadTab(tabName);

tab.Style.Add("margin-right", "-28px");
tab.Style.Add("position", "relative");
tab.Style.Add("z-index", zIndex);
tab.Enabled = enabled;
RadTabStrip1.Tabs.Add(tab);
Tho Shi Teng
Top achievements
Rank 1
 answered on 11 Jul 2011
2 answers
77 views
I need to dynamically add some controlls to a web user control.
  
I'm putting all the controlls to a Table control and adding to the page as follows at the RenderControl event.

 

Public Overrides Sub RenderControl(ByVal writer As System.Web.UI.HtmlTextWriter)

 

 

Dim panel As New Panel

 

 

Dim outerTable As New Table

 

outerTable = generateDynamicControls()

panel.Controls.Add(outerTable)

panel.RenderControl(writer)

 

MyBase.RenderControl(writer)

 

 

End Sub

 


When I adding simple ASP controls to this outer table, it is working fine.
But when I add Telerik Controls gives following error when it execute  "panel.RenderControl(writer)" code.
Error:
Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

I'm using a Master page also.

Can u help me?
Sebastian
Telerik team
 answered on 11 Jul 2011
2 answers
93 views
Hi All,

I want to use two Pager Templates in my rad grid with some different controls say Template at the top works for the paging and sorting and the Pager at the bottom contains the drop down for controlling records per page. Is it possible in radGrid to use Pager Templates like this having different controls inside it?

Thanks in Advance.


  
Vinay
Top achievements
Rank 1
 answered on 11 Jul 2011
1 answer
68 views
Hi guys,

I have a short question.
I would like to set GridBoundColumns visibility to false if the column is empty. Can you please help me?

Thanks,
Ervin
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
245 views
Hi everybody,

Since RadNumericTextBoxes do not provide a build-in feature to have it as required field, we implemented a custom validator that checks for a missing value. This validator works well, if the NumericTextBox is not within a RadGrid. If we use the custom validator within a EditTemplate, it is not invoked. When we use a asp:RequiredFieldValidor instead, the validation is processed. Why is a custom validor not invoked when we click "Insert" or "Update" while a RequiredFieldValidator works correctly?

Thanks in advance
Marco
<EditFormSettings EditFormType="Template">
<EditColumn FilterControlAltText="Filter EditCommandColumn column" />
<FormTemplate>
<table cellspacing="2" cellpadding="1" border="0">
<tr>
<td>
    <telerik:RadNumericTextBox ID="Amount" runat="server" DbValue='<%# Bind("Amount") %>' Width="80px" />
        <!-- This one is invoked -->
    <asp:RequiredFieldValidator ControlToValidate="Amount" ErrorMessage="*" runat="server" Text="*" />
        <!-- This one is NOT invoked but works well when not embedded in RadGrid-->
    <asp:CustomValidator ID="Amount_Required" ClientValidationFunction="CheckNumberRequired"
            ControlToValidate="Amount" runat="server" ValidateEmptyText="true" />
</td>
</tr>
Mira
Telerik team
 answered on 11 Jul 2011
3 answers
88 views
Hello telerik, is there any way to hide the light gray lines that appear in a hierarchical grid?

thanks
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
246 views
Hi ,

Your reqirement is like one control will have rad grid with autogenerate column = true. And dynamically according to the page type the datasource will be set i.e. like if page is for customer then  list of customer will be there. If page is for product then product list will be the datasource for radgrid. Also we are goinig to have filters in each page for each cloumns.
Here my question is how can i apply filter to columns which are auto generated?

Thanks in advance.
Let me know if more info is neeeded.
Princy
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
108 views
We need to customise the popup that is we want to change the "Ok" & "Cancel" button look up & background color
and I also want to change the title of popup as customised.How can I do this please suggest me.

Thanks
Jaichand
Princy
Top achievements
Rank 2
 answered on 11 Jul 2011
1 answer
122 views
I m developing an ASP.NET portal using Telerik UI Controls exclusively. I Have several RAD menu in Master page they are being overlapped by the Radmenu in a WebuserContol in a Content page

All the menu works well except when I use the Menu in the master page and when it expands over the Menu in content page i can till see the content page Menu Image on the expanded Master page menu....

I tried almost all z-index solutions but it didnot help.

Please find attached the image

Please suggest me the solution

Thanks

Sid
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?