Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
315 views
I have a FooterTemplate inside a Template Column of RadGrid inside which i have a label, i am updating that label value in javascript 
<FooterTemplate>
     <asp:Label ID="lblFooterValue" Font-Bold="true"  ForeColor="Green" Font-Size="15px"
         runat="server"></asp:Label>
     </FooterTemplate>


After all i am exporting RadGrid to excel but that label value is not coming in footer.
As i have another Bound Column in which i am also showig footer that  column's footer value is exporting well.but not my template column.
where i am doing wrong pls correct me
Shubham
Top achievements
Rank 1
 answered on 20 Feb 2014
3 answers
190 views
hi
i have a radbutton:

<telerik:RadButton ID="btnRegisterOrder" runat="server" Height="65px"
                                                            Text="ثبت سفارش" Width="160px" Font-Size="Large"><Icon PrimaryIconUrl="images/iconIco/accept.ico"  /></telerik:RadButton>

and this button will updated in radajaxmanager:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
                     <telerik:AjaxSetting AjaxControlID="btnAddToList">
              <UpdatedControls>
                  <telerik:AjaxUpdatedControl ControlID="RadFileExplorer2" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="imgfront"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="imgback"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="imgfrontfilm"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="imgbackfilm"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="hfClientFileSelectForNewOrder"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="hdnImg1"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="hdnImg2"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="hdnImg3"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="hdnImg4"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="RadGrid7"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="btnRegisterOrder"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="radnotification1"></telerik:AjaxUpdatedControl>
              </UpdatedControls>
               
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="radToolBarFilterInvoices">
              <UpdatedControls>
                   
                  <telerik:AjaxUpdatedControl ControlID="RadGrid3" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="RadWindow1"></telerik:AjaxUpdatedControl>
                              
              </UpdatedControls>
           
          </telerik:AjaxSetting>
          <telerik:AjaxSetting AjaxControlID="radgrid3">
              <UpdatedControls>
                   
                  <telerik:AjaxUpdatedControl ControlID="RadGrid3" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                              
              </UpdatedControls>
           
          </telerik:AjaxSetting>
           
      </AjaxSettings>
       
  </telerik:RadAjaxManager>

after update, the button not working.
Viktor Tachev
Telerik team
 answered on 20 Feb 2014
5 answers
1.4K+ views
C# .NET 3.5

Telerik.Web.UI, Version=2008.3.1125.35


I have a frequent need to be able to hide some columns in a grid on display, but have them available on export and hide others on export. Thus far I've had no luck in being able to do all three. The show on export of the columns we hide for display is the piece that's not working for me.

I have in the ItemCreated command the hide columns code

 
                // hide columns  
                string myColumnsToHide = myDatabaseAccess.v2_sp_application_configuration_matrix_get_value("manage_spoc_matrix""HideOnDisplayResults_RadGrid1");  
                foreach (Telerik.Web.UI.GridColumn myColumn in RadGrid1.MasterTableView.RenderColumns)  
                {  
                    if (myColumnsToHide.ToLower().Contains("|" + myColumn.UniqueName.ToLower() + "|"))  
                    {  
                        myColumn.Display = false;  
                    }  
                } 

and in the ItemCommand for the export piece the code to show the prev hidden columns then hide addional ones from the export

 
                    // show columns we hid for display  
                    string myColumnsToShow = myDatabaseAccess.v2_sp_application_configuration_matrix_get_value("manage_spoc_matrix""HideOnDisplayResults_RadGrid1");  
                    foreach (Telerik.Web.UI.GridColumn myColumn in RadGrid1.MasterTableView.RenderColumns)  
                    {  
                        if (myColumnsToShow.ToLower().Contains("|" + myColumn.UniqueName.ToLower() + "|"))  
                        {  
                            myColumn.Display = true;  
                        }  
                    }  
 
                    // then hide any coulmns we don't want on export  
                    string myColumnsToHide = myDatabaseAccess.v2_sp_application_configuration_matrix_get_value("manage_spoc_matrix""HideOnExport_RadGrid1");  
                    foreach (Telerik.Web.UI.GridColumn myColumn in RadGrid1.MasterTableView.RenderColumns)  
                    {  
                        if (myColumnsToHide.ToLower().Contains("|" + myColumn.UniqueName.ToLower() + "|"))  
                        {  
                            myColumn.Display = false;  
                        }  
                    } 

The hide on display works. The hide of the additional columns on export works. But I can't seem to show on export the columns we hid for display purposes. It seems the ItemCreated event is exercised multiple times (as far as I can tell 1x before and 2x after) when invoking the ItemCommand function.

Any suggestions on how to show on export the columns we want hidden on display?

Thanks!
Princy
Top achievements
Rank 2
 answered on 20 Feb 2014
3 answers
106 views
Hi there,

We use the RadRibbon control on a popup window (like when you select "new mail" in Office Outlook).

Some of the last menu groups are all the way to the right side of the popup, and when you hoover over them a tooltip is displayed.

But this tooltip is too wide, and causes the popup window to have scrollbars (when tooltip is visible)

Isnt it possible to have the tooltips align to the right or maybe even better - to align to til right side of the visible browser area as a maximum ?

It makes NO sense to have a tooltip, that is not readable as its outside of the visible browser area.

See the screenshot.


Cheers,
Tony Fonager
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2014
1 answer
84 views
Hello,

I've noticed that pivot grid filter window displays relative to the pivot grid. I want to set the filter window on the center of the browser window. I've tried set_left,set_top client side functions with filter window OnClientShow event but it didn't work. Provide me with a code sample to achieve this. 

Thanks and Regards,
Yohan
Venelin
Telerik team
 answered on 20 Feb 2014
2 answers
60 views
Hi 

I am getting and exception "cannot order by type" after i try to sort my linq statement .

after this i populate it to a gridview.

var data = from d in db.TransactionMessages
                       where d.TransactionMessage1.Contains("POS - ") 
                       orderby d
                       select d.TransactionMessage1;

Grant
Grant
Top achievements
Rank 1
 answered on 20 Feb 2014
3 answers
169 views
Hi,

I have two different appointments like "Planned Date", "Approved date" in a row. Sometimes, both will fall on the same day/month.
In such case i would like to show only one i.e."Approved date" alone. So, I have set the visibility of the "Planned date" as false in those cases. This works fine.
But when i change the "Planned date" to some other day, then "AppointmentInsert" is getting called instead of "AppointmentUpdate" event. because of that, i am able to a "planned date" slot two times in that row itself.(since insert event is getting called). Can somebody suggest a solution?

Thanks,
Farjana
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2014
4 answers
641 views
Hi,
I have this grid:

<asp:updatepanel runat="server">
        <ContentTemplate>
        <telerik:RadGrid ID="actGrid" runat="server" AllowFilteringByColumn="True"
            AllowSorting="True" CellSpacing="0" CssClass="gridBlock" GridLines="None"
                AutoGenerateColumns="false" AllowPaging="true" ShowHeader="True">
            <ClientSettings>
            <%--<ClientEvents OnCellSelected="OnRowSelection"/>--%>
            <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView TableLayout="Fixed" PageSize="5">
                <Columns>
                    <telerik:GridBoundColumn ItemStyle-Font-Bold="true" DataField="Description"/>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        </ContentTemplate>
        </asp:updatepanel>



I'm trying to add an event to update other elements (checkboxes and textboxes) in the page on row selection using the ClientEvents OnCellSelected (I've commented it), but when I uncomment this part of code I cannot select any rows anymore and no event is firing.

Any suggestions?

Thx










Fousto
Top achievements
Rank 1
 answered on 20 Feb 2014
1 answer
124 views
Hello Telerik Team,

I got a question, I've been trying to change or remove the tooltip that is related with the "GoToPageLinkButton" but I cannot find where o how do I do that, Obviusly the first thing I did was try to change or find it in the RadGrid.Main.Resx but there's no such resource, in that file I changed the other tool tips related with the grid and It worked fine,   I have changed the culture to "es-MX" in the grid when I créate it, also  in the Global.asax at the Star event, and even in the Web.config  but havent been successful , could u please help me with this issue, I attached the sceen shot , so I can be more clear.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2014
3 answers
140 views
Hi Team,

We use Telerik Web UI DLL, Version 2009:2:826:35.

We use RadComboBox control to select/type values from dropdownlist. The SelectedIndexChanged event is not getting triggered in IE9, but works fine in lower versions of IE. Kindly let us know if we need to download newer version of the DLL or anything else needs to be changed.

Code snippet used:

<telerik:RadComboBox MaxLength="6" runat="server" ID="RadComboBoxMappingType" DataTextField="LookUpvalue"
DataValueField="LookupTypeID" AutoPostBack="true" AllowCustomText="true" AppendDataBoundItems="true"
Visible="false" Width="100px" OnSelectedIndexChanged="RadComboBoxMappingType_SelectedIndexChanged">
<Items>
<telerik:RadComboBoxItem Text="TypeID/select" Value="0" Selected="true"></telerik:RadComboBoxItem>
</Items>
</telerik:RadComboBox>
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?