Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
76 views
I need to inherit from RadGrid and add some markup when it renders - specifically I want to add a header bar (not headers as in columns, headers as in a chunk of markup that renders across the top of the control that contains some hyperlinks for some commands related to the displayed grid contents as a whole). I want to do it through inheritance so that I can have the developers on my team easily add my derived control to dozens of pages that all need the same things hooked up so I can encapsulate it in the derived control class.

How would I go about adding some markup to the rendered markup from the derived control class? For my specific use case I want to add the markup to the stream just before RadGrid starts rendering its content. 

Conceptually, I want to turn something like this:
<div><asp:Hyperlink OnClicked="SomeHandlerInPageCodeBehindWithSameCodeOnEveryPage"/></div>
<telerik:RadGrid>...</telerik:RadGrid>

into:
<my:RadGridEx>...</my:RadGridEx>
Eyup
Telerik team
 answered on 24 May 2013
1 answer
108 views
Dear Sir,

I have a custom control that inherits from asp.net datagrid. Is there any way that I can convert/inherit from radgrid with out breaking the impletmentation as much as possible? I am fine with a 10% additional work on each page. We have numerous (100s) of pages that implements this grid so if we need to touch all the pages it will be a big overhead.

Thanking you for your earliest attention

Suraj
Eyup
Telerik team
 answered on 24 May 2013
1 answer
67 views
We've included the RadScheduler in an iFrame within and MVC application.  Most everything is working fine except that the IE 10 browser, when in IE 10 compatibility mode (not exactly why it's in the mode), the calendar collapses or doesn't display correctly.   Any suggestion would be appreciated.
Genady Sergeev
Telerik team
 answered on 24 May 2013
1 answer
65 views
hi friends, 
i need a solution to bind emails to telerik grid from mail server.
is there any solution for my need...
if anyone have solution, share me..
thanks in advance...
Kostadin
Telerik team
 answered on 24 May 2013
3 answers
299 views
Hello, how can I tie the update button for the radeditor's content to a validation function?  I basically want to ensure that the user doesn't put javascript and/or links to external sites so I want to check the html of the content and throw an error message if any of these things are found.  I couldn't find a validation event and validation group for the radeditor....
Rumen
Telerik team
 answered on 24 May 2013
3 answers
376 views

<telerik:RadGrid>
<telerik:GridTemplateColumn Visible="true" DataField="Signature" HeaderText="Signature"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="Signature">
                    <ItemTemplate>
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue='<%#Eval("Signature") is DBNull ? null : Eval("Signature")%>'
                            AutoAdjustImageControlSize="false" ResizeMode="Fit" Height="50px" Width="120px" />
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadAsyncUpload runat="server" ID="ImgImages2" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
                            MaxFileInputsCount="1" Skin="Outlook" Width="110px" PostbackTriggers="RbtnReset1"  />
                        <asp:Label ID="lblupload2" runat="server" Visible="true" CssClass="error"></asp:Label>
                    </InsertItemTemplate>
</telerik:GridTemplateColumn>

 <telerik:GridTemplateColumn Visible="true" DataField="chkNumber" HeaderText="Check Number"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="chkNumber">
                   
                    <ItemTemplate>
                        <%# Eval("chkNumber")%><%--.ToString().PadLeft(4, '0')%>--%>
                    </ItemTemplate>
                    <InsertItemTemplate>
                        <telerik:RadTextBox ID="rdtxtchkNumber1" runat="server" Width="160px" MaxLength="4"
                            onclick="shouldConfirm = true;" Text='<%# Eval("chkNumber") %>'>
                        </telerik:RadTextBox>
                        <telerik:RadButton ID="RbtnReset1" runat="server" Width="40px" CausesValidation="true"
                            Text="Reset" OnClick="RbtnResetCheckNoinInsert_Click" />
                  </InsertItemTemplate>
   </telerik:GridTemplateColumn>


I am upload a Image ,using rad async  upload ..after that I am click on the reset button ,I don't want to loss the  image .how persist the image upload by user up to the user click on insert or update in rad grid.  using post back trigger   at server side code. plz help me.
Kostadin
Telerik team
 answered on 24 May 2013
1 answer
144 views
I have a RadGrid which is filled with data when the user clicks a button. After this I want the user to have the option to export the grid to pdf by clicking a button on a RadToolBar, but it is not working. If I don't use ajax it works fine.

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">                 
             <telerik:AjaxSetting AjaxControlID="btnFindProgram">
                 <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="lblProgram" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="RadGridProgram" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="RadToolBar1" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailBody" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailSubject" UpdatePanelCssClass="" />
                     <telerik:AjaxUpdatedControl ControlID="HiddenEmailAddress" UpdatePanelCssClass="" />                   
                 </UpdatedControls>
             </telerik:AjaxSetting>                        
         </AjaxSettings>
     </telerik:RadAjaxManager>
 
Can anyone see what I am doing wrong?

Regards, Jill-Connie Lorentsen
Kostadin
Telerik team
 answered on 24 May 2013
1 answer
60 views
I apologize ahead of time since I'm likely posting this in the wrong forum. 

I'm not familiar with telerik controls and been asked to maintain some code that uses them. In this project, I have some modifications I've been making for UI performance reasons and ran into some issues.

I have one page that contains a telerik radgrid. It's meant to be standalone or used as a widget on another page.

As a standalone page, I have no problems.

On another page, I make an ajax call to the page containing the telerik radgrid and populate an HTML tag with the results. On the page, the grid appears fine. However, interacting with any of the parent pages original telerik controls results in Javascript errors likely caused by having the original page's telerik js namespace being overwritten.

Other than putting the child page into an iframe, is there another way to prevent the telerik javascript namespace conflicts of the two pages?

Genady Sergeev
Telerik team
 answered on 24 May 2013
1 answer
91 views
Hi,

Does radwindow have a context menu? I want to display a context menu for my radwindow?

Thanks,
Saira
Shinu
Top achievements
Rank 2
 answered on 24 May 2013
3 answers
161 views

Hi Telerik Team,

I want to validate  custom resource collection fields on client side in radscheduler.
I have try some thing..
 function clientFormCreated(scheduler, args) {
            debugger;
            $(".rsAdvEditSave").bind({
                click: function () {
                    if (RadScheduler1_AdvancedInsertForm_ResTeacher.value == "-") {
                      //RadScheduler1 is scheduler ID
                        alert('Please select teacher !');
                        return false;
                    }
                   else if (RadScheduler1_AdvancedInsertForm_ResStudent.value == "-") {
                        alert('Please select Student !');
                    }
                }
            });
        }
please help.

Thanks,
Kuldee[p

Plamen
Telerik team
 answered on 24 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?