Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
46 views
<telerik:RadGrid ID="rgCTProcessing" runat="server" OnNeedDataSource="rgCTProcessing_NeedDataSource"
           CellSpacing="0" GridLines="None" OnDetailTableDataBind="rgCTProcessing_DetailTableDataBind"
           OnItemCommand="rgCTProcessing_ItemCommand" OnUpdateCommand="rgCTProcessing_UpdateCommand"
           OnItemDataBound="rgCTProcessing_ItemDataBound" OnItemCreated="rgCTProcessing_ItemCreated">
           <MasterTableView AutoGenerateColumns="False" HierarchyDefaultExpanded="true" EditMode="InPlace"
               Name="Master" HierarchyLoadMode="Client" DataKeyNames="AuditCustomerId,ProcessId,CustConfigId,SiteID">
               <DetailTables >
                   <telerik:GridTableView runat="server" AutoGenerateColumns="false" Name="Detail1" Width="100%"
                       DataMember="Detail1">
                       <CommandItemSettings ExportToPdfText="Export to PDF" />
                       <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                           <HeaderStyle Width="20px" />
                       </RowIndicatorColumn>
                       <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                           <HeaderStyle Width="20px" />
                       </ExpandCollapseColumn>
                       <Columns>
                           <telerik:GridBoundColumn DataField="FileName" FilterControlAltText="Filter FileName column"
                               HeaderText="FileName" UniqueName="FileName">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="TimeReceived" FilterControlAltText="Filter TimeReceived column"
                               HeaderText="TimeReceived" UniqueName="TimeReceived">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="ExpiredDate" FilterControlAltText="Filter ExpiredDate column"
                               HeaderText="ExpiredDate" UniqueName="ExpiredDate" DataFormatString="{0:d}">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="SiteProcessType" FilterControlAltText="Filter ProcessType column"
                               HeaderText="ProcessType" UniqueName="SiteProcessType">
                           </telerik:GridBoundColumn>
                      
                           <telerik:GridTemplateColumn HeaderText="" HeaderStyle-Width="120px" UniqueName="ViewSample"
                               AllowFiltering="false">
                               <ItemTemplate>
                                   <telerik:RadButton ID="rbViewFileSpecs" runat="server" Text="View File Specs" OnClick="rbFileSpecs_Click">
                                   </telerik:RadButton>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridTemplateColumn HeaderText="" HeaderStyle-Width="120px" UniqueName="ViewSample"
                               AllowFiltering="false">
                               <ItemTemplate>
                                   <telerik:RadButton ID="rbViewSample" runat="server" Text="View Sample" OnClick="rbViewSample_Click">
                                   </telerik:RadButton>
                               </ItemTemplate>
                           </telerik:GridTemplateColumn>
                           <telerik:GridBoundColumn DataField="PageID" FilterControlAltText="Filter PageID column"
                               ReadOnly="false" HeaderText="PageID" UniqueName="PageID" Visible="false">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="ObjID" FilterControlAltText="Filter ObjID column"
                               ReadOnly="false" HeaderText="ObjID" UniqueName="ObjID" Visible="false">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="IsZipped" FilterControlAltText="Filter IsZipped column"
                               ReadOnly="false" HeaderText="IsZipped" UniqueName="IsZipped" Visible="false">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn DataField="Designator" FilterControlAltText="Filter Designator column"
                               ReadOnly="false" HeaderText="Designator" UniqueName="Designator" Visible="false">
                           </telerik:GridBoundColumn>
                   
                       </Columns>
                       <EditFormSettings>
                           <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                           </EditColumn>
                       </EditFormSettings>
                   </telerik:GridTableView>
               </DetailTables>
               <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
               <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                   <HeaderStyle Width="20px"></HeaderStyle>
               </RowIndicatorColumn>
               <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                   <HeaderStyle Width="20px"></HeaderStyle>
               </ExpandCollapseColumn>
               <Columns>
                   <telerik:GridBoundColumn DataField="ProcessName" FilterControlAltText="Filter ProcessName column"
                       HeaderText="ProcessName" UniqueName="ProcessName" ReadOnly="true">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="LastSuccessfulProcessDateTime" FilterControlAltText="Filter LastSuccessfulProcessDateTime column"
                       HeaderText="LastSuccessfulProcessDateTime" UniqueName="LastSuccessfulProcessDateTime"
                       ReadOnly="true">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="InstalledDate" FilterControlAltText="Filter InstalledDate column"
                       ReadOnly="true" HeaderText="InstalledDate" UniqueName="InstalledDate">
                   </telerik:GridBoundColumn>
                   <telerik:GridDateTimeColumn DataField="ExpiredDate" FilterControlAltText="Filter ExpiredDate column"
                       HeaderText="ExpiredDate" UniqueName="ExpiredDate" DataType="System.DateTime"
                       PickerType="DatePicker" DataFormatString="{0:d}">
                   </telerik:GridDateTimeColumn>
                   <telerik:GridEditCommandColumn UniqueName="ExpireDateEditBtn" FilterControlAltText="Filter EditCommandColumn column"
                       ButtonType="ImageButton">
                   </telerik:GridEditCommandColumn>
                   <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Status column"
                       ReadOnly="true" HeaderText="Status" UniqueName="Status">
                   </telerik:GridBoundColumn>
             
                   <telerik:GridTemplateColumn HeaderText="" UniqueName="View Notifications Sent"
                       AllowFiltering="false">
                       <ItemTemplate>
                           <telerik:RadButton ID="rbVieNotiSent" runat="server" Text="View Notifications Sent"
                               OnClick="rbVieNotiSent_Click">
                           </telerik:RadButton>
                       </ItemTemplate>
                   </telerik:GridTemplateColumn>
                   <telerik:GridBoundColumn DataField="Designator" FilterControlAltText="Filter Designator column"
                       ReadOnly="true" HeaderText="Designator" UniqueName="Designator" Visible="false">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="AuditCustomerID" FilterControlAltText="Filter AuditCustomerID column"
                       ReadOnly="true" HeaderText="AuditCustomerID" UniqueName="AuditCustomerID" Visible="false">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataField="ProcessId" FilterControlAltText="Filter ProcessId column"
                       ReadOnly="true" HeaderText="ProcessId" UniqueName="ProcessId" Visible="false">
                   </telerik:GridBoundColumn>
                   <telerik:GridButtonColumn DataTextField="ProgramId" FilterControlAltText="Filter ProgramId column"
                       HeaderText="ProgramId" UniqueName="ProgramId" Visible="false">
                   </telerik:GridButtonColumn>
                   <telerik:GridBoundColumn DataField="PageID" FilterControlAltText="Filter PageID column"
                       ReadOnly="true" HeaderText="PageID" UniqueName="PageID" Visible="false">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter CustConfigId column" DataField="CustConfigId"
                       ReadOnly="true" HeaderText="CustConfigId" UniqueName="CustConfigId" Visible="false">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter SiteNum column" DataField="SiteID"
                       ReadOnly="true" HeaderText="SiteID" UniqueName="SiteID" Visible="false">
                   </telerik:GridBoundColumn>
               </Columns>
               <EditFormSettings>
                   <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                   </EditColumn>
               </EditFormSettings>
           </MasterTableView>
           <FilterMenu EnableImageSprites="False">
           </FilterMenu>
           <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
           </HeaderContextMenu>
       </telerik:RadGrid>
when use IE 8 but have compability view checked as Yes, when mouse pointing to "View Notification Sent" button on the master table , the "View Sample" button and "View File Spec" button on the detail table disappears . This works fine use IE 8 but leave compatibility off, as long as have browser comability on, the button on the detail table disappears when mouse pointing to "View Notification Sent" button . If the template bounds to a regular button instead of radbutton, no issue.

Please help!!!
JJ
Top achievements
Rank 1
 answered on 11 Dec 2012
1 answer
69 views
When I applied Skin="metro" , the arrows between Listbox crashed! (I attached image)

How I can Fix this?

i'm using this version Telerik.Web.UI_2012_2_724_Dev_hotfix

regards
Nencho
Telerik team
 answered on 11 Dec 2012
6 answers
213 views
Is there a way to control the row height in the weekly view of the scheduler?  I know you can control the number of minutes per row, and the time label row span, but if I am going to use this control in my application, I need to be able to shrink the size of the rows.

Is this possible?  I havent seen it in any of the examples.

Thank you.
Boyan Dimitrov
Telerik team
 answered on 11 Dec 2012
4 answers
77 views
1. Is it possible to have labels below each column like in this fashion. I looked at the example here, but I want a label each column. Each column is a different datafield that only occurs once, like in the example I linked. 

2. Is it possible to make the line on a line series thicker? 
DuelingCats
Top achievements
Rank 2
 answered on 11 Dec 2012
2 answers
60 views
I've just been reading about the RadGrid AllowKeyboardNavigation property and trying it out.

Given the nature of most programs, I think it safe to say that most people navigate with a combination of keys and mouse clicks.

I'm testing a RadGrid in which key navigation is enabled, and which has a standard template popup editing arrangement.  

Given such a set up, I'm a little confused.  If I open a record for editing through the keyboard I can close the popup with the Esc key.

If I open the record with a mouse click on the Edit column link, the Esc key has no effect.

I find this a bit inconsistent.   

What would be the best way to insure the Esc key always closes the popup?
Boris
Top achievements
Rank 1
 answered on 11 Dec 2012
3 answers
117 views
For RadComboBoxes with CheckBoxes=true, when a RadComboBoxItem is added via client code (as indicated here: http://www.telerik.com/help/aspnet-ajax/combobox-items-client-side-code.html), the OnClientItemChecked event does not fire when the new RadComboBoxItem is checked.  Is this by design? If so, is there some sort of workaround? 
Nencho
Telerik team
 answered on 11 Dec 2012
3 answers
140 views
I have a master page containing a Treeview used as a menu, and a content area for the site pages. One site page has a summary-style RadGrid at the top of the page, and then a tabstrip with a Multiview. Each PageView contains a user control with the content for that PageView. I am unable to get the correct ajax behavior.

When I follow what I understand to be Telerik's guidance and list the tabview and multipage each as ajax initiators and updated controls, client-side validation breaks in all the page views. I could live with that, but one of the page view user controls contains a RadEditor, and whatever breaks the client-side validation also results in updated editor content not being saved when the rest of the page data is saved. Watching the server-side validation function for the custom validator assigned to the RadEditor always shows the original editor content and never shows the updated content. Maybe some necessary Javascript for the editor content retrieval is breaking, along with the client-side validation javascript? The client-side validation breaks in IE, Firefox and Chrome. The failure to update the RadEditor content only happens in IE.
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyTopic" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadTabStripTopic">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStripTopic" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPageTopicSubforms" LoadingPanelID="RadAjaxLoadingPanel_Topic" />
                <telerik:AjaxUpdatedControl ControlID="userMessageDisplay" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadMultiPageTopicSubforms">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStripTopic" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPageTopicSubforms" LoadingPanelID="RadAjaxLoadingPanel_Topic" />
                <telerik:AjaxUpdatedControl ControlID="RadGridTopic" />
                <telerik:AjaxUpdatedControl ControlID="userMessageDisplay" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

If I remove the RadAjaxManagerProxy and instead surround the page's content with an AspPanel, client-side validation resumes working. Since the user controls on each PageView contain RadGrid controls, I need to ajaxify each of the user controls individually. That works- the client-side validation works, and the user control with the RadEditor successfully saves the updated editor content.

But since each user control is now individually ajaxified, the main page's summary RadGrid does not get updated when it should. Each user control raises an update event which is handled by the main page. I tried dynamically adding an ajax update for the summary RadGrid, but I get an internal error in Telerik Javascript when the code executes. This is the update event handler on the main page, which tries to assign the desired AjaxSetting. The rest of the event handler performs the appropriate updates to the main page's summary RadGrid, but the .AddAjaxSetting throws an internal exception.
protected void TopicTabForm_AfterUpdate(object sender, EventArgs e)
{
     RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
     ajaxManager.AjaxSettings.AddAjaxSetting(sender as Control, this.RadGridTopic);

Is there any way to force a control on the main page to update it's display like this? Or is there any better approach to ajaxifying a tabstrip containing user controls with RadGrids?
Angel Petrov
Telerik team
 answered on 11 Dec 2012
6 answers
516 views
I have written about  this subject before, but I have found a hack on how to call the c# code behind from javascript and when I do that, and call rebind from the c#, the grid is not rebinding. Here is what I am doing:

I have a grid and button outside the grid which creates a modal radwindow to generate a wizard to create users. When the wizard completes and the window closes, I have a javascript function to handle the window close and in that function, I have one line which clicks a hidden button so that the onclick server call for that button can get called automatically. The call gets called, and in that call all I have is a rebind. It runs according to my debugger, but the grid does not refresh. The users do get generated becasue if I then click the refresh button the grid refreshes.

 I have a radajaxmanager set up so that the button controls the grid.(the hidden button is called myServerButton. here is my code:

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" >
       <ClientEvents OnRequestStart="centerUpdatePanel();"></ClientEvents>
       
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="myServerButton">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="WizardButton">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="TopGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="TopGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="CompanyInfoGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="usersGrid">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="TextBoxOrderDetailID" />
                            <telerik:AjaxUpdatedControl ControlID="CompanyInfoGrid" />
                            <telerik:AjaxUpdatedControl ControlID="usersGrid" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
    </telerik:RadAjaxManager>

.........  
<asp:Button ID="myServerButton" runat="server" style="display:none;"  OnClick="rebindUsers"  />

  <telerik:RadGrid ID="usersGrid" runat="server"
       DataSourceID="ContentCentralUsers" GridLines="None" Skin="Office2007" AutoGenerateColumns="False"
            ondatabound="usersGrid_DataBound" onitemdatabound="usersGrid_ItemDataBound"   OnItemCreated="usersGrid_ItemCreated"
            onitemevent="usersGrid_ItemDataBound" oniteminserted="usersGrid_ItemInserted" onitemupdated="usersGrid_ItemUpdated"
            ShowStatusBar="True" OnPreRender="usersGrid_PreRender" oninsertcommand="usersGrid_InsertCommand" OnItemCommand="usersGrid_ItemCommand"
            onupdatecommand="usersGrid_UpdateCommand"   >
     
       <MasterTableView  DataSourceID="ContentCentralUsers"  DataKeyNames="user_id,package_cd"
             AllowFilteringByColumn="True" AllowSorting="True"   
              InsertItemPageIndexAction="ShowItemOnFirstPage" CommandItemDisplay="Top"
             NoMasterRecordsText="No users to display.">
            <CommandItemSettings AddNewRecordText="Add new user"  />
            
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
   
            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            
   
     <Columns>
.....
<script type="text/javascript">

 function OnClientClose(oWnd) {
        document.getElementById('myServerButton').click(); // clicks hidden button to invoke c# call to rebind users
    }

 function openWin(OrderDetailID) {

        var urlArgs = cbeGetURLArguments();

        var sbOID = parseInt(urlArgs['sbOID']);
        var queryODID = parseInt(urlArgs['sbODID']);
        var sbproductid = parseInt(urlArgs['sbproductid']);
        var SAPID = urlArgs['SAPID'];

        var txtbxODID = document.getElementById('TextBoxOrderDetailID').value;
        var txtbxProduct = document.getElementById('TextBoxProduct').value;
        var licensePrice = document.getElementById('licensePrice').value;
        if (txtbxODID == null)
            sbODID = queryODID;
        else
            sbODID = txtbxODID;


        var windowURL = "v8Wizard_1.aspx?sbODID=" + sbODID + "&sbproductid=" + sbproductid + "&SAPID=" + SAPID +
                 "&lPrice=" + licensePrice + "&email=" + "" + "&ttt=" + "" + "&p_cd=" + "NTB" + "&sbOID=" + sbOID + "&numUsers=&packagePrice=0";

        var oWnd = radopen(windowURL, "RadWindow1");
        oWnd.setSize(900, 550);
        // oWnd.setSize(650, 600);
        oWnd.center();

        //set a function to be called when RadWindow is closed
        oWnd.add_close(OnClientClose);
    }
   
   </script>
......

  protected void rebindUsers(Object sender, EventArgs e)
    {
        usersGrid.Rebind();
       
    }
    
The rebind gets executed, but the grid does not refresh.







Maria Ilieva
Telerik team
 answered on 11 Dec 2012
1 answer
65 views
Hello.

There is a problem with rad telerik editor when using "Flash manager".
after flash file upload, Width and Height are default 150x150.
when I tried to change width and height in editor and Exit+Save, It's changed and everything is ok.
But, Every time I getting into flash manager editor, width and height shows 150x150 by default. even after changing.

Why height and width size did not changes after Save?
Rumen
Telerik team
 answered on 11 Dec 2012
1 answer
40 views
Hi,

I am binding RADGRID in client side with paging on search button click. it is working fine with paging. but when i bind grid again on search button click, the page index not reset..

So, i tried to reset the current page index using set_currentPageIndex(0) property.. But it recalls the bind function again and all the data does wrong.


 masterGrd.set_currentPageIndex(0);

Even i tried to rebind function but that too not worked.

 masterGrd.set_currentPageIndex(0);<br><span style="font-size: 13.63636302947998px;">masterGrd</span>.rebind();
Vasil
Telerik team
 answered on 11 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?