Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
210 views
Hi,

According to some requirement in my project , I want to track column name and type of operation performed on that column through header context menu options. For Example :-  In my grid, I have three columns named 'ProductID','ProductName' & 'CategoryID'. When I opened context menu by clicking right click on 'CategoryID' column in  header of grid, and select 'Sort Ascending' or 'Group By'. Then Gird get sorted with 'CategoryID' in ascending order or Grid get grouped by column 'CategoryID'. Then finally I want to track the Column 'CtaegoryID' and operation 'Sort Ascending' or 'Group By' and want to save these two information in some string type global variables on completion of these operations.

Please provide me solution for this. Thanks a lot in advance for this solution.


Regards,
Ankesh Bharti
K
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
355 views
Hi,

I'd like to change the backround of the listbox (the actual inside of the listbox) to a Hex value: I tried:

.RadListBox div.rlbGroup
{
  background-color:#E6E2D7 !important;
}

Based on the forum search results, but it's not workking. Help please.
fred williams
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
85 views
Hi
I want to check with a RecurrenceRule whether a given point in time covered by this rule or not.


How can I do that?

Greetings
markus
Markus
Top achievements
Rank 2
 answered on 23 Mar 2011
1 answer
107 views
I have a RADWindow that I activate from my codebehind like this

this.ucContactEdit1.PopulateControls();
            this.RadWindowManager1.Windows[3].VisibleTitlebar = false;
            this.RadWindowManager1.Windows[3].VisibleStatusbar = false;
            this.RadWindowManager1.Windows[3].Width = Unit.Pixel(430);
            this.RadWindowManager1.Windows[3].Height = Unit.Pixel(310);
            this.RadWindowManager1.Windows[3].OnClientClose = "closeRadWindow";
            this.RadWindowManager1.Windows[3].VisibleOnPageLoad = true;

this is the definition

<telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" KeepInScreenBounds="True" Modal="True" Animation="Fade" ID="RadWindowManager1"
                        EnableShadow="false" ShowOnTopWhenMaximized="false" Width="425" Height="525" DestroyOnClose="True" Behavior="Default" InitialBehavior="None" OnClientClose="OnClientClose">
                        <Windows>
                             
                             
                            <telerik:RadWindow ID="RadWindowEditor" runat="server"  Width="430" Height="310" VisibleStatusbar="False" Modal="True" KeepInScreenBounds="True" Animation="Fade" >
                            <ContentTemplate>
                            <uc7:ucContactEdit ID="ucContactEdit1" runat="server" />
                            </ContentTemplate>
                            </telerik:RadWindow>
                        </Windows>
    </telerik:RadWindowManager>

When I close the RADWindow the RADCombo boxes on  the parent window all freeze ! they can no longer receive focus (so the dont activate the drop down)

Im using Firefox 3.6.15 and Telerik Q1 2010

can anyone help ?
Rumen
Telerik team
 answered on 23 Mar 2011
20 answers
388 views
HI,
How can I call 2 different functions in the OnClientLoad event based on an If condition? Here is my requirement: In the View mode, I want to disable typing/pasting etc , but in the edit mode, I need to limit them  to typing a particular no. of characters. -say 2000.
I figured out that OnclientLoad will be the place to call the function for that, but I am not sure how to call different functions in runtime.  Or, is there some propety that I can set in the aspx page that I can capture in the RAD user control and use in the if condition ??
Using of the property RADEditor1.enabled=false just gives the text without the RAD control and we cannot use that. Please help.

Thanks a lot.
Anandi
Rumen
Telerik team
 answered on 23 Mar 2011
20 answers
232 views

Hello,

Telerik version : 2010.2.826.35

I use a RadFilter with RadGrid and I see just the first column and the last 29 columns of the grid.

I tried with no RadGrid and 32 RadFilterTextFieldEditor. I had the same result.

Just a little remark, there is a problem with css when I use design time. : CssClass="RadFilter RadFilter_Default "

 

 

 
An other question :
How can add RadFilterTextFieldEditor to a RadFilter with a FilterContainerID ?

Anne

 

 

 

 

 

 

 

Michael
Top achievements
Rank 1
 answered on 23 Mar 2011
3 answers
66 views

We just implemented RadEditor AjaxSpellCheck feature in a intranet website (with Integrated Windows Authentication) and it works fine for me. However, when users click on 'Add to dictionary' option for mis-spelt words, they are facing windows security alert and when hit on Cancel button its coming up with Spell Check Handler error:401.

It seems like this is happening due to users not having permissions on '~\App_Data\RadSpell' folder to create 'en-US-Custom.txt' file where all new users words get stored when hit on Add to dictionary option.

I would appreciate if someone can suggest me a fix for this i.e., through either RadEditor settings or giving write permission on ~\App_Data\RadSpell folder using some property in web setup msi?

I already tried setting the property AllowWriteAccess to True for both the folders 'App_Data' and 'RadSpell' in Web Setup project but it still fails with the same erorr.

Regards,
Sameer

Marin Bratanov
Telerik team
 answered on 23 Mar 2011
2 answers
337 views

<asp:UpdatePanel runat="server" ID="upZipCodes" UpdateMode="Conditional">
        <ContentTemplate>
            <br />
            <br />
            <telerik:RadAjaxPanel ID="GeoTarget" runat="server">
                <telerik:RadPanelBar runat="server" ID="trpbGeoTarget" ExpandMode="SingleExpandedItem">
                    <Items>
                        <telerik:RadPanelItem Expanded="True" Text="Discreate ZipCodes List" runat="server"
                            Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="DiscreateZipCodes" runat="server" Expanded="true">
                                  <ItemTemplate>
                                    
                                   <div class="text" style="background-color: #edf9fe">
                                  <asp:Panel runat="server" ID="pnlDiscrete">
                                        <table border="1" style="width: 790px; height: 476px;">
            <tr>
                <td class="style17">
                    <asp:Label ID="Label4" runat="server" SkinID="InputRegular">Discrete List:</asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style26">
                    <asp:Button ID="btnAddAll" runat="server" OnClick="btnAddAll_Click" Style="z-index: 1;
                        left: 83px; top: 2px; position: relative; width: 105px; height: 26px;" Text=" Add ZipCodes "
                        ToolTip="Click here to Add zipcode in List" />
                          <asp:Button ID="btnClearList" runat="server"
                        OnClick="btnClearList_Click" Style="z-index: 1; top: 3px; position: relative;
                        width: 74px; left: 175px" Text="Clear List" ToolTip="It Removes all ZipCode from List" />
                             
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:TextBox ID="txtZipCode" runat="server" Height="47px" SkinID="Long" TextMode="MultiLine"
                        ToolTip="Enter ZipCodes" Width="454px"></asp:TextBox>
                    <uc2:Helper ID="Helper3" runat="server" ResourceKey="ZipCode" />
                    <ajaxToolkit:FilteredTextBoxExtender ID="Validatior" runat="server" FilterType="Custom, Numbers"
                        TargetControlID="txtZipCode" ValidChars="," />
                    <asp:RequiredFieldValidator ID="rfvZip" runat="server" ControlToValidate="txtZipCode"
                        Display="Dynamic" ErrorMessage="* Enter Comma Sepertaed ZipCodes" SetFocusOnError="true"
                        SkinID="ClientMessaging"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Panel ID="pnlGeoTargetProfile" runat="server" ScrollBars="Both">
                        <asp:GridView ID="grdZipDiscreateList" runat="server" AutoGenerateColumns="False"
                            DataKeyNames="ZipCode" EnableModelValidation="True" RowStyle-Height="1px" ShowFooter="True"
                            SkinID="view" Width="779px" AllowPaging="True" overflow="auto" ScrollBars="Both">
                            <Columns>
                                <asp:BoundField DataField="ZIPCode" HeaderText="ZipCode" ReadOnly="true" />
                                <asp:BoundField DataField="City" HeaderText=" City Name" ReadOnly="true" />
                                <asp:BoundField DataField="State" HeaderText="State" ReadOnly="true" />
                                <asp:TemplateField HeaderText="Action" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Panel ID="pnlDelete" runat="server">
                                            <asp:LinkButton ID="lnkRemove" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ZIPCode") + "," + DataBinder.Eval(Container, "RowIndex") %>'
                                                OnClientClick="return confirm('Are you remove want to remove this ZipCode from the Discrete list ? Do you wish to continue.');"
                                                Text="Remove"><img alt="" src="../Images/Icons/remove.png" border="0" title="remove"></asp:LinkButton>
                                        </asp:Panel>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle Height=".5px" />
                        </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                     <asp:Button ID="btnSave" runat="server" SkinID="btnSave" Text=" Updates ZipCodes "
                        ToolTip="Click here to Update zipcodes in List" ValidationGroup="ClientDegree"
                        Width="157px" />
                    <asp:Button ID="btnCleargrid" runat="server" OnClick="btnCleargrid_Click" Style="z-index: 1;
                        left: 140px; top: 0px; position: relative; width: 133px; height: 26px" Text="Delete All ZipCodes"
                        ToolTip="It Removes all ZipCode from List" />
                    <asp:Button ID="btnClose" runat="server" OnClick="btnClose_Click" Style="z-index: 1;
                        left: 186px; top: 0px; position: relative; width: 52px; height: 26px" Text="Close" />
                                       
                </td>
            </tr>
        </table>
         
    </asp:Panel>
                                    </div>
                                        <ul class="formList" id="accountInfo">
                                  </ItemTemplate>
                                 </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Expanded="True" Text="States List" runat="server" Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="States List" runat="server">
                                    <ItemTemplate>
                                        <div class="text" style="background-color: #edf9fe">
                                        </div>
                                        <ul class="formList" id="accountInfo">
                                            <asp:Panel runat="server" ID="pnlStateList">
                                                <table border="1">
                                                    <tr>
                                                        <td class="style15">
                                                            <uc1:campus ID="campus" runat="server" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                        <telerik:RadPanelItem Expanded="True" Text="ZipCodes Within Radius" runat="server"
                            Selected="true">
                            <Items>
                                <telerik:RadPanelItem Value="ZipCodes in Radius" runat="server">
                                    <ItemTemplate>
                                        <ul class="formList" id="accountInfo">
                                            <asp:Panel ID="pnlMiles" runat="server">
                                                <table border="1">
                                                    <tr>
                                                        <td class="style25">
                                                            <asp:Label ID="lblZipCodes" runat="server" Text="ZipCodes within: "></asp:Label>
                                                            <asp:TextBox ID="txtMiles" runat="server" Width="32px"></asp:TextBox><asp:RequiredFieldValidator
                                                                ControlToValidate="txtMiles" ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
                                                                ErrorMessage="* Enter Miles" SetFocusOnError="true" SkinID="ClientMessaging"
                                                                ValidationGroup="ClientDegree"></asp:RequiredFieldValidator>
                                                            <asp:Label ID="lblMilesOfRadious" runat="server" Text="Miles Of Radius: "></asp:Label>
                                                            <asp:TextBox ID="txtZipInMiles" runat="server" Width="90px"></asp:TextBox>
                                                            <uc2:Helper ID="Helper4" runat="server" ResourceKey="ZipCode" />
                                                            <asp:RequiredFieldValidator ControlToValidate="txtZipInMiles" ID="RequiredFieldValidator4"
                                                                runat="server" Display="Dynamic" ErrorMessage="* Enter Numric ZipCodes" SetFocusOnError="true"
                                                                SkinID="ClientMessaging" ValidationGroup="ClientDegree"></asp:RequiredFieldValidator>
                                                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                                                FilterType="Custom, Numbers" TargetControlID="txtZipInMiles" ValidChars="," />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                    </ItemTemplate>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelItem>
                    </Items>
                    <CollapseAnimation Duration="100" Type="None" />
                    <ExpandAnimation Duration="100" Type="None" />
                </telerik:RadPanelBar>
            </telerik:RadAjaxPanel>
            <%--  <Items>
                <telerik:RadPanelItem Text="Discrete List Of ZipCodes" Expanded="True">
                    <Items>
                        <telerik:RadPanelItem Text="Personal Folders" />
                         
                    </Items>--%>
            <br />
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
I am unable to access my controls in my code behind and when i am trying to access my Controls i am getting an  error of "Controls are not existing in current context".
I have attached my error file. I have very basic understanding of rad panal Bar. So can you please explin me in detail what the ploblem is.?
Thanks in advance.
Sankar
Top achievements
Rank 1
 answered on 23 Mar 2011
1 answer
65 views
Hi,
I am using RadScheduler in a SharePoint site. If I enable all day row the width of the appointment is very small and I can't actually see it in Internet Explorer 8. With the other browsers this doesn't happen.
I have added the following scripts
div.RadScheduler .rsHorizontalHeaderTable, div.RadScheduler .rsContentTable
{
     width: /*\**/ 100%\9 !important;
}           
* + html div.RadScheduler .rsHorizontalHeaderTable, * + html div.RadScheduler .rsContentTable
{
     width: auto !important;
}

and tried adding something like
div.RadScheduler .rsAllDayRow > td
{
      width: auto !important;      
}

for the all day row but with no success. If I set width: 100% !important then the width of the first all day appointment is the whole scheduler.
Could you please suggest me anything?
Thanks in advance,
Ilias
Kalina
Telerik team
 answered on 23 Mar 2011
1 answer
188 views
hi friends.

i got problems when i converted my project to a newer version using telerik web controls,
my project has an assembly 'Telerik.Charting, Version=2.0.4.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763', i've already used Telerik.Web.UI.dll instead of Telerik.Charting.dll and added Telerik.Web.UI in my project so i had to remove Telerik.Charting from my project, then i set my web.config file like the code i give bellow but it still occurs bugs, does anyone know this issue?, please help me to resolve it, and here is the code in my web.config file.

  1. <runtime>
  2. <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
  3. <dependentAssembly>
  4. <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
  5. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  6. </dependentAssembly>
  7. <dependentAssembly>
  8. <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
  9. <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
  10. </dependentAssembly>
  11. <dependentAssembly>
  12. <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4"/>
  13. <bindingRedirect oldVersion="2008.2.826.35" newVersion="2009.2.826.35"/>
  14. </dependentAssembly>
  15. </assemblyBinding>
  16. </runtime>

im using Visual Web Developer 2008 Express Edition and Telerik web controls ASP.NET AJAX 2009.

thanks in advance.

best regards.
Giuseppe
Telerik team
 answered on 23 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?