Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
Hi,

I'm very new to the telerik controls so assume I know nothing when answering this question. =)

I have a dataset that takes a long time to populate.  Let's say it takes 30 seconds.  Once this data is populated, I want the user to be able to filter, sort, etc. but every time the filter is changed, it goes to the database and spends 30 seconds retrieving the data all over again.  I should mention that I am using the NeedDataSource function to populate the data, because when I did simple binding, I could not get the filtering to work at all.

Am I missing something basic?  Shouldn't there be a way to apply a filter to the grid that doesn't require another pass at the database?

Thanks in advance,

Chris
Mark Galbreath
Top achievements
Rank 2
 answered on 26 Feb 2010
3 answers
140 views
Hi

The web application has a page in which all the controls are dynamically loaded. A RadTabStrip and RadMultiPage act as the place holders for the controls. One of the tabs has listboxes which have some render issues i.e. after a postback the list box controls flicker (or) disappear completely. If I change focus i.e go to another tab and comeback to the tab which has the list boxes , they show up.

 Please advice on how to resolve this issue?

Thanks
Kiran 
Yana
Telerik team
 answered on 26 Feb 2010
6 answers
276 views
Hi there,

I've got a problem with a RadGrid in a RadDock.
I already read some threads in the community an in the Knowledge Base:
http://www.telerik.com/support/kb/aspnet-ajax/dock/placing-radgrid-in-a-dockable-object.aspx

The thing is, that the RadGrid is already displayed in the RadDock.
I would like to use additional attributes for the RadGrid. First of all here the code:
<telerik:RadDockLayout EnableAjaxSkinRendering="true" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true" EnableViewState="true" runat="server" Visible="true"> 
<telerik:RadDockZone runat="server" ID="RadDockZone3" Orientation="Vertical" Skin="Office2007" Width="100%"> 
<telerik:RadDock ID="RadDock_abwesenheit" Title="Abwesenheiten" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedSkins="true" runat="server" 
                    DockMode="Docked" EnableDrag="false" DefaultCommands="None"> 
<TitlebarTemplate>       
<div id="div_master_top_left" style="z-index: 100"> 
Abwesenheiten 
  </div> 
  <div id="div_master_top_right" style="z-index: 101"> 
    <table width="100%"> 
      <tr align="center"> 
        <td align="center"> 
          <asp:LinkButton ID="adFav" runat="server" CssClass="content_element" ForeColor="Black" 
            Style="text-align: center; margin-top: 15px;" Text='<img style="border:0px;vertical-align:middle; text-align:center; " alt="" src="..\images\AddFav.gif" /> Zu Favoriten' 
            meta:resourcekey="adFavResource1"></asp:LinkButton> 
        </td> 
      </tr> 
    </table> 
  </div> 
 </TitlebarTemplate> 
<ContentTemplate> 
  <%-- Grid --%> 
    <telerik:RadGrid ID="Grid_Rad" runat="server"  
        DataSourceID="ObjectDataSource_Abwesenheiten" GridLines="Both"  
        meta:resourcekey="Grid_RadResource1" AutoGenerateColumns="False" Width="100%"> 
 
       <HeaderContextMenu EnableTheming="True"> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
      </HeaderContextMenu> 
      <GroupPanel ID="GroupPanel" Text="Gruppierungsfl&#228;che"> 
      </GroupPanel> 
      <ExportSettings FileName="Abwesenheit" OpenInNewWindow="True"> 
        <Pdf PaperSize="A4" PageHeight="210mm" PageWidth="297mm" /> 
      </ExportSettings> 
      <MasterTableView DataKeyNames="hr_m_abwesenheit_id" DataSourceID="ObjectDataSource_Abwesenheiten" 
        NoDetailRecordsText="Keine Daten vorhanden."  
            NoMasterRecordsText="Keine Daten vorhanden."> 
 
        <RowIndicatorColumn> 
          <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
          <HeaderStyle Width="20px" /> 
        </ExpandCollapseColumn> 
        <Columns> 
            <%-- a lot of columns.... --%> 
        </Columns> 
        <CommandItemTemplate> 
          <div style="padding: 10px 0px; float: left"> 
            <asp:LinkButton ID="btnInitInsert" runat="server" CommandName="InitInsert" Visible='<%# (not (Grid_Rad.MasterTableView.IsItemInserted) and Grid_Rad.EditIndexes.Count = 0) and _allow_new %>' 
              Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\AddRecord.gif&quot; /&gt; Hinzuf&#252;gen' 
              meta:resourcekey="btnInitInsertResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" CausesValidation="False" 
              Visible='<%# (Grid_Rad.EditIndexes.Count = 0 xor Grid_Rad.MasterTableView.IsItemInserted) and _allow_edit %>' 
              Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\Edit.gif&quot; /&gt; Ausgew&#228;hlte Daten bearbeiten ' 
              meta:resourcekey="btnEditSelectedResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btnEditAll" runat="server" CommandName="EditAll" CausesValidation="False" 
              Visible='<%# (Grid_Rad.EditIndexes.Count = 0 xor Grid_Rad.MasterTableView.IsItemInserted) and _allow_edit %>' 
              Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\Edit.gif&quot; /&gt; Alle Daten bearbeiten ' 
              meta:resourcekey="btnEditAllResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# Grid_Rad.EditIndexes.Count > 0 %>' 
              Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\Update.gif&quot; /&gt; Speichern ' 
              meta:resourcekey="btnUpdateEditedResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btnDelete" OnClientClick="javascript:return confirm(document.getElementById('txt_delete_message').value)" 
              runat="server" Visible='<%# (Grid_Rad.EditIndexes.Count = 0) and _allow_del %>' 
              CommandName="DeleteSelected" CausesValidation="False" Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\Delete.gif&quot; /&gt; Ausgew&#228;hlte Daten l&#246;schen ' 
              meta:resourcekey="btnDeleteResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" CausesValidation="False" 
              Visible='<%# Grid_Rad.EditIndexes.Count > 0 xor Grid_Rad.MasterTableView.IsItemInserted %>' 
              Text=' &lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\Cancel.gif&quot; /&gt; Abbrechen ' 
              meta:resourcekey="btnCancelResource1"></asp:LinkButton> 
          </div> 
          <div style="padding: 10px 10px; float: right"> 
            <asp:LinkButton ID="btn_Excel" runat="server" OnClick="btn_Excel_Click" Text='&lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\xls.gif&quot; /&gt; Excel' 
              CausesValidation="False" meta:resourcekey="btn_ExcelResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btn_Word" runat="server" OnClick="btn_Word_Click" Text='&lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\doc.gif&quot; /&gt; Word' 
              CausesValidation="False" meta:resourcekey="btn_WordResource1"></asp:LinkButton> 
            <asp:LinkButton ID="btn_pdf" Visible="False" runat="server" OnClick="btn_pdf_Click" 
              Text='&lt;img style=&quot;border:0px;vertical-align:middle;&quot; alt=&quot;&quot; src=&quot;..\RadControls\Skins\Office2007\Grid\pdf.gif&quot; /&gt; PDF' 
              CausesValidation="False" meta:resourcekey="btn_pdfResource1"></asp:LinkButton> 
          </div> 
        </CommandItemTemplate> 
        <EditFormSettings> 
          <EditColumn UniqueName="EditCommandColumn1"> 
          </EditColumn> 
        </EditFormSettings> 
      </MasterTableView> 
      <ClientSettings> 
        <Scrolling ScrollHeight="415px" AllowScroll="True" UseStaticHeaders="true" /> 
      </ClientSettings> 
      <FilterMenu EnableTheming="True"> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
      </FilterMenu> 
    </telerik:RadGrid> 
    <%--      </telerik:RadAjaxPanel>--%> 
    <!-- Grid DataSource --> 
    <asp:ObjectDataSource ID="ObjectDataSource_Abwesenheiten" runat="server" OldValuesParameterFormatString="original_{0}" 
      SelectMethod="Get_Data_Abwesenheit" TypeName="ProcessHRClassLibrary.BLL_Grundlagen"> 
      <SelectParameters> 
        <asp:SessionParameter Name="mandant_id" SessionField="hr_c_mandant_id" Type="Int32" 
          DefaultValue="" /> 
      </SelectParameters> 
    </asp:ObjectDataSource> 
    <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" Height="75px" Transparency="40" 
      BackColor="#C3DAF9" Width="75px" meta:resourcekey="LoadingPanel1Resource1"> 
    </telerik:RadAjaxLoadingPanel> 
    <asp:ObjectDataSource ID="ObjectDataSource_Mandant" runat="server" OldValuesParameterFormatString="original_{0}" 
      SelectMethod="Get_Data_Mandant_without_own" TypeName="ProcessHRClassLibrary.BLL_Grundlagen"> 
      <SelectParameters> 
        <asp:SessionParameter Name="_mandant_id" SessionField="hr_c_mandant_id" Type="Int32" /> 
      </SelectParameters> 
    </asp:ObjectDataSource> 
    <asp:HiddenField ID="hid_mn_id" runat="server" /> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" meta:resourcekey="RadAjaxManager1Resource1"> 
    </telerik:RadAjaxManager> 
  <%-- </div> --%> 
   
  </ContentTemplate> 
  </telerik:RadDock> 
  </telerik:RadDockZone> 
  </telerik:RadDockLayout> 

I am sorry about the unformated code.....
The problem is at the top after the <telerik:RadGrid- tag.
Here we have the following lines:
       <HeaderContextMenu EnableTheming="True"> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
      </HeaderContextMenu> 
      <GroupPanel ID="GroupPanel" Text="Gruppierungsfl&#228;che"> 
      </GroupPanel> 
      <ExportSettings FileName="Abwesenheit" OpenInNewWindow="True"> 
        <Pdf PaperSize="A4" PageHeight="210mm" PageWidth="297mm" /> 
      </ExportSettings> 

These lines of code are not working.... In fact a lot of properties of a usually RadGrid are not working correctly. For example the user is not able so select one or more lines.
I already tried a lot of ways to fix this problem, but now I don't have an other idea.

Yours sincerely
321 a
Top achievements
Rank 1
 answered on 26 Feb 2010
4 answers
274 views
I am not sure how to fine tune this, but it seems to me like it should be rather simple.  I have a RadComboBox on my page that only has two possible values:
<telerik:RadComboBox ID="list_ApplicationType" Runat="server" Skin="Windows7"  
                        Width="170px" OnClientSelectedIndexChanged="AppTypeChanged"> 
                        <Items> 
                            <telerik:RadComboBoxItem runat="server" Selected="True" Text="Individual"  
                                Value="Individual" /> 
                            <telerik:RadComboBoxItem runat="server" Text="Joint" Value="Joint" /> 
                        </Items> 
                    </telerik:RadComboBox> 


When the user changes it to "Joint" I want the asp panel named 'CoApplicant' to become visible.  If changed back, then hide again.  Here is my javascript code which is not working:
When the user changes it to "Joint" I want the asp panel named 'CoApplicant' to become visible.  If changed back, then hide again.  Here is my javascript code which is not working:

<script language="javascript" type="text/javascript"> 
                <!-- 
 
             function AppTypeChanged(sender, eventArgs) { 
                 var item = eventArgs.get_item(); 
 
                 if (item.get_value() == "Joint") { 
                        ($find("panel_CoApplicant")).visible = true; 
                        //(document.getElementById("panel_CoApplicant")).visible = false; 
                    } 
                 else { 
                        (document.getElementById("panel_CoApplicant")).visible = false; 
                    } 
 
                } 
                 
                // -->             
            </script> 

How do I hide that panel based on the selection?


robertw102
Top achievements
Rank 1
 answered on 26 Feb 2010
1 answer
104 views
Hi,
I am evaluating the product before purchasing it.
I encountered memory exception in some scenarios.
1) when I tried to paste from word (4 pages ). this action paste the content but soon after pasting it gives memory exception.
2) when i inserted some field(like button, drop down) and after that i tried to delete that button or drop down the same exception is coming.

Even I tried same on the site in the demo section I encountered with same problem, even on different machines this error can be reproduce.
please find attached screenshot of that error with it.
Rumen
Telerik team
 answered on 26 Feb 2010
2 answers
110 views
Hi,
1 Scenario: We have added the Button on the Rad Editor. We have integrated this Rad editor with our ASP.net application. When we run our application, editor window get opened and if try to insert button it is throwing memory exception.
2 Scenario: When we try to paste the word document contents in the Rad Editor same exception popup comes out.
I have attached the screenshot for your reference,
Could you plz help me out on this? Thanks in advance.
Rumen
Telerik team
 answered on 26 Feb 2010
1 answer
81 views
Hi,
I have a RadCalendar (Multiview  (col:4,row:3)) and I have set ShowOtherMonthDays="false".

On OnDayRender event these days are still rendered.

Is there any code which I can use onDayRender in order to avoid rendering otherMonthDays for MultiView RadCalendar?

Thanx a lot!!!
Radoslav
Telerik team
 answered on 26 Feb 2010
1 answer
76 views
Hi,

    I have one issue with new new radcontrol listbox, it is not uploading item info:  code snapshot like below:-

aspx file

 

<telerik:RadListBox runat="server" ID="RadListBox1" AutoPostBack="True" Width="190px"

 

 

Height="200px" OnSelectedIndexChanged="RadListBox1_SelectedIndexChanged" OnDeleted="RadListBox1_Deleted"

 

 

OnDeleting="RadListBox1_Deleting" OnInserted="RadListBox1_Inserted" OnInserting="RadListBox1_Inserting"

 

 

OnTransferred="RadListBox1_Transferred" OnTransferring="RadListBox1_Transferring"

 

 

TransferToID="RadListBox2" AllowTransfer="true" AllowTransferAll="true" AutoPostBackOnTransfer="true"

 

 

DataKeyField="email" DataTextField="name" SelectionMode="Multiple">

 

 

<Items>

 

</Items>

 

 

 

 

 

 

 

 

</telerik:RadListBox>

 



cs file: has the following code:-

RadListBox1.DataSource = list;

RadListBox1.DataTextField =

"name";

 

RadListBox1.DataValueField =

"email";

 

RadListBox1.DataBind();


Any help will be appricaited.

Regards,
Satya
Yana
Telerik team
 answered on 26 Feb 2010
1 answer
127 views
Hi, I have a page loading some radcharts dinamically.
I'm using javascript SetInterval to refresh the charts every 30 seconds by callback.
The series values in the radchart object are updated but the image of chart is not updated, someone has an example to help me?

thanks
Robson

Giuseppe
Telerik team
 answered on 26 Feb 2010
1 answer
114 views
I have a radcalendar that has EnableMultiSelect="true" and UseColumnHeadersAsSelectors="true". When a user clicks on the column header, I need to know if the click is going to select or deselect the dates. OnDateClick event has a get_isSelected() method I can use to determine if the clicked date is selected or not selected. Similarly, I want to know if the column header click is to select or deselect the respective dates.

Thank you,
Vithiya
Radoslav
Telerik team
 answered on 26 Feb 2010
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?