Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
77 views
I have an ASP.Net page that has about 8 tabs that are created from a RadTabStrip control.

On the 1st tab I have a RadToolBar with one button that when clicked opens a modal popup.

On the 5th tab I have an ASP Button that opens a modal popup that contains an ASP FileUpload control.

After I select my file to upload and I click the OK button on that modal popup, it uploads the file and then closes the modal popup.

The problem I'm having is after the modal popup closes and I click on the 1st tab again, the default skin of the RadToolBar buttons are completely gone and it only shows the button text and icon image.

Any ideas why this is happening?

Two images are attached of what it should and shouldn't look like.
Brett
Top achievements
Rank 1
 answered on 24 Jul 2012
1 answer
80 views
I am using telerik.web.ui v2011.3.1305.35. When you set the checked property for a radCombobox to "true", each item you check creates a concatenated, comma separated list in the display box. This uses the item text of the combo box. How can you do the same thing except display the item "value" in a comma separated list? BTW, this is way cool and made life a lot easier coding wise.
Nencho
Telerik team
 answered on 24 Jul 2012
3 answers
186 views
So I have noticed some minor rendering issues with the RadGrid's we have been using in our current project, and was hoping I could get some help.

1. Currently when dragging columns to do grouping if the text inside a header has not wrapped but others have there is large white space around the "dragging" window. Please see the two attachments smalldrag and fulldrag. Even with the one that has had text wrapped inside of it some white space appears. Is there a way to eliminate this white space whenever dragging any column header?

2. Currently when the grid first initializes it will have horizontal scrolling and content will NOT be clipped/hidden in any of the table cells. This is how we want the grids to behave. However when we do the grouping operation columns become fixed, content in the cells gets heavily cropped, and the horizontal scrollbar goes away (very bad). Please see the two attachments pregroup and postgroup.

Thank you in advance for any assistance.
Galin
Telerik team
 answered on 24 Jul 2012
10 answers
654 views
Hello ,

I have an issue when I change a cell value from java script.

My case is:

I have a Radgrid and a user can select a row.
When the user selects the row, I get the row key and allow him to add a new action, by opening a new Radwindow.
When the window closes, I return the id of the action added.

On closeEvent, I call a javascript function where the value returned goes to a cell at the initial grid (this cell has no value from DB).
The code I use to change the value is the following:

function refreshDataActions(oWnd, args) {
              
var arg = args.get_argument();
               
if (arg) {
                  
if (arg.actionId) {
                      
var HiddenField_contract_value = document.getElementById("HiddenField_contract").value;
                       
var grid = $find("<%=contractsGrid.ClientID %>");
                       
var MasterTable = grid.get_masterTableView();
                       
var rows = MasterTable.get_dataItems();
                      
for (var i = 0; i < rows.length; i++) {
                          
var row = rows[i];
                           
var activeCell = MasterTable.getCellByColumnUniqueName(row, "actionRESULT");
                           
var contractRow = row.getDataKeyValue("CONTR_ID");
                          
if (contractRow == HiddenField_contract_value) {
                               activeCell.innerHTML = arg.actionId;
                           }
                        }
                          $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("actionAdded");
                   }
                }
            }

Everything works until now. I can see the new value at the grid.

When the returned value is not null, I perform an Ajax request, and the I check the value at the cell if changed.
My problem is, that when I loop through the items of the grid, I get a "&nbsp" value.
The code I use to loop through the items is the following
 
For Each item In contractsGrid.Items           
      If item("actionRESULT").text <> "&nbsp" Then               
            counterActions = counterActions + 1          
      End If       
Next

Is there something I am missing here?

I would really appreciate your help!

Thank you in advance,
Peny

Peny
Top achievements
Rank 1
 answered on 24 Jul 2012
3 answers
68 views
Hi,

I'm using RadSchedular advance form to insert/update appointments. It works fine when I assign resources at the time of databinding.
Now what I'm trying to achieve it to dynamically add new  resources by giving a add button besides the dropdowns in the appointment form.

For exmaple:
Initially there are 3 users, user1, user2,user3. Now I want to give user ability to choose from exisitng users or add a new user (user4) there only.

Is that possible? If yes how can this be achieved please share if any samples are avaiable.

Thanks,
Piyush
Piyush
Top achievements
Rank 1
 answered on 24 Jul 2012
2 answers
147 views
I am having an issue with the following. I have a general RadGrid with two specific Grid Template columns (RadComboBox/RadTextBox). The Combo box is formatted for Load on demand. When a value is found/selected from the combo box (OnIndexChanged) I want to populate the RadTextBox with the combo box DataValueField value.

I have access to the combo box in the onindexchanged event, but am not sure how to gain access to the RadTextBox in it's own template. Have tried a number of solutions over several days without success.

Thank you,

SteveO
JSON
Top achievements
Rank 1
 answered on 24 Jul 2012
3 answers
156 views
We have your 2012 AJAX Controls. We are using a RadGrid for a finical application. What the customer was doing before was cutting parts of an Excel spreadsheet into the clip board and pasting the content into another Excel spread sheet. I don't see any way to do this directly with the RadGird it self; however, can you give us an idea how we can provide a solution to allow the user to cut a range of cells and paste them into some type of textbox control then import the data into a RadGrid?

Thanks,


Steve Holdorf
Pavlina
Telerik team
 answered on 24 Jul 2012
3 answers
573 views

 

Hello

Can anyone send how to create a header template in GridTemplateColumn programmatically in RadGrid, inorder to set the header context filter menu.

Thanks in advance.

Princy
Top achievements
Rank 2
 answered on 24 Jul 2012
1 answer
98 views
Hi,

I'm trying to create a panelbar with a single (root) item which I can expand and collapse. 
I've found the solution in this help section
Now I'm tryning to add a button in the header of this root item, but without succes (setting the headertemplate for the root item works, but the expand/collapse button disappears)

This is the complete code of my page : 

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Detail.aspx.cs" Inherits="Mobile_Detail" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="742px" Height="330px"
        Skin="MetroTouch" ExpandMode="FullExpandedItem" AllowCollapseAllItems="true">
        <CollapseAnimation Type="None"></CollapseAnimation>
        <Items>
            <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1">
            <HeaderTemplate><asp:Button runat="server" Text = "TEST" /></HeaderTemplate>
                <Items>
                    <telerik:RadPanelItem Expanded="false">
                        <ItemTemplate>
                            TEST</ItemTemplate>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
    </form>
</body>
</html>


How can i achieve this? Thx
Peter
Telerik team
 answered on 24 Jul 2012
1 answer
240 views
hi,

I have create a rad panel as below and for the RadPanelBar with the ID "rpbIncludeSections" items are added dynamically.
<telerik:RadPanelBar runat="server" ID="rpbResumeSections" Width="300px" GridLines="Horizontal" >
        <Items>
            <telerik:RadPanelItem ID="rpiResumeSections" runat="server" PreventCollapse="false" Expanded="true" >
                <Items>
                    <telerik:RadPanelItem ID="rpbResumeSectionInfo" runat="server" >
                        <HeaderTemplate>
                            <div style="margin: 10px;">
                                <telerik:RadComboBox runat="server" ID="rcbTemplates" Width="250px" AutoPostBack="true"  OnSelectedIndexChanged="rcbTemplates_OnSelectedIndexChanged"></telerik:RadComboBox>
                            </div>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <!--Dynamically generate a rad panel bar -->
                            <div style="margin: 10px;max-height: 200px; overflow:auto;">
                                <telerik:RadPanelBar runat="server" ID="rpbIncludeSections" GridLines="Horizontal" ExpandMode="MultipleExpandedItems" >
                                </telerik:RadPanelBar>
                            </div>
                             
                            <div style="margin:10px;margin-top: 30px; text-align:right;">
                                <telerik:RadButton  ID="btnPreview" runat="server" OnClick="btnPreview_OnClick"></telerik:RadButton>
                                <telerik:RadButton ID="btnSavePublish" runat="server" OnClick="btnSavePublish_OnClick"></telerik:RadButton>
                                <telerik:RadButton ID="btnPrintCV" runat="server" OnClick="btnPrintCV_OnClick"></telerik:RadButton>                                         
                            </div>
                             
                        </ItemTemplate>                     
 
                    </telerik:RadPanelItem>                   
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>

The components added dynimacally is as follows
RadPanelBar _rpbIncludeSections = (RadPanelBar)rpbResumeSectionInfo.FindControl("rpbIncludeSections");
 
            if (_personID != 0)
            {
                DataSet _Sections = _cvController.GetSectionsFromCVTemplateIDPersonID(int.Parse(e.Value), _personID);
                 
                _rpbIncludeSections.Items.Clear();
                 
                 
                foreach (DataRow _drSection in _Sections.Tables[0].Rows)
                {
                    bool _checked = false;
                    if ((_drSection["Include"].ToString() != "" && bool.Parse(_drSection["Include"].ToString()) == true) || _drSection["Persons_PersonID"].ToString() == "")
                        _checked = true;
 
 
                    RadPanelItem _panelItemLvl1 = new RadPanelItem();
                    _panelItemLvl1.Text = _drSection["CV_Section"].ToString();
                    _panelItemLvl1.Selected = true;
 
                    RadPanelItem _panelItemLvl2 = new RadPanelItem();
 
                    CheckBox _checkBox = new CheckBox();
                    _checkBox.ID = "Savidu";
                    _checkBox.Checked = _checked;
                    _checkBox.Text = Localization.GetString("Include.Text", this.LocalResourceFile);
                    _checkBox.ToolTip = "Check to Include in ude in CV";
                    _checkBox.CssClass = "MarginLeft";
                    _panelItemLvl2.Controls.Add(_checkBox);
 
                    _panelItemLvl1.Items.Add(_panelItemLvl2);
                    _rpbIncludeSections.Items.Add(_panelItemLvl1);
                }
            }

This part works fine the issue comes when the button "btnSavePublish" OnClick method i need to find out whether the check box is checked or not.

For this id some thing like
RadPanelBar _rpbIncludeSections = (RadPanelBar)rpbResumeSectionInfo.FindControl("rpbIncludeSections");

Through the Items attribute i am able to find the added panels. I.e since i have added 2 panels i would be able to access them

_rpbIncludeSections.Items[0].Items[0]

But, there is no way for me to access the added checkbox. I tried with the "Controls" attribute as well but it gave no luck.

Thanks Regards,
Savidu

Peter
Telerik team
 answered on 24 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?