Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
313 views
Hello...

I have a Radgrid inside user control & I want to find it from aspx page server side. I have written the following code for it but shows me error $find()...is null....

Can anyone please help me asap?

Usercontrol.ascx

function RadGridRow() {
     return $find("<%=RGOrders.ClientID %>").get_masterTableView().get_dataItems();
}

Page.aspx

function abc() {
     var RgOrders = RadGridRow();
}

Please note that I am calling the function abc() from server-side (code - behind). From client side, this function is working fine

Page.aspx.cs

string strscript = "abc();";
ScriptManager.RegisterStartupScript(pnl, pnl.GetType(), "ShowMessage" + DateTime.Now.ToLongTimeString(), strScript, true);
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2013
2 answers
160 views
In the last 3 months the image and document manager controls on the radeditor are not displaying correctly. We are using Q1 2013. I have tried various browsers and skins. 

Any advice would be much appreciated. 


 <telerik:RadEditor ID="edtContent" AutoResizeHeight="True" runat="server" Width="100%" Skin="Simple" Visible="False"  BackColor="White">
        <Tools>
        <telerik:EditorToolGroup >
            <telerik:EditorTool Name="Cut"  />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorTool Name="PasteFromWord" />
        </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="Bold" />
                <telerik:EditorTool Name="Italic" />
                <telerik:EditorTool Name="Underline" />
            </telerik:EditorToolGroup>
                        <telerik:EditorToolGroup>
                            <telerik:EditorDropDown Name="FontName">
                            </telerik:EditorDropDown>
                            <telerik:EditorDropDown Name="FontSize">
                            </telerik:EditorDropDown>
                            <telerik:EditorSplitButton Name="ForeColor">
                            </telerik:EditorSplitButton>
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
     
                <telerik:EditorTool Name="XhtmlValidator" />
     
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool name="ImageManager" enabled="true"  />
            <telerik:EditorTool Name="DocumentManager" />
            </telerik:EditorToolGroup>
            
             
            
    </Tools> 
         <ImageManager ViewPaths="~/userimages" UploadPaths="~/userimages" DeletePaths="~/userimages" AllowFileExtensionRename="false"  SearchPatterns="*.jpg, *.jpeg, *.gif, *.png"    AllowMultipleSelection="false"  EnableAsyncUpload="false"  > 
             

         </ImageManager>     
        <DocumentManager ViewPaths="~/userdocuments" UploadPaths="~/userdocuments" DeletePaths="~/userdocuments" SearchPatterns="*.pdf, *.doc, *.docx, *.xls, *.xlsx" />                                                    

<TrackChangesSettings CanAcceptTrackChanges="True"></TrackChangesSettings>
    </telerik:RadEditor>

Danny
Top achievements
Rank 1
 answered on 19 Nov 2013
1 answer
110 views
Hi there,

I'm sorry if this topic is irrelevant to the forum. I just want to know which control(s) are used for this demo: http://demos.telerik.com/aspnet-ajax/imagegallery/. I would like to build an photo album like this. Thanks!

Long
Konstantin Dikov
Telerik team
 answered on 19 Nov 2013
2 answers
115 views
Hello Everyone!

I have an editable RadGrid, and I would like to be able to intercept the primary key value and look up a value from another table prior to the insert.  I have a working SQL Query since it will function just fine on Update (just compares primary to foreign keys already in SQL), but I cannot grab the value from the value from the textbox prior to the InsertCommand firing (compare that value to the foreign key).  I've tried capturing the textbox value on InsertCommand and InsertButton_Click.

Can anyone please advise me?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 19 Nov 2013
0 answers
131 views
I have a strange issue that I cannot figure out. Whenever I run my project locally in visual studio, radgrids do not show correctly, but if I publish my project to either our development server or production server, then it shows correctly. It used to work fine and I am not sure what changed.

I took the rendered html files from my local environment and on our server and did a compare between the two. I found that whenever I rendered the file locally, I was missing the following:

<table class="rgMasterTable" id="ctl00_MainContent_grdRoleEdit_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
<colgroup>
<col />
<col />
<col />
<col />
</colgroup>
<thead>
<tr>
<th scope="col" class="rgHeader">Role Name</th><th scope="col" class="rgHeader">Company</th><th scope="col" class="rgHeader">Signing Limit</th><th scope="col" class="rgHeader">&nbsp;</th>
</tr>
</thead><tfoot>
<tr class="rgFooter">
<td align="left">

Completely missing, doesn't show in the browser at all, but if I look on our development or production servers, it's there. Tried multiple browsers with the same result. I cannot understand when all of the sudden code would disappear locally, but not when i publish it to another server.

*** UPDATE ***: Issue fixed by reinstalling telerik Ajax controls and removing and reinserting Telerik reference.

Thanks,

Ryan
Ryan
Top achievements
Rank 1
 asked on 19 Nov 2013
2 answers
298 views
Hi I have been attempting to use RadWindow to create a popup that is like the style of the attached image. I have been able to remove all of the control elements and borders using the following styles:

.RadWindow_Default .rwCorner .rwTopLeft, 
.RadWindow_Default .rwTitlebar, 
.RadWindow_Default .rwCorner .rwTopRight, 
.RadWindow_Default .rwIcon,
.RadWindow_Default table .rwTopLeft, 
.RadWindow_Default table .rwTopRight, 
.RadWindow_Default table .rwFooterLeft, 
.RadWindow_Default table .rwFooterRight, 
.RadWindow_Default table .rwFooterCenter, 
.RadWindow_Default table .rwBodyLeft, 
.RadWindow_Default table .rwBodyRight, 
.RadWindow_Default table .rwTitlebar, 
.RadWindow_Default table .rwTopResize,
.RadWindow_Default table .rwStatusbar,
.RadWindow_Default table .rwStatusbar .rwLoading
    {   
        display: none !important;  
    }


The rounded corners and the drop shadow remain. I can do without the drop shadow, but the rounded corners fit in the theme of the site.

Thanks in advance for any help.

Steve 
neebs
Top achievements
Rank 2
 answered on 19 Nov 2013
8 answers
674 views
Hi, 

I am using RadListBox with checkboxes for user to do multi-selections. But the select options in the list box is massive data, so the postback ViewState is huge. What I did to solve is set EnableViewState="false", then try to grab the checked item in request form. This is my code:

front end:
<telerik:RadListBox ID="listbox1" runat="server" CheckBoxes="true" EnableViewState="false"
                    SelectionMode="Single">
                </telerik:RadListBox>

back end:
var listbox = Request.Form[listbox1.ClientID + "_ClientState"];

The select options are populated in Page_Load().
First I noticed "Request.Form[listbox1.ClientID]" does not exist in the form returned, instead there is "Request.Form[listbox1.ClientID + "_ClientState"]". I guess it's a difference between RadListBox and regular ListBox I am not sure.  But I am not sure what should I do next.
I want to grab the checked options. How can I do that? What structure is the "ClientState"?

Or is there another better way to get ride of the Huge ViewState issue? I know this has been a pain from ASP.NET, but any help will be appreciated.

Thanks

Rui
Top achievements
Rank 1
 answered on 19 Nov 2013
3 answers
111 views
I have a situation in which the scheduler will already be open and an item will be added to one of the resources, either by another user or the current user on a different page. When the advanced form is shown, the new item is not in the list. Is there any way, short of refreshing the page, to trigger a refresh of resources?

Plamen
Telerik team
 answered on 19 Nov 2013
13 answers
601 views
I have AllowColumnResize="true" and I would like to set a minimum column size for the column resize drag.
I do not like the 'column width must be non negative' message that pops up if I drag the size past 0 or stop the drag at less than 10 pixels. Sometimes It causes error's or put the column into reorder drag mode.
In my application, there is no reason to set the column size below 30 pixels.
I would like the drag to simply not allow the width to get below 30 pixels. This would avaoid the message and also keep my filter row from wrapping the image.
I understand that this may not be possible without changing the source code.
If so, is there anyway to set the column size to 30 whenever the user tries to make it less than 30 (after the drop).
I have tried resizing the column back to the minimum in OnColumnResized, but calling resizeColumn(index,width) from within the call causes the header and item widths to differ (and also causes an error sooner or later).

Any ideas would be appreciated.



Dave Wolf
Top achievements
Rank 1
Iron
 answered on 19 Nov 2013
5 answers
143 views
Just updated to the latest version today and noticed buttons aren't skinning correctly when inside a raddock inside a raddockzone (I'm using custom skins). See attached images.

Fixed by adding this style to my page with docks on the page:

.RadDockZone, .RadDockZone * {
box-sizing: border-box !important;
-moz-box-sizing: border-box !important;
}

Cradz
Top achievements
Rank 1
 answered on 19 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?