Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I have rad grid, when I dynamically data bound to rad grid and if data bound return zero rows the grid column also not display... Actually I want to display column with single row contains "no record found" if data bound return zero record
Princy
Top achievements
Rank 2
 answered on 25 Nov 2013
2 answers
175 views
I have a RadGrid with CommandItemTemplate having Link button with CommandName ="Add". This button generates the ItemCommand event if the grid is showing records. When the grid is empty"No records to display", the ItemCommand is not firing. 

<telerik:RadGrid ID="rdgImpactTimeList" runat="server" AllowFilteringByColumn="false"
                                                        AllowPaging="True" AllowCustomPaging="true" BackColor="White" AllowSorting="True"
                                                        AutoGenerateColumns="true" Skin="MyCustomSkin" EnableEmbeddedSkins="false" ShowGroupPanel="True"
                                                        AllowMultiRowSelection="true" OnNeedDataSource="rdgImpactTimeList_NeedDataSource"
                                                        OnDeleteCommand="rdgImpactTimeList_DeleteCommand"
                                                        OnItemCommand="rdgImpactTimeList_ItemCommand" 
                                                     OnItemCreated="rdgImpactTimeList_ItemCreated"
                                                        OnLoad="rdgImpactTimeList_Load" 
                                                        Width="99.8%" Height="500px" PageSize="10"  EnableHeaderContextMenu="true">
                                                        <PagerStyle Mode="NextPrevAndNumeric" PrevPageToolTip="Previous" NextPagesToolTip="Next"
                                                            AlwaysVisible="true" />
                                                        <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" UnGroupButtonTooltip="Click here to ungroup" />
                                                        <MasterTableView Name="ImpactTimeList" ClientDataKeyNames="ImpactTimeID" DataKeyNames="ImpactTimeID" CommandItemDisplay="Top" AllowMultiColumnSorting="true"
                                                            Width="100%" ItemStyle-HorizontalAlign="Left" AlternatingItemStyle-HorizontalAlign="Left">
                                                            <FilterItemStyle HorizontalAlign="Left" />
                                                            <ItemStyle HorizontalAlign="Left" Height="10px"></ItemStyle>
                                                            <AlternatingItemStyle HorizontalAlign="Left"></AlternatingItemStyle>
                                                            <Columns>
                                                                <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" ItemStyle-HorizontalAlign="Left">
                                                                    <HeaderStyle Width="40px" />
                                                                </telerik:GridClientSelectColumn>
                                                                <telerik:GridEditCommandColumn EditImageUrl="~/images/telerik/Edit.gif" ButtonType="ImageButton"
                                                                    UniqueName="EditCommandColumn" ItemStyle-HorizontalAlign="Center">
                                                                    <HeaderStyle Width="40px" />
                                                                </telerik:GridEditCommandColumn>
                                                            </Columns>
                                                            <CommandItemTemplate>
                                                                <div style="padding: 5px 5px; text-align: left;">
                                                                    <span style="float: left;"><span id="spanAdd" runat="server" style="margin-left: 5px;
                                                                        margin-top: 5px; margin-bottom: 5px; margin-right: 10px;">
                                                                        <asp:LinkButton ID="btnInitInsert" runat="server" 
                                                                            CommandName="Add">
                                                                            <img id="imgAdd" runat="server" style="border: 0px; vertical-align: top;" alt=""
                                                                                src="~/images/telerik/AddRecord.png" />
                                                                            Add new
                                                                            </asp:LinkButton>
                                                                    </span><span style="margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 10px;">
                                                                        <asp:LinkButton ID="ToggleFiltering" runat="server" CausesValidation="false" CommandName="ToggleFiltering">
                                                                            <img id="imgToggle" runat="server" style="border: 0px; vertical-align: top;" alt=""
                                                                                src="~/images/telerik/search.png" />
                                                                            Filter</asp:LinkButton>
                                                                    </span><span style="margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 10px;">
                                                                        <asp:LinkButton ID="RemoveFilter" runat="server"  CausesValidation="false" CommandName="RemoveFilter">
                                                                            <img id="img1" runat="server" style="border: 0px; vertical-align: top;" alt="" src="~/images/telerik/filterdelete.png" />
                                                                            Remove Filter</asp:LinkButton>
                                                                    </span><span style="margin-left: 5px; margin-top: 5px; margin-bottom: 5px; margin-right: 10px;">
                                                                        <asp:LinkButton ID="btnRefresh" runat="server" CommandName="RebindGrid" CausesValidation="false">
                                                                            <img id="imgRefresh" runat="server" style="border: 0px; vertical-align: top;" alt=""
                                                                                src="~/images/telerik/Refresh.png" />
                                                                            Refresh</asp:LinkButton>
                                                                    </span></span>
                                                                </div>
                                                            </CommandItemTemplate>
                                                            <RowIndicatorColumn Visible="True">
                                                            </RowIndicatorColumn>
                                                        </MasterTableView>
                                                        <ClientSettings ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" AllowKeyboardNavigation="true"
                                                            AllowAutoScrollOnDragDrop="true" ReorderColumnsOnClient="true" AllowDragToGroup="True"
                                                            EnableRowHoverStyle="true">
                                                            <Selecting AllowRowSelect="True" />
                                                            <ClientMessages DragToGroupOrReorder="Select All" />
                                                            <Selecting AllowRowSelect="True" />
                                                            <Resizing AllowColumnResize="true" EnableRealTimeResize="true" AllowRowResize="true"
                                                                ResizeGridOnColumnResize="true" ShowRowIndicatorColumn="false" />
                                                            <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true">
                                                            </Scrolling>
                                                            <ClientEvents OnRowCreated="rdgImpactTimeList_RowCreated" OnRowSelected="rdgImpactTimeList_RowSelected"
                                                                OnRowDeselected="rdgImpactTimeList_RowDeselected" />
                                                        </ClientSettings>
                                                        <FilterMenu EnableEmbeddedSkins="false">
                                                        </FilterMenu>
                                                    </telerik:RadGrid>

Please help me get the add working.
Princy
Top achievements
Rank 2
 answered on 25 Nov 2013
7 answers
115 views

Hi Telerik Folk!

First of all, the cloud uploader is totally what we needed! Our web application is hosted as Microsoft's Windows Azure Website (WAWS), and having the file stream straight into blobage is critical since WAWS has only limited local disk space for "temp" storage of uploads.

Nicely done, and we really like the UI!

Two things on our wish list:

1) We have many storage accounts in Azure, each located in multiple places around the world. Also, each collection of files is stored in it's own "Collection". So we need to be able to change the storage location for each file being uploaded. I notice there is mention of this capability using the handler. Could you please provide a code example?

2) Right now we are encrypting files (using AES 256 bit) after they upload by copying the blob from where it landed, to it's final destination. This works fine with small files, but with large files this takes a long time to happen. Our wish is to encrypt the stream on the upload. I have code I can send you that is doing this. It's real easy. Also, it would be great to add three optional properties added:

* AES Encryption (bool)
* Bit option (int)
* InitializationVector (byte[])
* SymetricKey (byte[])

Thanks! And fantastic work!

-Eric

    
Ray
Top achievements
Rank 1
 answered on 23 Nov 2013
6 answers
110 views
Dear Telerik,
I know that Client-side Templates are applicable with ODataSource bind. What is the case with WCF binding ?

Thanks in advance
Tarek
Top achievements
Rank 1
 answered on 23 Nov 2013
1 answer
74 views

I am a newbie and have been doing a lot of reading and trying. The following code works to some degree.  Here's what I would like to address:
1. change the anchor tag in the clientTemplate to an html.Actionlink as in the .template

2. my datafield is not being encoded in the clientTemplate - most likely just syntax

3. if I must use the anchor tag - how do I pass parameters?

Thank you for any help.

<%  Html.Telerik().Grid(Model.DocketList).
       Name("RenderedDockets").HtmlAttributes(New With {.style = "width:1200px; font-size:10px;"}).
       Columns(Sub(columns)
                   columns.Template(Function(d) Ajax.ActionLink(d.DocketNumber.ToString, "../Forms/DocketImageRendPage.aspx", New With {.id = d.DocketNumber}, New AjaxOptions With {.HttpMethod = "Get"})).Title("Docket").
                       ClientTemplate("<a class='mgGoto' href='../Forms/DocketImageRendPage.aspx'>#=model.DocketNumber#</a>").Title("Docket")
                         Pageable().
      DataBinding(Function(b) b.Ajax().OperationMode(GridOperationMode.Client)).
      Sortable().BindTo(Model.DocketList).Render()%>
Shash
Top achievements
Rank 1
 answered on 22 Nov 2013
2 answers
130 views
In 2013 Q3 we are getting borders applied to our fieldset elements in Office 2007 skin.  The relevant CSS rule appears to be from Telerik.Web.UI.Skins.FormDecoratorLite.css:
.RadForm fieldset {
    padding: 10px 15px;
    border-width: 1px;
    border-style: solid;
}
Our form decorator declaration is:
<telerik:RadFormDecorator ID="RadFormDecoratorMain" runat="server" DecoratedControls="All" ControlsToSkip="Fieldset">
</telerik:RadFormDecorator>
Is there a change to how controls should be excluded, or is this a bug?
Dev
Top achievements
Rank 1
 answered on 22 Nov 2013
4 answers
97 views
Hi,
how can i set focus on textbox (TextboxFindTreeNode), after opening ContextMenu with right click.
I user the ItemTemplate in RadMenuItem
Thanks
<telerik:RadTreeView ID="RadTreeViewFileShare" runat="server" >
 
             <ContextMenus>
 
                 <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenuFs" runat="server">
                     <Items>
                         <telerik:RadMenuItem>
                             <ItemTemplate>
                                 <asp:Panel ID="PanelFindNode" runat="server" style="padding:5px;" DefaultButton="ButtonFindTreeNode">
                               
                                 <asp:Label ID="LabelFindNode" runat="server" Text="Find Node:" AssociatedControlID="TextBoxFindTreeNode"></asp:Label
                                 <asp:TextBox ID="TextBoxFindTreeNode" runat="server" AutoCompleteType="Search"></asp:TextBox>
                                 <asp:ImageButton ID="ButtonFindTreeNode" runat="server" ImageUrl="~/Images/Search/Search.ico"
                                     ToolTip="Search for node" OnClick="ButtonFindTreeNode_Click" ImageAlign="Middle"/>
                                </asp:Panel>
                             </ItemTemplate>
                         </telerik:RadMenuItem>
                     </Items>
 
 
                 </telerik:RadTreeViewContextMenu>
             </ContextMenus>
     </telerik:RadTreeView>
Viktor Tachev
Telerik team
 answered on 22 Nov 2013
1 answer
90 views
Hi
Is it possible to show a readonly column in editmode. It should not be editable bt i want to view its value. Help me on this.
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2013
5 answers
266 views
I have a Pivot grid and in Aggregate file i have placed the Textbox.
When user click on Save button i want to use looping to get all pivot grid item
In design 

 <telerik:PivotGridRowField DataField="SERVICName" Caption="SERVICName" CellStyle-Width="80px">
                      <celltemplate >
                            <asp:DropDownList ID="ddlService" runat="server" AutoPostBack="false">
                            </asp:DropDownList>
                        </celltemplate>
                </telerik:PivotGridRowField>
                 <telerik:PivotGridRowField DataField="StartDate" Caption="StartDate" CellStyle-Width="80px">
                </telerik:PivotGridRowField>
                 <telerik:PivotGridRowField DataField="EndDate" Caption="EndDate" CellStyle-Width="80px">
                </telerik:PivotGridRowField>              
                <telerik:PivotGridAggregateField DataField="LoadHours"  CellStyle-Width="60px">
                <celltemplate >   
                <asp:TextBox ID='txtloadhours' runat="server" Width="46" Text='<%# Container.DataItem%>' ></asp:TextBox>
                                          </celltemplate>         
                </telerik:PivotGridAggregateField>     

Save Button Click : 
   for (int i = 0; i < RadPivotGrid1.Items.Count; i++)
        {
}
here i want to get all the items of both Rowfield items and DataCell Items.

Guide me to get all the items from save button click.
Daniel
Telerik team
 answered on 22 Nov 2013
1 answer
149 views
Hi
i have a RadAutoCompleteBox in ItemTemplate of my template column. According to the value selected in it, I want to change the text of another boundColumn. How to achieve this?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?