Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
250 views
Hi,

I am using radbarcode.I want to print the displayed barcode.

Thnx in advance
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2013
10 answers
461 views
I use ExportToPdf() to do just that.

When the file is opened on the client, buttons for saving, printing etc are shown at the bottom. How do I set the default path and filename for the "Save as" dialog?


Regards, Jill-Connie Lorentsen
Jill-Connie Lorentsen
Top achievements
Rank 1
 answered on 19 Mar 2013
1 answer
116 views
If I have a parent RadGrid1 which implements a FormTemplate for editing containing RadGrid2 and RadGrid 3 which are databound...

Is it possible to perform a drag drop operation between RadGrid2 and RadGrid3 without triggering an Ajax update for RadGrid1 yet still responding to the server side OnRowDrop command?

I would like to see only RadGrid2 and RadGrid3 updating with an Ajax refresh.

Is this possible?

Thanks
Marin
Telerik team
 answered on 19 Mar 2013
3 answers
74 views
Hi ,
i've a drop down list in the edit mode, i just want to check while i prees in the edit button if the drop down list have value " Confirmed " and " N't Confirmed " if it have anyone from the two values , don't open edit and give him message that's already edited
Kostadin
Telerik team
 answered on 19 Mar 2013
1 answer
154 views
Hi Experts,

I am using RadFileExplorer for the user to navigate to a particular directory. How to create a new folder inside the navigated path using this control on clicking an icon?

Thanks and Regards,
Anto Berkman.
Princy
Top achievements
Rank 2
 answered on 19 Mar 2013
3 answers
498 views

Hi ... 
  I have a grid , while pressing the edit button only two columns ,one is a Dropdown & another one is texteditor must be in edit mode.I used in-Line edit mode & i used a code to check remaining columns as ReadOnly. wat my prob is when i press the edit button the grid disappears. Please help me with a solution..
MY code is
Aspx:
<telerik:RadGrid ID="RadGrid2" runat="server" 
         AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
         CellSpacing="0" GridLines="None"  AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True">
      
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>

      <PagerStyle EnableSEOPaging="True" AlwaysVisible="true" > </PagerStyle>

<MasterTableView EditMode="InPlace" >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
</RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
</ExpandCollapseColumn>

    <Columns>
       
        <telerik:GridBoundColumn DataField="ID "
            FilterControlAltText="Filter Record Id column" HeaderText="Record Id"
            SortExpression="ID asc" UniqueName="Record Id">
        </telerik:GridBoundColumn>
        .
 .
 .
 .
 .
        <telerik:GridBoundColumn DataField="Gift"
            FilterControlAltText="Filter Disposition Option column"
            HeaderText="Disposition Option" ReadOnly="True"
            SortExpression="Gift_dispose asc" UniqueName="Disposition Option">
        </telerik:GridBoundColumn>
     
 <telerik:GridDropDownColumn DataField="status"
                    HeaderText="Disposition Status"
                    UniqueName="Disposition Status" ColumnEditorID="GridDropDownColumnEditor">
                </telerik:GridDropDownColumn>

      
         <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" SortExpression="Notes"
                    UniqueName="Notes" ColumnEditorID="GridTextBoxColumnEditor">
                    </telerik:GridBoundColumn>

      
      
        <telerik:GridEditCommandColumn ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Edit"
            FilterControlAltText="Filter EditCommandColumn column">
            
        </telerik:GridEditCommandColumn>        
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
 <EditColumn ButtonType="PushButton"  UpdateText="Update"
                    UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
</EditFormSettings>
</MasterTableView>

      <ClientSettings>
          <Selecting AllowRowSelect="True" />
      </ClientSettings>

<FilterMenu EnableImageSprites="False"></FilterMenu>  
     
            </telerik:RadGrid>
             <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="200px" TextBoxStyle-Height="500px">
    </telerik:GridTextBoxColumnEditor>

Aspx.cs:

 

 protected void RadGrid2_ItemCommand(object source, GridCommandEventArgs e)
    {

        if (e.CommandName == "Edit")
        {

           
            (RadGrid2.MasterTableView.GetColumn("Id") as GridBoundColumn).ReadOnly = true;
            (RadGrid2.MasterTableView.GetColumn("Date reported") as GridBoundColumn).ReadOnly = true
  .
  .
  .
  RadGrid2.MasterTableView.Rebind();
  }

wat i am missing..? Also i need to add the dropdown list values in GridDropdown column, how to do it   

Radoslav
Telerik team
 answered on 19 Mar 2013
5 answers
187 views
I don't know if it's a new bug but it's impossible to set 02:00 in a TimePicker as you can see in your example at:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/overview/defaultcs.aspx

Each time we enter or select 02:00, it automatically change for 01:00. All other times in the picker from the demo works but I didn't check for all times we can enter manually.

Someone can fix that please...

Thanks
Andrey
Telerik team
 answered on 19 Mar 2013
1 answer
76 views
I'm using Export to excel feature in my Telerik Radgrid, for this i'm using UseAllDataFields="true" 
<MasterTableView CommandItemDisplay="Top" UseAllDataFields="true">  and working fine,
also the paging is working fine with internal filtering  but the panel which shows ' 6 items in 1 Pages' after filtering i have only 1 record in Radgrid but the panel again shows  ' 6 items in 1 Pages'
also if i change UseAllDataFields="false" then it works fine but then the export to excel feature stops.

Thanks,
Kostadin
Telerik team
 answered on 19 Mar 2013
1 answer
76 views
I have a aspx page that has a series of radTextBoxes. The behavior should be as follows: user enters a value, tabs to next control. If the user tabs again without entering any data, the focus should go to a button. I have the javascript that does this but there isn't any visual que to tell the user the button has focus. How do I get the visual que to show much like tabbing into a button where it changes color.

function SetFocSubmit(objTextCtrl) {
    if (objTextCtrl.value == "") {
        document.getElementById("btnCheckCodes_input").focus();
    }
}

If I use the $find method I get the yellow screen of death.

System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
function SetFocSubmit(objTextCtrl) {
    if (objTextCtrl.value == "") {
        var btn = $find('<%= btnCheckCodes.clientID %>');
        btn.focus();
    }
}

If I use an asp:button and run this, the button will give a visual que that it has the focus
Danail Vasilev
Telerik team
 answered on 19 Mar 2013
2 answers
162 views

Hi,

I have a dynamic menu fully through JavaScript which acts as a context menu and items keeps on changing based on the selection. The issue that I face is with rendering. First time when menu is invoked, it renders properly and all sub menus comes properly. However when same invoked second time, it seems each menu have different width and some of the images that lies underneath is visible through  menu. See the image & code attached.

 

 

 

 

function resetMenu(menu) {

 

menu.get_items().clear();

}

 

 

function addMenuItem(menu, caption, value) {

 

 

 

var item = new Telerik.Web.UI.RadMenuItem();

 

item.set_text(caption);

item.set_value(value);

item.set_visible(

 

true);

 

menu.get_items().add(item);

}

 

 

function buildMenu(key) {

 

 

 

var menu = $find("<%= radActionMenu.ClientID %>");

 

 

 

var id = key.substring(key.indexOf("-", 0) + 1, key.length);

 

menu.trackChanges();

resetMenu(menu);

 

 

if (key.substring(0, 1) == "1") addMenuItem(menu, "View ", "1-" + id)

 

 

 

if (key.substring(1, 2) == "1") addMenuItem(menu, "Issue ", "2-" + id)

 

 

 

if (key.substring(2, 3) == "1") addMenuItem(menu, "Issue ", "3-" + id)

 

 

 

if (key.substring(3, 4) == "1") addMenuItem(menu, "History", "4-" + id)

 

 

if (key.substring(4, 5) == "1") addMenuItem(menu, "Add Add Add Add", "5-" + id)

 

 

 

 

menu.commitChanges();

}

 

 

 

function showMenu(e, key) {

 

 

 

var contextMenu = $find("<%= radActionMenu.ClientID %>");

 

$telerik.cancelRawEvent(e);

 

 

if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) {

 

buildMenu(key);

contextMenu.show(e);

}

}

 

 

 

<telerik:RadContextMenu ID="radActionMenu" runat="server" EnableRoundedCorners="True"

 

 

 

 

 

 

 

EnableShadows="True" OnClientItemClicked="onClicked" CausesValidation="False"

 

 

 

 

 

 

 

EnableViewState="False" ExpandDelay="50" >

 

 

 

 

 

 

 

<Items>

 

 

 

 

 

 

 

 

</Items>

 

 

 

 

 

 

 

</telerik:RadContextMenu>

 

Madhu
Top achievements
Rank 1
 answered on 19 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?