Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
161 views
It would be difficult to put in the code here as it is quite big now. Below is the scenario.

I have a Asp.Net page, which has a Splitter control. It has 3 RadPane, West, Center and East.

Center Pane - Center Pane has a page (set through content url) which has a user control. Inside this control, there are few pages in form of RadTab control. Each tab has an asp.net page. I have a button in this page called "AddfromCenter"

West Pane - West Pane has a page (set through content url) which has a user control. Inside this user control, there are pages inside RadTab control. In one of the tab, there is a page with a user control called Basket which has RptrBasket Repeater control.

What I want to do is, when I click on AddfromCenter, I want to append the RptrBasket control with value from Center Pane ?

Hope it is clear !

Thanks in advance!
Svetlina Anati
Telerik team
 answered on 18 Jul 2008
1 answer
128 views
I want to change the GridHeader style (mostly the background color) for Detail Tables in a grid.

I tried changing the following in the Grid.Abc.css but it didn't work.

.DetailTable_Abc .GridHeader_Abc,
.DetailTable_Abc .ResizeHeader_Abc,
{
... stuff in here
}


I know that it is using this css file because it is picking up other styles (like .DetailTable_Abc caption).

Is there some other way to do this? I would prefer a method that uses my custom skin.

Note: I tried using a localized approach and setting the Header background color on the Detail table but it doesn't just set the color - I also lose all of the other .GridHeader_Abc style settings.
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2008
3 answers
75 views
We have a Calculated Column  in the RadGrid.  Whenever we try to Insert a new record it throws an exception.  After combating this problem for the whole day, we figured it out that the problem only appears while EditMode is set to In-Place. It perfectly works when it is set to EditForms.  

We created  several test situations and found out that it always behaves same i.e. throws exception in the In-Place mode. Is it a bug ?

In our particular case we do need a Calculated column and and also we need to edit it in In-Place mode.

Tariq
Vlad
Telerik team
 answered on 18 Jul 2008
3 answers
141 views
I have a set of Radcomboboxes, RadInputs, etc. outside of my Radgrid. For layout purposes they could not be placed inside the CommandItemTemplate.

I want the user to be able to update the DB with values in these external controls (price, category, etc.), for all currently selected rows in the Radgrid.

I have wired the following event to the Update button in the CommandItemtemplate, but it just seems to postback the grid without any update actually happening:

Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) 
IF RadGrid1.SelectedItems.Count > 0 THEN 
For Each SelectedItem As GridEditableItem In RadGrid1.SelectedItems 
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem) 
Dim formItem As GridEditFormItem = CType(e.Item,GridEditFormItem) 
Dim parentItem As GridDataItem = CType(formItem.ParentItem,GridDataItem) 
Dim strProductID As String = parentItem("ProductID").Text 
Dim strCategoryID As String = RadComboBoxBatchDescribeCat.SelectedValue 
Dim Price As String = RadComboBoxBatchDescribePrice.SelectedValue 
SqlHelper.ExecuteNonQuery(_connectionString, "Batch_Apply", strProductID,strCategoryID,Price) 
Next 
ELSE  
End if 
RadGrid1.Rebind() 
End Sub 


I am a little bit confused about whether the Griditems need to be in Editmode, but the point is I basically want the Griditems to -appear- readonly, because all the data update input is done in the external group of controls.

Thanks
Yavor
Telerik team
 answered on 18 Jul 2008
5 answers
189 views
Below is my EditFormSettings code

<EditFormSettings EditFormType="Template">

<FormTemplate>

<table width="100%">

<tr>

<td>

<asp:Label ID="lblUserName" runat="server" Text="User Name"></asp:Label>

</td>

<td>

<asp:TextBox ID="txtUserName" runat="server" Text='<%# Bind("Username") %>'></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:Label ID="lblInitialPwd" runat="server" Text="Initial Password"></asp:Label>

</td>

<td>

<asp:TextBox ID="txtInitialPwd" runat="server" Text='<%# Bind("InitialPassword") %>'></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:Label ID="lblUserpassword" runat="server" Text="User Password"></asp:Label>

</td>

<td>

<asp:TextBox ID="txtUserpassword" runat="server" Text='<%# Bind("UserPassword") %>'></asp:TextBox>

</td>

</tr>

<tr>

<td>

<asp:Label ID="lblEmail" runat="server" Text="E-mail"></asp:Label>

</td>

<td>

<asp:TextBox ID="txtEmail" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>

</td>

</tr>

<tr>

<td width="10%">

</td>

<td width="90%">

<table>

<tr>

<td><span style="font-weight:bold; font-size:10pt"></span>

<asp:Label ID="lblAccountNumber" runat="server" Text='<%# Bind("AccountNumber") %>' Font-Bold="true" Font-Size="10"></asp:Label><br />

<asp:ListBox ID="lbAllAccountNumbers" DataSourceID="objAllAccountNumbers" runat="server" Width="200" Height="200"></asp:ListBox>

<asp:Button ID="btnSelect" runat="server" Text=">" />

<asp:Button ID="btnUnselect" runat="server" Text="<" />

<asp:ListBox ID="lbAvailableAccountNumbers" DataSourceID="objAllAccountNumbers" runat="server" Width="200" Height="200">

</asp:ListBox>

</td>

</tr>

</table>

</td>

</tr>

</table>

</FormTemplate>

</EditFormSettings>

I have two SqlDatSource 1 datasource for grid and one for ListBox.
I set up a Datakey name For the grid which will server as the parameter for the ListBox SqlDataSource.

I tried setting up the parameter for ListBox Datasource from Grid ItemDataBound but when doing Find Control method returns null.

below is my code behind

if

(e.Item is GridEditFormItem)

{

ListBox lbAllAccountNumbers = (ListBox)e.Item.FindControl("lbAllAccountNumbers");

SqlDataSource ds = (SqlDataSource)lbAllAccountNumbers.DataSource;

ds.SelectParameters[

"@LoginId"].DefaultValue = grdAffiliate.Items[e.Item.ItemIndex].OwnerTableView.DataKeyValues[e.Item.ItemIndex]["LoginId"].ToString();

lbAllAccountNumbers.DataSource = ds;

lbAllAccountNumbers.DataBind();

}

lbAllAccountNumbers  is getting null value

Princy
Top achievements
Rank 2
 answered on 18 Jul 2008
3 answers
265 views
Hello,
      I have a requirement for RadGrid where i have to specify my datasource which is a System.Collections.Generic.list object. There is no database operation involved in my requirement. The requirement exactly same like below example provided by telerik

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultCS.aspx

But only thing is it doesn't have any samples withtout DB. I need a sample where i need to set my <list> object as datasource.

Regards,
Elango
Vlad
Telerik team
 answered on 18 Jul 2008
1 answer
240 views
Hi,

Looking at the new RadGrid features and I saw calculated columns, this is great but what I'm really interested in at the moment is using your expression parser.  Is this publically accessible in the Telerik.Web.UI assembly? I had a quick look with reflector but could not find it.

Thanks

Guido
Vlad
Telerik team
 answered on 18 Jul 2008
2 answers
109 views
Hi,
  I've been testing the trial version of RADControls for a project we're designing, and a large part of our project is the use of Grids.  I've set my grid up as follows:

<telerik:RadGrid ID="_gridSPMIG" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" Skin="Telerik" PageSize="25" OnPageSizeChanged="OnPageSizeChanged" ShowGroupPanel="True"> 
            <MasterTableView TableLayout="Fixed"> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px" /> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px" /> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="SPIN" HeaderText="SPIN" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Suffix" HeaderText="Suffix" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Nomenclature" HeaderText="Nomenclature" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Modifier" HeaderText="Modifier" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Category" HeaderText="Category" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="APL" HeaderText="APL" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Part No." HeaderText="Part Number" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SCAT Code" HeaderText="SCATCD" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="scat_ds" HeaderText="SCAT" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="NIIN" HeaderText="NIIN" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Cage" HeaderText="Cage" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Remarks" HeaderText="Remarks" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ui_ds" HeaderText="Unit of Issue" UniqueName="column"> 
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="True"> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                <Resizing AllowColumnResize="True" /> 
            </ClientSettings> 
            <PagerStyle Wrap="True" /> 
        </telerik:RadGrid> 


The issue is when I go to group by a column, I'll drag a column to the group panel, and it doesn't group by that column.  Instead, it groups by first column in the grid and won't allow me to add any other columns.  Is there something I'm missing when configuring the grid?

Thanks,
Kevin Griffin
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2008
1 answer
199 views
Is there an easy way to programmatically expand a row in a hierarchy?  For example, when the page loads I would like to expand the first three rows, but leave the remaining rows collapsed.  Any help would be greatly appreciated.

Thanks!
Princy
Top achievements
Rank 2
 answered on 18 Jul 2008
1 answer
141 views
Is it possible to export multiple RadGrids to the same Excel file at the same time, possibly by creating two worksheets in one file?

Thanks,

Adam
Shinu
Top achievements
Rank 2
 answered on 18 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?