Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
I'd like to lay out a scenario and hopefully someone can help me figure out the best want to implement either the Cloud or Async uploader to solve it. I am using Windows Azure web sites, storage and SQL.

Our business allows customers to upload medical bills to our site.  We then review those files for overcharges, billing errors, etc.  The uploaded file could be a single bill or a combination of bills all in one file.  After the file is uploaded, I need to capture information about the file as well as other user meta information into our database,

I love the ease at which the CloudUpload integrates with Azure.  My main question is, what is the best way to capture the information (mainly the keyname) for each file uploaded and insert that information into our database, along with session information identifying the user?

Right now, I have a button on the page to force a postback, but the postback removes the file upload progress and only seems to capture the last uploaded file.

One thing I want to prevent, is the user uploading files, not clicking the button and then having orphaned files in our storage.

Thanks,

Greg


Hristo Valyavicharski
Telerik team
 answered on 28 Nov 2013
4 answers
461 views
I'm facing two issues with my current implementation of a radgrid wich uses nestedviewtemplates to show details inside multipage + formviews.
1)- First issue is that when expanding an item, even if viewstate is enabled, it seem the grid still calls the needdatasource and launch the db query. Why? Is this correct? I'm just expanding a row shouldn't it retrieve the rest of the current grid page from the controlstate/viewstate?
2)- Second issue is that... I'm using InPlace edit for the grid rows, also I'm using the grid <EditFormSettings EditFormType="Template"> for insert. What happens now is that if I have InPlace editing active on a row and I expand another row (or the same one) things get messed up with JS errors. And the same happens when the insert is active. If I do the other way round (with one or more rows expanded I go to edit InPlace or launch Insert) everything works correct since it seems that before entering InPlace or Insert the grid is rebound and all the expanded rows are closed.

Those 2 questions are somehow related since... to solve the second issue I would like to obtain on item expand the same "effect" that happens automatically when you go InPlace edit or Insert, but it seems that the grid already rebinds itself when you expand an item.

I'm a bit confused and need some help here. I solved now with a trick on client command that way: <ClientEvents OnCommand="CheckExpand" /> 
And in the JS code:
// Check if edit InPlace or Insert is active before expanding grid and rebind
function CheckExpand(sender, eventArgs) {
    if (eventArgs.get_commandName() == "ExpandCollapse") {
        var masterTable = sender.get_masterTableView();
        var item = masterTable.get_dataItems()[eventArgs.get_commandArgument()];
        var isexpand = item.get_expanded()
        var editItems = masterTable.get_editItems();
        var insertItem = masterTable.get_insertItem();
 
        if ((editItems.length > 0 || insertItem != null) && isexpand == false) {
            masterTable.fireCommand("RepaintGrid", "");
        }
    }
}

RepaintGrid just issues a grid.MasterTableView.Rebind()

But this is not working as intended since it ALWAYS does a rebind even when edit inplace or insert are not active. Infact I have HierarchyLoadMode="Conditional" but each time I expand or collapse a row grid is always rebind. Positive side is that it actualluy
Good news is that this fixes the issues when inplace or insert are active and I expand a grid since it "resets" the grid first removing them and then expand the row BUT in this scenario a double rebind happens (see problem number 1 above) and this is not good.

Need some help here. Thank you in advance for your usual support both Telerik staff and helpful users!
This community is great and is great to contribute somehow even with problems that when resolved are useful to anyone.
Angel Petrov
Telerik team
 answered on 28 Nov 2013
1 answer
95 views
I would like to know how to auto scroll a selected item so it is visible in the viewport? 

Currently if I have scrolling enabled I can select a menu item and the page will post but reverts back to the start of the menu even though the menu item I selected appears selected.

Thanks
Kate
Telerik team
 answered on 28 Nov 2013
1 answer
130 views
Hi,
I have highlighted some rows based on some condition and i have set row selected style. But when selecting the highlighted row removes that highlight. How to persist it even after selecting.?
Princy
Top achievements
Rank 2
 answered on 28 Nov 2013
1 answer
183 views
Hi,
How to create a compare validator in code behind if i want to compare the values of two column which are griddatetimecolumns.
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2013
6 answers
265 views

Hi!

I have dynamic Tabs on my page, which I want to let the user close with the scroll wheel click from the mouse, as we can do to close tabs on the browser, for instance. The thing is that when I close a tab it opens the link http://<myUrl># on another tab. That's due to the browser behavior, which I can do nothing about it, and because I don't want to define an valid URL value for the tab... so she sets my page URL by default.

How can I deactivate or set an empty URL so that the browser don't open a new tab on scroll wheel click over the radTab?


Thanks,

Rodrigo S.
Anu
Top achievements
Rank 1
 answered on 28 Nov 2013
1 answer
1.6K+ views

My parent grid updates 2 children grids on the page via RadAjaxManager when I click a different row, by having EnablePostBackOnRowClick set to True. I need to empty the children grids when I sort, change pages, or filter (given the selected row may no longer be visible) hereby requiring the user to select a new row to update the 2 children grids.

I have it working for sorting and changing pages (by calling .Rebind() with empty datasets) on the server-side within the parent grid's SortCommand and PageIndexChanged events. However, I can't find a server-side event to call when the user changes any column filters. How can I do this?

Princy
Top achievements
Rank 2
 answered on 28 Nov 2013
1 answer
142 views

Hello,

I have  a dynamically created RadGrid. The HTML output for each row looks like that:

<tr class="rgRow" id="Tr1">
 <td>

 </td>
</tr>

Now I want to inject some extra code next to the tr-tag in each gridrow:

<tr itemscope itemtype="http://schema.org/Product" class="rgRow" id="Tr1">
 <td>

 </td>
</tr>

Any ideas?

Best regards
Bernie

michael schneider
Top achievements
Rank 1
 answered on 28 Nov 2013
5 answers
151 views
Hi

I been trying to find options to just print the editform content. I have grid with usercontrol editform which is almost a page size and user might want to print the form content only for discussion purposes. I know there are print options which we can try to print the screen but it looks ugly with grid on the background. I am trying to see whether there is any option just to print the edit form content only with form format not in excel format. 

Vijai
Kostadin
Telerik team
 answered on 28 Nov 2013
1 answer
81 views
I have a treelist control on my page where I load the items dynamicaly. At each section I'd like to have aggregated sums at the bottom. I thing I have all set correctly regarding online demos but the result footer are all empty.

I use this code:

<
telerik:RadTreeList ID="rtlData" AllowLoadOnDemand="true" runat="server" AutoGenerateColumns="false"
    OnChildItemsDataBind="RadTreeList_ChildItemsDataBind" OnNeedDataSource="RadTreeList_NeedDataSource"
     DataKeyNames="CssClass,ParentId" ParentDataKeyNames="CssClass,ParentId" OnItemCreated="RadTreeList_ItemCreated"
    OnItemDataBound="RadTreeList_ItemDataBound" ShowFooter="true">
     <Columns>
          <telerik:TreeListBoundColumn DataField="ProductCatL3" UniqueName="ProductCatL3" HeaderText="Produkt L3">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="ProductCatL2" UniqueName="ProductCatL2" HeaderText="Produkt L2">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="ProductCatL1" UniqueName="ProductCatL1" HeaderText="Produkt L1">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="State" UniqueName="State" HeaderText="Stav" DataType="System.Decimal" DataFormatString="{0:C2}" Aggregate="Sum">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="Avg1Month" UniqueName="Avg1Month" HeaderText="PrůmÄ›r 1 mÄ›síc" DataFormatString="{0:C2}" Aggregate="Avg">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="Avg3Months" UniqueName="Avg3Months" HeaderText="PrůmÄ›r 3 mÄ›síce" DataFormatString="{0:C2}" Aggregate="Avg">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="ApprovedLimit" UniqueName="ApprovedLimit" HeaderText="Schválený limit" DataFormatString="{0:C2}" Aggregate="Sum">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="CssClass" UniqueName="Css" HeaderText="CSS" Visible="false">
          </telerik:TreeListBoundColumn>
          <telerik:TreeListBoundColumn DataField="ParentId" UniqueName="ParentId" HeaderText="ParentId" Visible="false">
          </telerik:TreeListBoundColumn>
     </Columns>
</telerik:RadTreeList>
Marin
Telerik team
 answered on 28 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?