Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
hi
it dont know MyCustomFilteringColumnCS
how can i MyCustomFilteringColumnCS  be green
it black in my code
thanks
Daniel
Telerik team
 answered on 03 Feb 2011
9 answers
66 views
Good day!
I have got a grid with my custom skin made in the Visual Style Builder.
My custom skin css is here - http://new.globalfarm.ru/FarmPortal/Grid.FarmPortal.css
No matter what i write in ItemStyle Width &  HeaderStyle Width - columns look like they wants by themselfs in different browsers :(
HeaderStyle width is not equal with ItemStyle Width!
for example there are attached images for such code in different browsers (it no matter if i write only HeaderStyle Width or both ItemStyle Width &  HeaderStyle Width)

<telerik:RadGrid ID="grProducts" runat="server" CssClass="MyGridClass1"
        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        GridLines="None" Skin="FarmPortal" EnableEmbeddedSkins="false"
        onitemdatabound="grProducts_ItemDataBound" onprerender="grProducts_PreRender" Width="100%">
<MasterTableView Width="100%" TableLayout="Auto">
    <Columns>
        <telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="True" UniqueName="Id" SortExpression="Id" Visible="false">
            <HeaderStyle Width="0" />           
            <ItemStyle  HorizontalAlign="Left" Width="0" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Num" HeaderText="№" ReadOnly="True" UniqueName="Num" SortExpression="Num" HeaderStyle-Width="3%" ItemStyle-Width="3%" >
            <HeaderStyle Width="3%" />  
             <ItemStyle Width="3%" />
        </telerik:GridBoundColumn>
        <telerik:GridHyperLinkColumn DataNavigateUrlFields="Name" DataTextField ="Name" HeaderText="Наименование" UniqueName="Name" SortExpression="Name" HeaderStyle-Width="65%" ItemStyle-Width="65%">            
            <ItemStyle   Width="65%"  />
            <HeaderStyle Width="65%" />
        </telerik:GridHyperLinkColumn>
        <telerik:GridBoundColumn DataField="Count" HeaderText="Количество предложений" ReadOnly="True" UniqueName="Count" SortExpression="Count" HeaderStyle-Width="12%" ItemStyle-Width="12%" >           
            <ItemStyle  HorizontalAlign="Center" Width="12%"  />
            <HeaderStyle Width="12%" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="MinPrice" HeaderText="Мин. цена" ReadOnly="True" UniqueName="MinPrice" SortExpression="MinPrice" DataFormatString="{0:c2}" HeaderStyle-Width="10%" ItemStyle-Width="10%" >
            <HeaderStyle Width="10%" />
            <ItemStyle  HorizontalAlign="Center" Width="10%"  />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="MaxPrice" HeaderText="Макс. цена" ReadOnly="True" UniqueName="MaxPrice" SortExpression="MaxPrice" DataFormatString="{0:c2}" HeaderStyle-Width="10%" ItemStyle-Width="10%" >
            <HeaderStyle Width="10%"  />
            <ItemStyle  HorizontalAlign="Center" Width="10%" />
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
    <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"
        ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
</telerik:RadGrid>

there width i not equal, in the example in is not very aufull, but in other tables is. I want them to have equal width. What do I do wrong?
Pavlina
Telerik team
 answered on 03 Feb 2011
1 answer
106 views
I have gone through many forum posts regarding this and made sure that my web.config has the correct settings for telerik.web.ui.webresource.axd. Following is from my web.config. I pasted full content of system.webserver in case there is anything else conflicting with the telerik.

I get $telerik not found error on the browser side. Also, if I try the http://myserver.url/telerik.web.ui.webresource.axd - then I get 404 error. And I see that IIS maps it to StaticHandler and not the telerik handler. As following I see that the Handler entry is correct.

So, what is wrong? Please help.

----------------------------------------------------------------
 <system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <modules>
   <remove name="ScriptModule" />
   <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  </modules>
  <handlers>
   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
   <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersion2.0" />
   <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersion2.0" />
  </handlers>
        <staticContent>
            <mimeMap fileExtension=".axd" mimeType="application/octet-stream" />
        </staticContent>
 </system.webServer>
Piyush Bhatt
Top achievements
Rank 2
 answered on 03 Feb 2011
1 answer
89 views
Hi,

I want to open the NestedViewTemplate of my radgrid as a modal window instead of it opening below that row. Is this possible or any other way I can achieve this functionality?

Also, I want to make the entire row clickable to expand the row and show the NestedViewTemplate.

Any help or suggestions would be appreciated.

Thank you,
Jay Mehta.

<telerik:radgrid Width="580px" ShowHeader="false" ShowFooter="false" ID="rgModalWindow" runat="server"
                              MasterTableView-NoMasterRecordsText="No Projects Registered" MasterTableView-NoDetailRecordsText="No Projects Registered"
                              CssClass="RadGrid_Default"  HierarchySettings-ExpandTooltip="Edit" HierarchySettings-CollapseTooltip="Edit" >
                                  <MasterTableView RetrieveAllDataFields="false" AutoGenerateColumns="false" CssClass="RadGrid_Default">
                                      <Columns>
                                          <telerik:GridExpandColumn  UniqueName="Expand">
                                              <ItemStyle cssclass="grndt" BorderStyle="none"/>
                                          </telerik:GridExpandColumn
 
                                          <telerik:GridTemplateColumn ItemStyle-Width="520px" UniqueName="Name">
                                              <ItemTemplate>
                                              <div class="cdpn" style="border: 0px none;width:520px;">
                                                  <div class="gdesc" style="width:520px;"><asp:Literal ID="litParameter" runat="server"></asp:Literal></div>
                                              </div>
                                              </ItemTemplate>
                                          </telerik:GridTemplateColumn>
                                             
                                          <telerik:GridExpandColumn  UniqueName="Expand1">
                                          <ItemStyle cssclass="expand" BorderStyle="none"/>
                                          </telerik:GridExpandColumn
                                      </Columns>
                                       
                                      <NestedViewTemplate>
                                      <table>
                                      <tbody>
                                      <tr>
                                      <td>
                                          <asp:Panel ID="NestedViewPanel" CssClass="rgExpandCol" Width="500px" runat="server" >
                                                  <asp:Literal ID="litScreenID" Visible="false" runat="server"></asp:Literal>
                                                  <asp:Literal ID="litCategoryID" Visible="false" runat="server"></asp:Literal>
                                                  <h2><asp:Label ID="lblInstructions1" Visible="false" runat="server" Text="Label"></asp:Label></h2>
                                                  <br />
                                                  <div class="question-label">
                                                      <asp:Literal ID="lit" runat="server"></asp:Literal>
                                                  </div>
                                                  <div class="answer">
                                                  <asp:RadioButtonList CssClass="radiooption1" ID="rbl" runat="server">
                                                  </asp:RadioButtonList>
                                                  </div>
                                                  <br />
                                                  <asp:Button ID="btnUpdate" CssClass="button" runat="server" Text="Update" />
                                          </asp:Panel>
                                      </td>
                                      </tr>
                                      </tbody>
                                      </table>
                                      </NestedViewTemplate>
                                  </MasterTableView>
                                   
                              </telerik:radgrid>
Veli
Telerik team
 answered on 03 Feb 2011
2 answers
376 views
Hello,

Could somebody help me with this issue ?

I use decorated radiobuttonlist control. Based on some logic steps in the code behind I've disabled all radio items except selected one. What I've tried to achieve is removing hover style which is applied over selected radio button and replaced it with normal state. 

How to override style for hover action ? What should I insert inside of the class disableHovering ?

I use this code for iterating through radiobuttonlist collection:
RadioButtonList rblCtrl = (RadioButtonList)ctrl;
foreach (ListItem i in rblCtrl.Items)
{
     if (i.Selected != true) i.Enabled = false;
     else
     {                                
         i.Attributes.Add("onmouseover", "this.className=('disableHovering');");
     }                            
}


For further info please check the attachment.

I will appreciate all suggestions...


Best regards

Vasek
Vasssek
Top achievements
Rank 1
 answered on 03 Feb 2011
6 answers
434 views
Hi,
I want to add a custom tooltip on my appointments in the scheduler but I cant figure out how to do it.
I have tried like this:
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
    e.Appointment.Attributes.Add("onmouseover", "showTip('my custom tool tip text', 450);");
    e.Appointment.Attributes.Add("onmouseout", "hideTip();");
}

But the attributes are not added anywhere in the code when I look at the rendered html source, why?
I want the tooltip to show up when I hover over an appointment.

Regards,
Mattias
 
Mattias
Top achievements
Rank 1
 answered on 03 Feb 2011
3 answers
184 views
For various reasons, I'd like to use jQuery to post the radeditor content via ajax to a pagemethod.  I understand how to do this with jQuery, but I need some assistance with the radeditor. 

What I need to know is what do I need to do on the client and server to get the same exact results as a traditional postback?  In other words, I'd like to get the same exact string that I get from the RadEdit.Content property.

  • What javascript will put the contents of the editor into a form field so that jQuery can collect it and post it?
  • Assuming there is some processing done by the server-side radeditor control in a traditional postback on the posted HTML (encoding/decoding perhaps?), can I call that processing to get the same results in my pagemethod?

Thanks

srinivasu
Top achievements
Rank 1
 answered on 03 Feb 2011
1 answer
396 views
Error :webform_dopostbackwithoptions is not defined

I have used Asp .net 4.0, Telerik, windows server 2008 and configured in iis 7.0. When i sumbit button click in my page the above error is occur. In telerik radcontrol used input validation in text box control.

Maria Ilieva
Telerik team
 answered on 03 Feb 2011
1 answer
169 views
I have a RadAsyncUpload control and a DataList control in a webpage. With RadAsyncUpload control I am inserting images into my sqldatabase. I would like to fire a postback action for only datalist control in my webpage after a fileupload completed. How can I fire that postback on clint side?

Thank you.
Genady Sergeev
Telerik team
 answered on 03 Feb 2011
1 answer
102 views
Hello,

I have a problem with displaying the items in the radlistview control in RTL mode. In order to understand the problem plaese view the attached images (Cuurent.jpg and Required.jpg).

Here is the control code::
<asp:Panel ID="RadListView1Panel" style="margin-left:10px;" runat="server">
                 <telerik:RadListView runat="server" ID="RadListView1" AllowPaging="True" EnableEmbeddedSkins="false" Width="915px"
                    DataKeyNames="ItemID" DataSourceID="ObjItems" OnPageIndexChanged="RadListView1_PageIndexChanged" onitemdatabound="RadListView1_ItemDataBound">
                    <ItemTemplate>
                        <div class="rlvI" style="margin-left:1px; border:0; border-color:transparent; height:220px; width:305px;">
                            <center>
                                <asp:Panel ID="ItmPanel" Width="300px" BackImageUrl="~/Common/Img/BackGrounds/g4.gif" style="margin:-1px; padding:-1px;" Height="210px" runat="server">
                                        <asp:Table ID="Table1" Width="300px" HorizontalAlign="Center" BorderColor="Black" BorderWidth="0" runat="server">
                                            <asp:TableRow ID="TableRow2" Height="20px" runat="server">
                                              <asp:TableCell ColumnSpan="2">
                                                   
                                              </asp:TableCell>
                                            </asp:TableRow>
                                            <asp:TableRow ID="TableRow1" Height="190px" runat="server">
                                                <asp:TableCell VerticalAlign="Top" HorizontalAlign="Right" ID="TableCell1" Width="200px" runat="server">
                                                  <div style="margin-right:5px;">
                                                    <asp:Label ID="ItmNameLabel" SkinID="ItemHeaderText" runat="server" Text='<%# Eval("ItmName") %>'></asp:Label><br /><br />
                                                    <asp:Label ID="ItmDescLabel" runat="server" Text='<%# Eval("ItmDesc") %>'></asp:Label>
                                                  </div>
                                                </asp:TableCell>
                                                <asp:TableCell ID="TableCell5" VerticalAlign="Top" Width="100px" runat="server">
                                                    <asp:Image ID="ItmImage" ImageUrl='<%# Eval("FileUrl") %>' Width="90px" Height="90px" runat="server" />
                                                    <br /><br /><br />
                                                    <asp:LinkButton ID="MoreDetailsLinkButton" Font-Underline="false" ForeColor="Black" Font-Bold="true" Text="<%$ Resources:Resource, PagesItemsMoreDetailsLinkButtonText %>" OnClick="MoreDetailsLinkButton_Click" runat="server"></asp:LinkButton>
                                                </asp:TableCell>
                                            </asp:TableRow>
                                        </asp:Table>
                             
                                </asp:Panel>
                            </center>
                        </div>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <div class="RadListView RadListView_<%# Container.Skin %>">
                            <div class="rlvEmpty">
                                There are no items to be displayed.</div>
                        </div>
                    </EmptyDataTemplate>
                    <LayoutTemplate>
                        <div class="RadListView RadListViewFloated RadListView_<%# Container.Skin %>" style="background-color:transparent;">
                            <div class="rlvFloated rlvAutoScroll">
                                <div id="itemPlaceholder" runat="server">
                                </div>
                            </div>
                            <table cellpadding="0" cellspacing="0" width="100%" style="clear: both;">
                                <tr>
                                    <td align="center">
                                        <telerik:RadDataPager ID="RadDataPager2" runat="server" Width="280px" PagedControlID="RadListView1"
                                            PageSize="21" >
                                            <Fields >
                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                        TextBoxWidth="15" />
                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                            </Fields>
                                        </telerik:RadDataPager>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </LayoutTemplate>
                </telerik:RadListView>
            </asp:Panel>

Please, I need to display the items as it is shown in Required.jpg image.
It is appreciated to send me the modified code.

Regards,
Bader
Daniel
Telerik team
 answered on 03 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?