Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
678 views
I keep reading that the RadMenu is responsive, etc. I have added it to our page and when I resize the page the menu does not change. Does it only change if you are actually on a mobile device? Is there a way to have it change in the 'small' version like things do when you are using the RadPaygLayout control?
Magdalena
Telerik team
 answered on 07 Mar 2016
1 answer
76 views

Hi team,

 

We have upgraded telerik from 2014.2.618.45 to 2015.3.1111.45

 

Tree View was showing the node highlighted in grey color previously but now it is not showing.

Attached is the screenshot for the same. Waiting for your response.

 

Thanks in advance

Magdalena
Telerik team
 answered on 07 Mar 2016
16 answers
2.1K+ views
How do I access the underlying datarow to which a GridDataItem is bound to in the ItemDataBound event?

I cannot use cell content because I am trying to get at a field in the datarow for which there is no column in the radgrid.

Thanks,
Kermit
Eyup
Telerik team
 answered on 07 Mar 2016
1 answer
64 views
I want a radwindow to open when the radgauge marker is done moving.  The idea is that if a certain number is reached, it opens a radwindow.  The only way I have been able to achieve this is the window opens as soon as the gauge starts moving, thus covering up the gauge.
Danail Vasilev
Telerik team
 answered on 07 Mar 2016
23 answers
409 views

Hi,

I have NestedTemplate radgrid in my application. I want  how to access the RadNumericTextBox inside Nestedtemplate (RadGrid3)  client side.

 <telerik:RadGrid ID="RadGrid1"  runate="server" ... >
            <MasterTableView>
                   <NestedViewTemplate>
                       <telerik:RadGrid ID="RadGrid2" runat="server" ... >
                        <MasterTableView >
                                <NestedViewTemplate>

                                     <telerik:RadGrid ID="RadGrid3" runat="server"  .. >

                                            <MasterTableView ... >

                                                      <Columns>

                                                                     <telerik:GridTemplateColumn HeaderText="cmd" UniqueName="_order">
                                                                             <ItemTemplate>
                                                                                            <telerik:RadNumericTextBox ID="_order_txt" runat="server" >
                                                                                            </telerik:RadNumericTextBox>
                                                                              </ItemTemplate>
                                                                              <FooterTemplate>
                                                                                      <telerik:RadNumericTextBox ID="_order_sum_txt" runat="server">
                                                                                      </telerik:RadNumericTextBox>
                                                                               </FooterTemplate>
                                                                      </telerik:GridTemplateColumn>

Regrads

 

Viktor Tachev
Telerik team
 answered on 07 Mar 2016
1 answer
161 views

Hi,

I have Rad Grid with batch updates. Edit template column has a custom user control with multiple buttons used to check if the user entered exists within Active directory and a cancel. These buttons cause a post back and causing the grid to reload. Is there a way to persist the edit mode of the grid ??

Please help

Thanks

Konstantin Dikov
Telerik team
 answered on 07 Mar 2016
4 answers
256 views
I have a radgrid that is databound using an object data source.
The grid has a GridTemplateColumn with an asp:ImageButton in it. This button has a click-event that does some business logic and then is supposed to open a new window with some calculated result.

I've tried Page.ClientScript, RadScriptManager.RegisterStartupScript, and RadScriptManager.GetCurrent(this.Page).RegisterDataItem.
I even tried to create a new RadWindow via code-behind, but nothing happens.

public void editLink_Click(object sender, EventArgs e)
{
  string script = "alert('hello');";
 
  //This does not work
  RadScriptManager.RegisterStartupScript(this, GetType(), "test", script, true);
 
  //This does not work
  RadScriptManager.GetCurrent(this.Page).RegisterDataItem(this, "javascript:" + script);
                
  //This does not work
  RadWindow newWindow = new RadWindow();
  newWindow.NavigateUrl = "http://www.telerik.com";
  newWindow.VisibleOnPageLoad = true;
  ((AlarmLogMaster)this.Page.Master).WindowManager.Windows.Add(newWindow);              
}

The master-page exposes the RadWindowsManager via the WindowManager property. The code is run since I can set a break-point in the click event.
Eyup
Telerik team
 answered on 07 Mar 2016
1 answer
249 views

From a hyperlink I need default values to appear when a RadGrid PopUp opens in "Add New" mode. It works fine when a RadButton is clicked (CommandName="InitInsert"). For that I set defaults in the RadGrid_ItemCommand:

if (e.CommandName == RadGrid.InitInsertCommandName)
{
    e.Canceled = true;
    Hashtable values = GetDefaultValues();
    e.Item.OwnerTableView.InsertItem(values);
}

The RadGrid's MasterTableView has EditMode="PopUp". To cause the PopUp to appear from a link I've passed the text "AddNew" in the queryString. Then in PageLoad I set RadGrid.MasterTableView.IsItemInserted = true; as described here. What I can't figure out is how do I get default values to appear in the PopUp that is triggered from a hyperlink? What event? A code sample would be much appreciated.

Konstantin Dikov
Telerik team
 answered on 07 Mar 2016
1 answer
78 views

I have radgrid, with 3 command buttons(Edit, Save and Cancel)

On Edit click Save and cancel buttons should be visible. (By default they should be disabled)

after Save or Cancel click grid goes to read only mode and only Edit command button should be displayed.

i tried all the possibilities by finding the command button and disabling it. Though there is no exception or anything still couldn't achieve this functionality.

Please help me out..it is needed immediately.

CODE :

  <telerik:RadGrid ID="gridMilitaryPension" runat="server" AutoGenerateColumns="false" AllowMultiRowEdit="true"  RenderMode="lightweight"
                     Skin="Office2007" PagerStyle-Mode="NextPrevAndNumeric" AllowPaging="True" PageSize="30" OnNeedDataSource="gridMilitaryPension_NeedDataSource"
                      OnItemCommand="gridMilitaryPension_ItemCommand" >
                        <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" Font-Size="10pt">                          
                            <Columns>                           
                             
                                 <telerik:GridBoundColumn UniqueName="ID" DataField="ID" HeaderText="ID" Display="true" ReadOnly="True"
                                    ForceExtractValue="Always">
                                </telerik:GridBoundColumn>

                                 <telerik:GridBoundColumn UniqueName="slottype" DataField="slottype" HeaderText="Slot Type" SortExpression="slottype" ReadOnly="True"
                                    ForceExtractValue="Always">
                                </telerik:GridBoundColumn>
                                 
                                 <telerik:GridTemplateColumn DataField="total" UniqueName="total" HeaderText="Total Seats" SortExpression="total">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTotalSeats" runat="server" Text='<%# Eval("total") %>' class="classLblTotal"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtTotalSeats" runat="server" Text='<%# Eval("total") %>' Width="100%"  class='<%# Eval("slottype") %>'  onblur="addition(this)" onchange="DataChanged(this)"></asp:TextBox>
                                    </EditItemTemplate>
                                 </telerik:GridTemplateColumn>

                            </Columns>
                          
                              <CommandItemTemplate>
                                  <table>
                                      <tr>                                     
                                         <td> <asp:Button runat="server" ID="btnSaveAllChanges" Text="Save All Changes"  CommandName="SaveAllChanges"  /></td>
                                         <td> <asp:Button runat="server" ID="btnCancel" Text="Cancel"  CommandName="Cancel" /></td>
                                         <td> <asp:Button runat="server" ID="btnEdit" Text="Edit Total Seats" CommandName="Edit"  onclick="btnEdit_Click"/></td>
                                       </tr>

                                  </table>
                                 
                              </CommandItemTemplate>
                           
                        </MasterTableView>
                      
                    
                    </telerik:RadGrid>

 

 

In code Behind:

 protected void gridMilitaryPension_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
           
            if (e.CommandName == "Edit")
            {

//Below i am capturing the controls and trying to hide/unhide. used visible property also but no luck
                GridCommandItem cmditem = (GridCommandItem)e.Item;
                Button btnSaveAllChanges = cmditem.FindControl("btnSaveAllChanges") as Button;
                Button btnCancel = cmditem.FindControl("btnCancel") as Button;
                Button btnEdit = cmditem.FindControl("btnEdit") as Button;
                btnSaveAllChanges.Enabled = true;
                btnCancel.Enabled = true;
                btnEdit.Enabled = false;            
             
                }                
            }
            if (e.CommandName == "SaveAllChanges")
            
            {
               //after logic, Edit button should be enabled.
                  
                }

             
                return;
            }
            if (e.CommandName == "Cancel")
            {
               
                gridMilitaryPension.MasterTableView.ClearEditItems();

                gridMilitaryPension.Rebind();  
            }
        }     

Konstantin Dikov
Telerik team
 answered on 07 Mar 2016
6 answers
371 views
I want to use radscheduler but am wondering if anyone has done syncing of radscheduler to Outlook. Is this a possibility? I'm not looking for an export feature but a sync.
Plamen
Telerik team
 answered on 07 Mar 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?