Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
514 views
<p><telerik:RadGrid ID="SampleGrid"  GridLines="None" runat="server" AllowAutomaticDeletes="false"<br>                              AllowPaging="True" PageSize="10" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"<br>                              AutoGenerateColumns="False" MasterTableView-EditMode="EditForms" ShowFooter="false"<br>                              MasterTableView-CommandItemSettings-ShowRefreshButton="false"<br>                              OnNeedDataSource="SampleGrid_NeedDataSource" OnInsertCommand="SampleGrid_InsertCommand"<br>                              OnItemCommand="SampleGrid_ItemCommand" OnUpdateCommand="SampleGrid_UpdateCommand" OnItemDataBound="SampleGrid_ItemDataBound"<br>                              Width="100%"><br>                              <PagerStyle Mode="NextPrevAndNumeric" /><br>                              <MasterTableView Width="100%" CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="False"<br>                                  DataKeyNames="ID" Caption="Sample" ><br>                                  <Columns></p><p><telerik:GridTemplateColumn HeaderText="Action" AllowFiltering="false"><br>                                          <ItemTemplate><br>                                              <asp:ImageButton ID="ImgBtnEdit" runat="server" CommandName="Edit" CausesValidation="False"<br>                                                  ImageUrl="../Images/icons/page-edit.png" ToolTip="Edit" ImageAlign="AbsMiddle"><br>                                              </asp:ImageButton><br>                                          </ItemTemplate><br>                                          </telerik:GridTemplateColumn></p><p>  <telerik:GridBoundColumn DataField="NAME" HeaderText="Name" UniqueName="NAME"<br>                                          ItemStyle-Width="120px"><br>                                      </telerik:GridBoundColumn></p><p>  </Columns><br>                                  <EditFormSettings EditFormType="Template"><br>                                      <FormTemplate></p><p><table class="detailtable" cellspacing="2" cellpadding="1" width="100%" border="0"<br>                rules="none" style="border-collapse: collapse;"><br>                <tr><br>                    <td class="detaillabel"><br>                        Brand:<br>                    </td><br>                    <td><br>                         <telerik:RadComboBox ID="Name" runat="server" Width="250px"   AllowCustomText="true" EmptyMessage="Select" EnabledStyle-HorizontalAlign="Right"><br>                                                       </telerik:RadComboBox><br>                    </td><br>                </tr><br>            </table><br>        </div><br>    </FormTemplate><br></EditFormSettings></p>  </MasterTableView><br>                              <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true" /><br>                              <ClientSettings EnableRowHoverStyle="true" AllowDragToGroup="true" ReorderColumnsOnClient="true"<br>                                  AllowGroupExpandCollapse="true" AllowColumnsReorder="true"><br>                                  <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /><br>                              </ClientSettings><br><br>                          </telerik:RadGrid><br>

 

I want to find the ComboBox and bind combo box with some values so that While inserting record , the end user can choose a value to insert or save

<p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"></code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"> protected void SumInsGrid_ItemDataBound(object sender, GridItemEventArgs e)<br>        {<br><br>            GridDataItem dataItem = e.Item as GridDataItem;<br><br>            if (e.Item is GridEditFormInsertItem)<br>            {<br>                RadComboBox Name = (RadComboBox)e.Item.FindControl("Name");<br>                BindComboBox(Name);<br>            }</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">            else if (e.Item is GridEditFormItem && e.Item.IsInEditMode)<br>            {</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">                     ...........</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">                     RadComboBox Name = (RadComboBox)e.Item.FindControl("Name");<br style="color: rgb(0, 0, 0); font-family: monospace;">                     BindComboBox(Name);</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">                     ...</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">            }</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;">    }</code></span></span></p><p style=" background-color: #fff;"><span style=" "><span style=" margin-left: 0px !important;"><code style="color: #000;"></code></span></span></p>

 

While Editing findControl method works by returning the ComboBox object but not While Inserting. I want to bind values programmatically to the RadComboBox. 

Eyup
Telerik team
 answered on 11 Nov 2016
3 answers
742 views

 

Is there a way to disable validation when the previous button or a navbar button < current step is clicked?

Ivan Danchev
Telerik team
 answered on 10 Nov 2016
1 answer
276 views

I've read through many of the posts here but none seem to directly apply to my issue.  I have a telerik AJAX based shipping application that is generating a Bill of Lading.  The bill of lading is a legal document that need to look exactly like what the user sees on the page.  I'm generating that to a web page, but of course printing a web page generates all sorts of "noise" to the document - additional page numbers... web page source name, etc.

 

I would like to export the web page to a PDF and then have that print - all in one step.  The issue that I'm seeing is that ClientExportManager generates the PDF which shows up as a downloaded document.  The user has to open that doc, then click print, then gets to the print dialog.  That is a major pain.

 

Is there a way to generate the PDF directly to a web page - so it is displayed in a RadWindow (for instance) with a print button exposed at that point?  My users a balking at the multiple step process above but I can't find a way around it.  Basically I just need to print a web page without all the extra junk that the browsers add - so if there is a way that you know to do that instead - that would work too.

 

Thanks in advance!

Cory

Ivan Danchev
Telerik team
 answered on 10 Nov 2016
8 answers
3.3K+ views
How can i write the function in RadGrid Column button... ?

Thanks & Regards
  Suren
Viktor Tachev
Telerik team
 answered on 10 Nov 2016
1 answer
216 views

Hi,

I coundn't find an information about it, and I'm new in programming, so I thought that maybe someone here could help me.

Is there a possibility of firing an event on clicking OK? I would like to redirect to one page upon clicking on OK and to second page upon clicking on Cancel. It is really necessary for me to do so, could you please help me?

 

Regards,

Ola

Marin Bratanov
Telerik team
 answered on 10 Nov 2016
5 answers
508 views
Hi there, 

       I have a Byte [ ] of word document containing Text, Images and Tables.
       I want to generate and store PDF file into the database table.
       I am able to generate the PDF file using below code but Image is not exporting to PDF.
       Text and Tables exported successfully.

        public void ByteArrayToPdf()
        {
            Byte[] Document = null;
            RadDocument document = new RadDocument();
            PdfFormatProvider pdfFormatProvider = new PdfFormatProvider();
            RtfFormatProvider providerRtf = new RtfFormatProvider();

            string path = Path.GetTempPath() + "\\TempFile.doc";
            
            Document = File.ReadAllBytes(path);

            using (FileStream stream = File.Open(path, FileMode.Open))
            {
                document = providerRtf.Import(stream);
            }

            Document = pdfFormatProvider.Export(document);


            if (Document != null && Document.Length > 0)
            {
                    SaveDocumentToDB(Document);
            }
}
 

Please help.


Thanks
Anup Indurkar
Daniel
Telerik team
 answered on 10 Nov 2016
1 answer
75 views

I have a simple page with an Ajax timer, that updates some controls (A pannel and two link buttons).  When the timer fires, the controls that it should be updating momentarily disappear from the page and then come back, and there is no loading pannel or anything.  Se code below.  What am I missing?

 

Timer:

<asp:Timer ID="ajtTimer" runat="server" Interval="15000" OnTick="ajtTimer_Tick"></asp:Timer>

 

Ajax Settings for Timer:

<telerik:AjaxSetting AjaxControlID="ajtTimer">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="pnlActions" LoadingPanelID="lpActions" />
        <telerik:AjaxUpdatedControl ControlID="lbSaveAndGenerateTop" LoadingPanelID="lpActions" />
        <telerik:AjaxUpdatedControl ControlID="lbSaveAndGenerate" LoadingPanelID="lpActions" />
    </UpdatedControls>
</telerik:AjaxSetting>

 

Loading Pannel:

<telerik:RadAjaxLoadingPanel runat="server" ID="lpActions"></telerik:RadAjaxLoadingPanel>

 

 

Thanks,

Mirek

Eyup
Telerik team
 answered on 10 Nov 2016
12 answers
347 views
Hi,

I need to add a checkbox for each timeslot row in day view of the Scheduler, is there such flexibility for Scheduler control?
Ref: Like how the data grid allows us to include different control in item template, same way is there any option in Scheduler control.

Thanks,
Navya
Veselin Tsvetanov
Telerik team
 answered on 10 Nov 2016
1 answer
322 views

Hello

I have a grid, which I want to get the cell data (Data Bounded) of different column and same row when I click a RadComboBox  (Item template). and use it in ItemRequested server side event.

I don't know how to access the data bounded cell when clicking the combo box in client side.

I appreciate your help.

Eyup
Telerik team
 answered on 10 Nov 2016
1 answer
534 views

I use Skin Bootstrap and RenderMode Lightweight

Bootstrap use AlternatingItemStyle gray. I dont want to use that, i want have White for all items

I try set <AlternatingItemStyle BackColor="#ffffff" /> Not works....

<ItemStyle BackColor="#ffffff" /> works fine....

BackColor="#ffffff" Not works....

 

How to use White for all items in grid?

 

 

Eyup
Telerik team
 answered on 10 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?