Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
430 views
Hi Guys,

I want to be able to hide a column in my table using CSS display:none but the option below does not see to wan to work. I have also tried ClassName="cssProvince". Is there something specific I should be doing?

<telerik:GridBoundColumn class="cssProvince" DataField="Province" HeaderText="Province" ReadOnly="True" SortExpression="Province" UniqueName="Province">

Thanks
James
Dimo
Telerik team
 answered on 28 Sep 2010
3 answers
50 views
Hi Telerik Team,

We have implemented the Telerik Grid control and the grid works fine with fewer number of columns. But we have more number of columns (approx.20) and it is necessary to freeze the first 3 columns not to loose the context of the row data. So could you clarify the following please,
Is the FrozenColumn property of Grid control combined with the following features will be supported
  1. column re-sizing
  2. column re-ordering
  3. column sorting
  4. Auto-fill functionality similar to Google suggest for names for a particular column. Suppose if the frozen column has this feature then the dropdown kind of UI is not visible as it is being hidden by the frozen UI.

We are facing difficulties in implementing above combination of functionalities for Grid control. Your reply and any hot fix will be really useful and highly appreciatable. Looking for your response.

Pavlina
Telerik team
 answered on 28 Sep 2010
7 answers
187 views
Hi.
I have a grid with one combobox and some numerice columns. In edit/insert mode it is not possible to choose any value from the combobox, the combobox is locked and i can not cancel either. (I have to reload the page to get out of the edit/insert mode.) I am using EnableAutomaticLoadOnDemand = true and fill up the combobox in the ItemDataBound events. The code i am using is:

<telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
      AllowFilteringByColumn="True" AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" DataSourceID="LinqDataSource1"
      GridLines="None" ondatabound="RadGrid1_DataBound" onitemdatabound="RadGrid1_ItemDataBound"
      onitemdeleted="RadGrid1_ItemDeleted" oniteminserted="RadGrid1_ItemInserted" onitemupdated="RadGrid1_ItemUpdated">
      <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" DataSourceID="LinqDataSource1" DataKeyNames="Id">
      <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
      <Columns>
          <telerik:GridTemplateColumn DataField="Id" HeaderText="Gruppe" SortExpression="Id" UniqueName="Id" AutoPostBackOnFilter="True" ShowFilterIcon="false">
              <FooterTemplate>Template footer</FooterTemplate><FooterStyle VerticalAlign="Middle" HorizontalAlign="Center" />
              <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "Id")%></ItemTemplate>
              <EditItemTemplate>
              <telerik:RadComboBox DataTextField="Id" DataValueField="Id" ID="RadComboBox1" HighlightTemplatedItems="true" EmptyMessage="Velg et element..." AllowCustomText="true"
                          runat="server" Height="100px" Width="95px" SelectedValue='<%#Bind("Id") %>' AutoPostBack="true" EnableAutomaticLoadOnDemand="True"></telerik:RadComboBox>           
              </EditItemTemplate>
          </telerik:GridTemplateColumn>    
          <telerik:GridNumericColumn DataField="FEE" DataType="System.Double" HeaderText="Avgift" SortExpression="FEE" UniqueName="FEE">
          </telerik:GridNumericColumn>       
          <telerik:GridNumericColumn DataField="PBE" DataType="System.Double" HeaderText="PBE" SortExpression="PBE" UniqueName="PBE">
          </telerik:GridNumericColumn>               
          <telerik:GridEditCommandColumn CancelText="Avbryt" EditText="Endre" InsertText="Sett inn" UpdateText="Oppdater">
          </telerik:GridEditCommandColumn>
          <telerik:GridButtonColumn CommandName="Delete" Text="Slett" UniqueName="column1">
          </telerik:GridButtonColumn>
  </Columns>
  </MasterTableView>
  </telerik:RadGrid>
   
  <asp:LinqDataSource ID="LinqDataSource2" runat="server"
      OnInserting="GridDataSource_Inserting" ContextTypeName="Mobitech.Mtbs2InfoEasy.linq.Mtbs2InfoEasy_DataClassesDataContext"
      TableName="Groups" OrderBy="Id"
      Select="new (Id, FEE, PBE)">
  </asp:LinqDataSource>
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
   if (e.Item.OwnerTableView.IsItemInserted && e.Item is GridDataInsertItem)
   {               
         FillComboBoxWithClassCodes(e, "RadComboBox1");
         SetColumnWidthInInsertMode(e);                   
   }
   else if (!(e.Item is GridDataInsertItem) && e.Item.IsInEditMode)
   {
          FillComboBoxWithClassCodes(e, "RadComboBox1");
          SetColumnWidthInEditMode(e);
          SetFocusOnField(e, "PBE");
   }
}
 
private void FillComboBoxWithClassCodes(GridItemEventArgs e, string comboBoxName)
{
            var editItem = (GridDataItem) e.Item;
            if (editItem == null)
                return;
 
            var comboBox = (RadComboBox) editItem.FindControl(comboBoxName);
            comboBox.Items.Clear();
            
                                var classCodes = new List<string>();
                               for (int i = 1; i < 10; i++)
                              {
                                       classCodes.Add("B0" + i);
                              }
 
 
            foreach (var classCode in classCodes)
            {
                var item = new RadComboBoxItem();
                item.Text = classCode;
                item.Value = classCode;
                comboBox.Items.Add(item);
            }
 
            comboBox.DataBind();
}

I have used equivalent code in another project without problem with loading the combobox. So i don't understand why it is not working. Some have any idea what i am doing wrong?



Tsvetina
Telerik team
 answered on 28 Sep 2010
3 answers
128 views
Hi All,

I am using the Grid and everything works except when the combination of Filtering and Edit is invoked.
Scenario:

I have a grid view where I have filtered a column using the "Contains" field.
With the items in the grid filtered, I click on the edit button which is a "GridEditCommandColumn"

The Edit Popup seems to reference the index of the grid and not the item I have clicked on. Therefore, when clicking the third item of this filtered grid, it results in opening the popup for the third item in the original datasource. Also once clicked on, the grid refreshes and the filters doesn't seem to come into play.

Tim

Iana Tsolova
Telerik team
 answered on 28 Sep 2010
1 answer
94 views
Hello,

I have a problem with Treeview updating its counter on left handside.Below are the details:

1) Treeview consists of some Products and has counter on left handside updating clients e.g Product 1 (Clients: 4) and the tree    structure continues with nodes.

2) On the right side of the screen there is button when clicked, opens a Pop-up and enter details of clients and their usage, once the pop-up is closed , I want to achieve 2 things :
        a)  The Treeview should update the Counter for Clients like  Product 1 (Clients: 4) to Product 1 (Clients: 5)
       
b) The above node should be higlighted and Selected same as previuosly selected before opening a pop up.

3) I tried to Refresh the treeview after closing popup it definately updates but i am losing the selected node, and the client everytime after inserting the product has to come back seraching for the previous node.

For info i am using I call a function to Databind the Treeview on Pageload.

Any Solution will be appreciated.

Regards
Sudhakar
Nikolay Tsenkov
Telerik team
 answered on 28 Sep 2010
2 answers
705 views
hi
i wany to change color when mouse over
thanks for your help
Pavlina
Telerik team
 answered on 28 Sep 2010
1 answer
38 views

Can any one sugest me a way by which i can search the rad grid having isbn10 no as a filtered column, in which the user can enter a search term with "-" or without "-" but my column isbn10 which i am showing can be in hyphenate or non hyphenated, both the search term with or with hyphen should filter out my grid.

thanks in advance.
Maria Ilieva
Telerik team
 answered on 28 Sep 2010
3 answers
167 views
Hi ,

I am working on RadGrid and I need to get a alert on GridHyperLinkColumn click in the radgrid just as I get by using GridEditCommandColumn while editing the record if the user is not authorised to edit the data.Otherwise how can I give the Command Name for the GridHyperLinkColumn so that i can handle it in the codebehind.

Thanks,
h@r!.

Princy
Top achievements
Rank 2
 answered on 28 Sep 2010
1 answer
180 views
I had not found a alternative for asp:updatepanel.update() in RadAjaxPanel
How the senario is possible with RadAjaxpanel

Bellow is a code sample

<
asp:UpdatePanel ID="updatePanelSearch" runat="server" UpdateMode="Conditional">
     <ContentTemplate>
  
        <asp:Label ID="Label1" runat="server" Text="Search"></asp:Label>
        <telerik:RadTextBox ID="radtxtSearch" runat="server">
        </telerik:RadTextBox>
        <asp:ImageButton ID="imgbtnSearch" runat="server" ImageUrl="~/Images/Search.png" OnClick="imgbtnSearch_Click" />
  
     </ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="updatePanelGrid" runat="server" UpdateMode="Conditional">
     <ContentTemplate>
  
           <asp:PlaceHolder ID="phGrid" runat="server"></asp:PlaceHolder>
  
      </ContentTemplate>
</asp:UpdatePanel>
protected void imgbtnSearch_Click(object sender, ImageClickEventArgs e)
{
    updatePanelGrid.Update();
    /*Update Grid*/
    ..........
    /**/
}
Iana Tsolova
Telerik team
 answered on 28 Sep 2010
1 answer
139 views
Is it possible to set separate WorkDayStartTime and WorkDayEndTime for different resources? (ie. Room1 is open from 7am - 3pm, Room2 is open 10am - 6pm). And if so, what approach do I need to take to achieve this? There doesn't seem to be anything like this built in to either ResourceTypes or the RadScheduler itself, does anyone have any suggestions?
Peter
Telerik team
 answered on 28 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?