Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
3.4K+ 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
228 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
530 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
86 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
358 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
343 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
581 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
0 answers
87 views

Hi Team

 

I need to hide the Checkbox that are present in Parent Node in MVC program.

 

Kindly help.

 

 

Regards

Sri balaji S

 

Sri
Top achievements
Rank 1
 asked on 10 Nov 2016
2 answers
771 views

Hi,

How can i find the last row of a rad grid and make the last row bold.

I Have a rad grid in which iam fetching the total from the database itself as in attached file. I do not want to add the footer and use aggregate function

Thanks in advance

Sushanth.B

Sushanth
Top achievements
Rank 1
 answered on 10 Nov 2016
11 answers
5.7K+ views
I am having issues when I already have a grid built in the aspx code and am adding columns dynamically from the server side end. The grid will show up with the proper header titles for each column, but as soon as I sort the headers disappear and when I go to the next page each cell is filled with 'System.Data.DataRowView'.

Is their anyway I can make the columns persist in the viewstate? Thanks in advanced.

aspx code:
<telerik:RadGrid ID="Grid1" runat="server" AllowFilteringByColumn="True" 
        AllowPaging="True" OnNeedDataSource="Grid1_NeedDataSource" AllowSorting="True" 
        GridLines="None" ShowGroupPanel="True" AutoGenerateColumns="true" PageSize="50" 
        Skin="Telerik" Visible="false" Width="98%"
        <MasterTableView AutoGenerateColumns="False" > 
           <Columns> 
                
            </Columns> 
        </MasterTableView> 
 
        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True"
        </ClientSettings> 
    </telerik:RadGrid> 

c# code:
NewColumn = new GridBoundColumn();
NewColumn.DataField = 
"COLUMN1";
NewColumn.UniqueName = 
"COLUMN1";
NewColumn.Visible = 
false;
Grid1.MasterTableView.Columns.Add(NewColumn); 
Marin
Telerik team
 answered on 09 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?