Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
442 views
I have placed a screen shot on my server to give someone a visual of my issue.
Click Here to View the ScreenShot

This is a grid displaying two levels of detail tables nested in the Masterview
Food Category
     |
     Food Sub Category
          | 
          Food Menu Items

I have the AutoGenerateDeleteColumn and AutoGenerateEditColumn properties set to "true".  My objective is to allow the user to insert/edit/delete at every level.

My questions are :
  1. How can I position the "Delete" and "Edit" columns of the SubCategory band (i.e. Luncheons) and the FoodMenuItem band (i.e. "Cattleman Prime Rib") to the right side of the grid like it's parent band "Food Category" (Brunch/Lunch)?
  2. How can I size those columns to match widths and align nicely on the right with center alignment like the top parent level?
  3. If the above questions don't address it, how can I avoid the added expansion in width that occurs when the command columns become visible?  As you can see the overall width of the page increases beyond the width of the top graphic (MasterPage).
  4. When the page first loads the Grid is contracted to show only the root elements as desired.  The "Add New Record" and "Refresh" options do not appear on top until the fist row of the RadGrid is expanded. Does anyone know why that may be?
  5. How can I assign a style to the top header area to show something entirely different?

    Thank you

Reid
Top achievements
Rank 2
 answered on 27 Jan 2009
3 answers
331 views
Hello, I was wondering if I can get some help  implementing a fillter in a  radgrid inside a  web part.
Our clients do not like the built-in filter that is bundled with telerik Radgrid. Instead, I created a text box and a submit button for them to enter text and then push submit to filter the grid.

For the life of me, I can't get my  grid to filter in my webpart during the button click postback,

 Bellow is code that handles by button click to  filter

     void btnfilter_Click(object sender, EventArgs e)
        {

            lblSearch.Text = txtSearch.Text.ToString() ;

            oGrid.MasterTableView.FilterExpression = "([URLwMenu] LIKE \'%" + lblSearch.Text + "%\') ";
            GridColumn column = oGrid.MasterTableView.GetColumnSafe("Campaign");
            column.CurrentFilterFunction = GridKnownFunction.Contains;
            column.CurrentFilterValue = lblSearch.Text;
            oGrid.MasterTableView.Rebind();

        }

any assistance will be greatly appreciated.
-roland

Daniel
Telerik team
 answered on 27 Jan 2009
1 answer
156 views
How do you set the z-level or the depth of the RadMenu such that drop downs and other items will open OnTop of the menu.  I have several telerik RadControls on the page and they all open under the Menu.....this is worst for a RadWindow that opens under the menu......ugg.

Any Advice??
Clint
Yana
Telerik team
 answered on 27 Jan 2009
1 answer
327 views
Hi,

I want to add a 2nd header row to my radgrid header. I am using Q3 2007 version. I know i can add a new row to header in gridview by inserting a GridViewRow object as shownbelow (inside ItemDataBound event of grid)

GridViewRow gvr = e.Row;
switch (gvr.RowType)
{
case DataControlRowType.HeaderRow:
{

GridViewRow row = new GridViewRow(0, 0, DataControlRowType.DataRow, DataControlRowState.Normal);
TableCell cell = new TableCell();
cell.BackColor = Color.Red;
cell.ForeColor = Color.White;
cell.ColumnSpan = GridView1.Columns.Count;
cell.HorizontalAlign = HorizontalAlign.Center;
cell.Text = subcategory;
row.Cells.Add(cell);

GridView1.Controls[0].Controls.AddAt(0, row);

break;
}
}

How can I do this in Radgrid? I tried replicating the process using GridDataItem, but teh row didn't show up on the grid.  
 
My grid columns are created dynamically; the count is not known before. There's grouping happening inside the grid too.
Please help. This is a very urgent & critical one.

Thanks,
Sija
Daniel
Telerik team
 answered on 27 Jan 2009
2 answers
174 views
Hello,

I use Q3 version of asp.net ajax radcontrols.

I want to add a title of the legend box on my chart. Can I do that ?

For example :
Products sails :
- serie 1
- serie 2
- serie 3

Thank you in advance,

Sabrina
Sabrina
Top achievements
Rank 1
 answered on 27 Jan 2009
7 answers
754 views

Hello,

I have a rad combo box , a rad date picker and a required field validator for the rad date picker in a rad grid.

I have added through code behind, a javascript for the rad combo box's client side event 'OnClientSelectedIndexChanged'.

I need the selected value of the rad combo box in the javascript to enable or disable the required field validator present in the corresponding row.

I pass the rad combo box's ClientID and required field validator's ClientID as parameters thru backend to this function.

In order to get the selected value, I have tried using the following piece of code,

   <script type="text/javascript">
 
       function OnClientSelectedIndexChanged(radComboClientID, reqFieldValidatorClientID)
      {
          //getting the selected value
          alert(radComboClientID.GetValue());
       }

    </script>

It doesn't work; giving an error 'Object doesn't support this property or method'

Is there any way to access the selected value in this javascript.

Kindly help solving this issue.

Thanks,
Mausami.

Mausami
Top achievements
Rank 1
 answered on 27 Jan 2009
2 answers
187 views
Hi,

I m using telerik grid with inline Add/edit.
In this grid i have 2 template columne having rad datepicker control in edit template.
when i click on edit link in grid it shows all columns in edit mode but when i click on Add new record it throws an error "Specifies cast is not valid"
as i have bound my raddatepicker as below

<

Telerik:GridTemplateColumn DataField="TransDate" Display="False"

 

HeaderText="Trans Date" UniqueName="TransDate">

 

<EditItemTemplate>

 

 

<Telerik:RadDatePicker ID="rdpTransDate" Runat="server"

 

 

Width="116px" SelectedDate='<%# Bind("TransDate") %>'>

 

<DateInput Height="22px" runat="server">

 

</DateInput>

 

 

<Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"

 

 

 

 

ViewSelectorText="x" runat="server">

 

 

 

</Calendar>

 

 

 

</Telerik:RadDatePicker>

 

 

 

</EditItemTemplate>

 

 

 

<ItemTemplate>

 

 

 

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

 

 

 

</ItemTemplate>

 

 

 

</Telerik:GridTemplateColumn>

When i press 'Add New Record' it throws an error on line

 

 

 

<Telerik:RadDatePicker ID="rdpTransDate" Runat="server"

 

Width="116px" SelectedDate='<%# Bind("TransDate") %>'>

i believe when i try to add a new record the bind is throwing an error.

Please let me know how to resolve this issue.

Thanks in advance.

Hrushikesh

 

 

 

 

 

 

Hrushikesh Mokashi
Top achievements
Rank 1
 answered on 27 Jan 2009
0 answers
87 views
My treeview is using LoadOnDemand server-side. When my application session times out and the user clicks on a plus sign next to a node to expand the node, the server-side NodeExpand event is fired. At the very start of this event, I create a script and return immediately. The script is suppose to close all open browser windows and redirect the main browser (where the script is executing) back to the login page. The script never gets executed. I have tried using the AjaxManager ResponseScripts.Add method as well as ScriptManager.RegisterStartupScript method but neither works. What do I have to do to get the script executed?
Polaris431
Top achievements
Rank 1
 asked on 27 Jan 2009
1 answer
169 views
Hi! Today I downloaded the toolkit, now i want to create a tabstrip only using c# code.

i tried following:

protected void Page_Load(object sender, EventArgs e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadTabStrip strip = new RadTabStrip();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadTab tab1 = new RadTab();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tab1.Text = "Tab2";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadTab tab2 = new RadTab();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tab1.Text = "Tab1";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip.Tabs.Add(tab1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip.Tabs.Add(tab2);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadPageView view = new RadPageView();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; view.ID = "Customer Data";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadMultiPage mpage = new RadMultiPage();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mpage.ID = "MPage1";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mpage.PageViewCreated += MultiPage_PageViewCreated;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mpage.PageViews.Add(view);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip.MultiPageID = "MPage1";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DynHolder.Controls.Add(mpage);<br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected void MultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RadComboBox box = new RadComboBox();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e.PageView.Controls.Add(box);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } 

But nothing is shown on the page, can somebody help me. I would like to dynamically create a tabstrip in an asp placeholder. I don't want any code written in asp for this control.

regards
!nst!nct
Princy
Top achievements
Rank 2
 answered on 27 Jan 2009
1 answer
136 views
I doing a asp.Net page with the Rad Tab Strip in that i want to place validation controls for validation how can i place the validation controls for validating and also any properties is need to change

Shinu
Top achievements
Rank 2
 answered on 27 Jan 2009
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?