Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
532 views
Hello,
I want to save a file to database. I have a grid template column, in that I have RadUpload control. From this I will have to get the input file from user. I need to save this file in the database. I do not want to use the query in the aspx page. I want to save this file to DB in

rdgAddUpdFile_InsertCommand

method. What should be the DB column Type for this? Should this be text or Varchar?
Also, how to get this data saved again for reconstructing this file for download?
Thanks and Regards,
Deepika Karanth

Arron
Top achievements
Rank 1
 answered on 25 Apr 2014
3 answers
345 views

 Hi,
Anybody can help me how can I get selected cell value in radgrid dynamically. I would like to publish my code and attachement. What I want is when CellDbClick event fire, I want to get current selected cell value in attachement gridview. I appreciate any help.

.aspx
(
 <telerik:RadGrid runat="server" ID="grdAvailability" AllowPaging="true" AutoGenerateColumns="false"
                                         OnItemDataBound="grdAvailability_DataBound"
                                         PageSize="50" Height="565px" Skin="Simple">
                            <PagerStyle Visible="false"  />
                            <MasterTableView DataKeyNames="RoomKey" ItemStyle-Wrap="false" ClientDataKeyNames="RoomKey" TableLayout="Auto">
                            </MasterTableView>
                            <ClientSettings AllowRowsDragDrop="true">
                                <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" />
                                <ClientEvents OnCellSelected="cellSelected" OnScroll="HandleScrolling" OnRowContextMenu="OnRowContextMenu" />
                                <ClientEvents OnRowDblClick="CellDbClick" />
                                <Selecting CellSelectionMode="SingleCell" EnableDragToSelectRows="true" />
                            </ClientSettings>
                        </telerik:RadGrid>
)

Script
(
 function CellDbClick(sender, eventArgs) {
                var grid = sender;
                var MasterTable = grid.get_masterTableView();
                var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
                var cell = MasterTable.getCellByColumnUniqueName(row, 'RoomKey');
                var value = cell.innerHTML;
                var rvalue = cell.innerText;
                alert("HTML" + value);
                alert("Text" + rvalue);
            }
)
Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
766 views
I need to countdown days, hours, minutes to a future event on a clock type control.  Does anyone have a good example of doing that?
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2014
2 answers
208 views
Hi guys,

I am displaying a Code11 barcode with the Text and Checksum. On increasing the font, I recently found the text got overlapped with the barcode as the size increases. How can I fix this?

Thanks
Joseph.
Mariah
Top achievements
Rank 1
 answered on 25 Apr 2014
0 answers
56 views
Hi

We have MOSSEditor Webparts deployed in our MOSS environment. We have a need to programtically read the contents of all the MOSSRadEditors on the site. Please guide me on how to do that.

Thanks.
smitha
Top achievements
Rank 1
 asked on 24 Apr 2014
5 answers
433 views
Hello 

I'm currently working on a project that includes RadMenu. 
The functionality that I want is this: 

Only when I click on the item it will open and not by mouse hover. (Each tab separately). 

My ASPX code: 


01.<telerik:RadMenu ID="RadMenu1" Runat="server" ClickToOpen="True" OnClientMouseOver="OnClientMouseOverHandler" style="top: 0px; left: 0px; width: 414px; height: 40px">
02.                       <Items>
03.                           <telerik:RadMenuItem runat="server" Text="Root RadMenuItem1">
04.                               <ContentTemplate>
05.                                   <div id="NewsWrapper" class="Wrapper">
06.                                       sdfsdfsdfs
07. 
08.                                         <a class="moreLink" href="#">View all »</a>
09.                                   </div>
10.                               </ContentTemplate>
11.                           </telerik:RadMenuItem>
12.                           <telerik:RadMenuItem runat="server" Text="Root RadMenuItem2">
13.                              <ContentTemplate>
14.                                   <div id="Div1" class="Wrapper">
15.                                       sdfsdfsdfs
16. 
17.                                         <a class="moreLink" href="#">View all »</a>
18.                                   </div>
19.                               </ContentTemplate>
20.                           </telerik:RadMenuItem>
21.                           <telerik:RadMenuItem runat="server" Text="Root RadMenuItem3">
22.                              <ContentTemplate>
23.                                   <div id="Div2" class="Wrapper">
24.                                       sdfsdfsdfs
25. 
26.                                         <a class="moreLink" href="#">View all »</a>
27.                                   </div>
28.                               </ContentTemplate>
29.                           </telerik:RadMenuItem>
30.                       </Items>
31.                   </telerik:RadMenu>

JS code:

01.<script type="text/javascript">
02.       function OnClientMouseOverHandler(sender, eventArgs) {
03.           if (eventArgs.get_item().get_parent() == sender) {
04.               sender.set_clicked(false);
05.           }
06.       }
07. 
08.        
09.   </script>


My problem is that when one item is already opened, and I move the mouse away and back , and then click on it, it does not recognize that it is already opened, and opens again. 

How do I fix this? 

Pseudo code  like this: 
if radmenuitem.isOpen == true 
       radmenuitem.close


Thanks,

Daniel.
Boyan Dimitrov
Telerik team
 answered on 24 Apr 2014
1 answer
162 views
If you have a linked image in the editor and you replace the image by clicking it to select it, opening the image manager, and inserting a new image, the link is deleted. I am pretty sure that links used to be preserved when images are replaced. i remember instructing people on how to do this regularly in templates so they did not have to recreate all the links when updating their images.

We are experiencing this issue in version: 2014.1.403.40, but as you can see the issue is reproducible in your demo site as well. 

I've recorded a video using your demo site that demonstrates how to recreate this issue.

https://www.youtube.com/watch?v=PO9SMLFCVkc

Please let me know how we can correct this, or if it's a bug when it will be fixed.

-Mark
Ianko
Telerik team
 answered on 24 Apr 2014
1 answer
316 views
I have a home.aspx file which has a button. when click on this button i would like to do do a modal popup to call login.ascx (user control). i want to make this modal avaiable no matter what page you are on. So if you get timedout, the modal will popup at your current page and ask you to log back in again. so my structural is
primary master - child master - home - user control

i tried to look for a way to do this in telerik modalpopup but haven't found any. Do you guys have any sample like this? Thanks
Danail Vasilev
Telerik team
 answered on 24 Apr 2014
2 answers
163 views
Does Telerik have any thoughts/plans on introducing a Diagram control? I would love to abandon my diagram control that cost a fortune (and can't afford anymore) in favour of something from Telerik.
Rumen
Telerik team
 answered on 24 Apr 2014
5 answers
209 views
Is it possible to have more than one background color in a radgrid cell? - i.e. can the cell painting method be overridden?

The colors that might need to be used and the percentage of the cell width that each color would occupy would vary from cell to cell, so I can't use CSS to control it.

Thanks
Shinu
Top achievements
Rank 2
 answered on 24 Apr 2014
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?