Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
362 views

I have multiple radgrids on a single page. I have roughly 15 columns in one. Only 3 of the columns are set to display, however when running on my local machine only 2 of them display. In the developer tools of IE9 it shows it is being set as inline display: none. I have not set this and Have set it to display = true in my code with no luck. this is also happening on a two column grid where it is only displaying a single column in the grid. I am unsure of the issue and what is creating this. I have tried running IE in compatibility mode and have also tried different versions of IE.

I have to use IE 9 for this project.

RadGrid Code

<telerik:RadGrid ID="gridSRoster" OnItemDataBound="gridSRoster_ItemDataBound" OnDataBound="gridSRoster_DataBound" runat="server" Skin="Web20" CssClass="dvGridWrapper" Visible="false" BorderStyle="None" OnNeedDataSource="gridSRoster_NeedDataSource">
            <MasterTableView EditMode="InPlace" DataKeyNames="PERSID" AutoGenerateColumns="false" CssClass="autoShrink" Font-Size="10" BorderStyle="Solid">
                <HeaderStyle Font-Bold="true" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Height="15" />
                <AlternatingItemStyle BackColor="#B0C4DE" HorizontalAlign="Center" />
                <Columns>
                    <telerik:GridBoundColumn DataField="PERSID" UniqueName="PERSID" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FNAME" UniqueName="FNAME" Display="true" ItemStyle-HorizontalAlign="Left" HeaderText="Full Name"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="GRADE" UniqueName="GRADE" HeaderText="GRADE"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UPC" UniqueName="UPC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PARA" UniqueName="PARA" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATCH_CODE" UniqueName="ATCH_CODE" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ASGN_UIC" UniqueName="ASGN_UIC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATCH_UIC" UniqueName="ATCH_UIC" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ATTACHED" UniqueName="ATTACHED" Display="false" HeaderText="atch"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DETACHED" UniqueName="DETACHED" Display="false" HeaderText="deta"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TECHCODE" UniqueName="TECHCODE" Display="false" HeaderText="tech"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AGRCODE" UniqueName="AGRCODE" Display="false" HeaderText="agr"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="intRosterID" UniqueName="intRosterID" Display="false"></telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn Display="true" Visible="true" UniqueName="Hide">
                        <ItemTemplate>
                            <asp:LinkButton OnClientClick="return hide();" ID="btnNotIncluded" OnCommand="btnNotIncluded_Command" CommandArgument="<%#Container.ItemIndex %>" runat="server" Text="Hide" Visible="true" OnClick="btnNotIncluded_Click"></asp:LinkButton>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
Pavlina
Telerik team
 answered on 27 Mar 2014
1 answer
76 views
Telerik.CommonInstaller.ProductInfoService.ProductInfoServiceException: Failed to retrieve ValidationVersion.xml from ProductInfoService. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'GetCurrentPackageId' in DLL 'kernel32.dll'.
   at Microsoft.Win32.UnsafeNativeMethods._GetCurrentPackageId(Int32& pBufferLength, Byte[] pBuffer)
   at Microsoft.Win32.UnsafeNativeMethods._IsPackagedProcess()
   at Microsoft.Win32.UnsafeNativeMethods.<.cctor>b__0()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri, String sourceName)
   --- End of inner exception stack trace ---
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.DeserializeRemoteObject[T](String sourceUri, String sourceName)
   at Telerik.CommonInstaller.ProductInfoService.ProductInfoService.get_WebInstallerValidationVersion()
   at Telerik.CommonInstaller.Application.Services.DeprecationService.GetWebInstallerMinVersion()
   at Telerik.CommonInstaller.Application.Services.DeprecationService.CheckWebInstallerDeprecated()
   at Telerik.CommonInstaller.WebInstaller.App.CheckIsDeprecated()
   at Telerik.CommonInstaller.InstallerUIBase.ApplicationBase.OnStartup(StartupEventArgs e)
   at Telerik.CommonInstaller.WebInstaller.App.OnStartup(StartupEventArgs e)
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Vesko
Telerik team
 answered on 27 Mar 2014
1 answer
123 views
Hi Team,
Currently we are using Rad Controls for ASP.NET AJAX Q3 2010. While replacing the classic ASP.Net grid with Telerik Radgrid, we have noticed that the loading of telerik dll is taking around 6 - 7 seconds. Can anyone please confirm whether any performance issue have been reported on Rad Controls for ASP.NET AJAX Q3 2010.
Is there any improvements unloading the telerik dll in latest 2014 Q1 controls.

Thanks,
Suresh
Maria Ilieva
Telerik team
 answered on 27 Mar 2014
14 answers
157 views
We have the RadEditor inside a RadGrid.  When the user adds a new record or edits one, the RadEditor applears to do the work.

Often, when someone firsts enters the site, goes to the page, and brings up the RadEditor, the RadEditor runs off the edge of the page expanding the RadGrid with it.  The text area of the RadEditor is only one line high.  See the attached picture (RadEditor_Error).

However, if the same person goes to another page, and comes back to the page, the RadEditor appears fine from then on.  See attached picture (RadEditor_Good).

We have size settings on the Rad_Editor but this keeps happening.

Could someone please help.

Thank you,

Alex
Ianko
Telerik team
 answered on 27 Mar 2014
6 answers
224 views
I am not able to perform uploads after setting up the upload, view, and initial paths in the page load of the solution.  The file explorer shows the initial path and I am able to navigate folders and select files.  I am using your Telerik example here .  What am I missing?  How can I initiate a download to the .ashx handler file identified in the MappingFile.mapping configuration file?  Thanks in advance.
Vessy
Telerik team
 answered on 27 Mar 2014
1 answer
87 views
Hi Team,

I am using RadDatePicker to filter BoundColumn which gets the Date from the database in string format .

For getting Date from SQL Server , we are getting Date in format as 107 and Date string as "MMM dd,yyyy" .

For example we are getting date string from DB as "Jan 10,2014" . We are using RowFilter on date value selected from RadDatePicker.

But RadDatePicker is not displaying date in format needed that is "MMM dd,yyyy" .It is breaking at "," .

Please suggest way to change displaydateformat of RadDatePicker to "MMM dd,yyyy" to fix this issue.

I tried using 
dtpicker.DateInput.DisplayDateFormat = "MMM dd,yyyy" ;
where dtpicker is ID of RadDatepicker .
It is not working , please suggest a way to fix this .

Regards,
-Dinesh Kotwani
Vasil
Telerik team
 answered on 27 Mar 2014
26 answers
935 views
Hi,

I am trying to implement a load on demand scenario for a RadComboBox but am struggling to get it to work with multi columns and attributes.

Here is the code for my RadComboBox

 <telerik:RadComboBox ID="ddlStudents"  
     EnableViewState="false"  
     runat="server"  
     EnableVirtualScrolling="true"                         
     ShowMoreResultsBox="true"  
     EnableLoadOnDemand="true"  
     OnClientFocus="OnClientFocus"  
     EnableItemCaching="true"  
     HighlightTemplatedItems="true" 
     EmptyMessage="Select a student or start typing their name"  
     ExpandAnimation-Duration="150" 
     IsCaseSensitive="false"  
     CollapseAnimation-Duration="9"  
     Skin="Default"  
     DataValueField="StudentId" 
     DataTextField="CombinedName"  
     ToolTip="Select a student from the drop down list or start typing their name/ID to return only those students matching your criteria." 
     MaxHeight="250px"  
     Width="100%"
                        <HeaderTemplate> 
                            <ul class="RadComboBoxDefault"
                                <li class="RadComboBoxColumn1">Year</li> 
                                <li class="RadComboBoxColumn2">Student</li> 
                                <li class="RadComboBoxColumn3">Status</li> 
                            </ul> 
                            <br style="clear: left" /> 
                        </HeaderTemplate> 
                        <ItemTemplate> 
                            <ul class="RadComboBoxDefault"
                                <li class="RadComboBoxColumn1"
                                    <%# DataBinder.Eval(Container, "Attributes[\"Year\"]")%></li
                                <li class="RadComboBoxColumn2"
                                    <%# DataBinder.Eval(Container, "Attributes[\"CombinedName\"]")%> 
                                </li> 
                                <li class="RadComboBoxColumn3"
                                    <%#DataBinder.Eval(Container, "Attributes[\"StudentStatus\"]") %> 
                                </li> 
                            </ul> 
                            <br style="clear: left" /> 
                        </ItemTemplate> 
                        <WebServiceSettings  Method="GetStudents" Path="TestingPageMethods.aspx" /> 
                    </telerik:RadComboBox> 

And my code-behind:

 [WebMethod] 
    public static RadComboBoxData GetStudents(RadComboBoxContext context) 
    { 
        VList<StudentDTO> data = GetStudents(); 
        if (context.Text != ""
        { 
            data.ApplyFilter(delegate(StudentDTO s) 
            { 
                return s.CombinedName.ToLower().Contains(context.Text.ToLower()); 
            } 
                    ); 
        } 
 
        RadComboBoxData comboData = new RadComboBoxData(); 
 
        int itemOffset = context.NumberOfItems; 
        int endOffset = Math.Min(itemOffset + 100, data.Count); 
        comboData.EndOfItems = endOffset == data.Count; 
 
        List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(endOffset - itemOffset); 
        for (int i = itemOffset; i < endOffset; i++) 
        { 
            RadComboBoxItemData itemData = new RadComboBoxItemData(); 
            itemData.Text = data[i].CombinedName; 
            itemData.Attributes.Add("CombinedName", data[i].CombinedName); 
            itemData.Value = data[i].StudentId; 
            itemData.Attributes.Add("StudentStatus", data[i].StudentStatus); 
            itemData.Attributes.Add("Year", data[i].StudentYear); 
            result.Add(itemData); 
        } 
        comboData.Message = GetStatusMessage(endOffset, data.Count); 
        comboData.Items = result.ToArray(); 
        return comboData; 
        } 

The call to the PageMethod is working fine and the data is being populated in the RadComboBox, but the item template is ignored. All I am seeing is the returned Text property of the RadComboBoxItemData item. The documentation states that for attributes to work the way I am trying to use them, the RadComboBoxItem must call it's DataBind() method. Obviously this isn't happening on the web service request. Is there a way of doing this using LoadOnDemand and PageMethods/WebServices ?

Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2014
1 answer
161 views
Can you not use the required field validator or others with the search box? It will not let me.
Shinu
Top achievements
Rank 2
 answered on 27 Mar 2014
8 answers
71 views
Hello

I have a radgrid with AllowFilteringByColumn=true and a JS function that hides the filter when the grid is empty:

function Filter(masterTable) {
    var dataItems = masterTable.get_dataItems(); 
    if (dataItems.length == 0) { masterTable.hideFilterItem();  } else { masterTable.showFilterItem(); }
}

however when i perform a search and if that search returns no information, this script also hide the filters, and i dont want to hide after filter is applied(only when grid have no records).

There is a way to know if filters were used? im new to telerik.
Thanks in advance
Princy
Top achievements
Rank 2
 answered on 27 Mar 2014
1 answer
119 views
Hi 
I am having problem with finding asp controls in the ItemTemplate in RadLightBox.
I have a RadComboBox and asp checkbox inside the RadLightBox ItemTemplate.
In my javascript I can find the RadComboBox, but cannot find the checkbox, it's getting null.
I also tried to find RadButton, it can find it, but how do I check it's checked or not from client side like asp checkbox.
But I still want to try to use asp checkbox so that css is consistent across our site.
Here is my code:
aspx:
 <telerik:RadLightBox height="240" Width="890" ID="LightBox" Font-Size="Medium"  runat="server"   Modal="true" PreserveCurrentItemTemplates="true" style="z-index:99">
                <ClientSettings >
                    <ClientEvents  OnShowing="findControls" OnClosing="showHTMLScroll"/>
                    <AnimationSettings  HideAnimation="Resize" NextAnimation="Fade" PrevAnimation="Fade"  ShowAnimation="Resize" />
                </ClientSettings>
                <Items >
                    <telerik:RadLightBoxItem>
                        <ItemTemplate>
                            <div>
                                <div >

                                    <asp:CheckBox  ID="cb1" runat="server" Visible="true"   />
                                    <%--<telerik:RadButton ID="btnToggle" runat="server" ToggleType="CheckBox" ButtonType="LinkButton" >
                                     <ToggleStates>
                                       <telerik:RadButtonToggleState Text="Checked" PrimaryIconCssClass="rbToggleCheckboxChecked" />
                                       <telerik:RadButtonToggleState Text="UnChecked" PrimaryIconCssClass="rbToggleCheckbox" />
                                     </ToggleStates>
                                    </telerik:RadButton>--%>
                                 </div>
                                <div>
                                    <telerik:RadComboBox runat="server" ID="RCB"  Width="300" Height="300" Skin="MetroTouch"
                                          EmptyMessage="-Please Select -" CssClass="right-field" Visible="true" 
                                          >
                                    </telerik:RadComboBox>
                                           <span>&nbsp;
                                                <asp:CustomValidator ID="cvl" runat="server" ValidationGroup="vgroup1" CssClass="error-label" ErrorMessage="Please select a reason"
                                                 ClientValidationFunction="cvlValidate"  />
                                           </span>
                                </div>
                                <div>
                                    <span class="left-field left-label">&nbsp;</span>
                                    <asp:Button runat="server" CssClass="action-button" Text="Submit" value="Submit" ID="bnSubmit" CausesValidation="true" onclick="bnSubmitVoice_Click" ValidationGroup="vgroup1"/>
                                </div>
                            </div>
                        </ItemTemplate>
                    </telerik:RadLightBoxItem>
                </Items>
         </telerik:RadLightBox>






javascript:


   function findControls() {
       var cb = $find('<%= ((CheckBox)LightBoxReasonVoice.FindControl("cb1")).ClientID %>');;
        var rcb = $find('<%= ((RadComboBox)LightBoxReasonVoice.FindControl("RCB")).ClientID %>');
             alert("cb.checked");

    }





Shinu
Top achievements
Rank 2
 answered on 27 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?