Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
76 views
Hi,
I have rad numeric text box in my application . and some asp text box on the same page. The problem is when i am in windows lcassic theme i have set the radnumeric text box to look like asp text box by setting the border 2px inset and removed the back ground colors etc. but when i change to windows xp theme it is still the same but the asp text box looks different. How can i make telerik to behave the same way even if i change the theme
Please reply asap
Thanks
Ranjani
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Nov 2011
3 answers
163 views

Hi,

My requirement is to dispaly a hyperlink for some words in RadTreelist.
ie is I have a Column 'Description' , this column contains words like 

" Telerik is a good tool ."  I need to display <good> in hyperlink.

How is it possible in RadTreeList after binding the data?
which event is used for that purpose?

Thanks,
Sindu.
Jayesh Goyani
Top achievements
Rank 2
 answered on 07 Nov 2011
3 answers
76 views
Hi,

my tree has the possibility to remove nodes client-side (by using the context menu).
The tree itself is in a control which is in a jquery ui dialog.

When the jquery dialog gets closed and nodes were removed, I get the following error:
Error: NOT_FOUND_ERR: DOM Exception 8
This happens in ScriptResource.axd here:
a.RadContextMenu.prototype = {initialize: function() {
......
},attachContextMenu: function() {
            if (!this._detached) {
                return;
            }
            this._getContextMenuElement().parentNode.removeChild(this._getContextMenuElement());
            this.get_element().insertBefore(this._getContextMenuElement(), $get(this.get_clientStateFieldID()));
The last line causes the error. In the callstack in chrome I can see that the tree is disposing itself. The code is only called if at least one node was removed.
This is the callstack:

a.RadContextMenu.attachContextMenu() at ScriptResource.axd:345a.
RadContextMenu.dispose() at ScriptResource.axd:116
Sys$_Application$dispose() at ScriptResource.axd:5200
Sys$_Application$_unloadHandler() at ScriptResource.axd:5488
(anonymous function)() at ScriptResource.axd:49
Sys$UI$DomEvent$addHandler.browserHandler() at ScriptResource.axd:4357


This is the client-side code which removes the node:

function OnCatalogTreeMenuItemClicked(sender, e) {
   var node = e.get_node();
   var value = e.get_menuItem().get_value();
 
   if (value == "delete") {
      sender.trackChanges();
      var attributes = node.get_attributes();
      attributes.setAttribute("Type", "Deleted");
      attributes.setAttribute("HasChanged", "true");
      node.set_visible(false);
      sender.commitChanges();
   }
 
   e.get_menuItem().get_menu().hide();
}

When the jquery ui dialog is closed, I remove the nodes server-side from the database.

Is there a problem in my javascript function for removing nodes?
Or is it possible that the dispose is called after the the jquery ui dialog contents were removed from the DOM? But why only in case that nodes were removed?

Thanks for your help.
Dimitar Terziev
Telerik team
 answered on 07 Nov 2011
2 answers
82 views
Hi

I have a RadToolBar with a couple of ToolBarButtons in.

When the the control they are in initally displays neither of them are highlighted.

When I click on them they highlight correctly and I can see that the class is beeing changed from

"rtbItem rtbBtn" to "rtbItem rtbBtn rtbChecked"

I would like to be able to set the highlighted button when the control is initialize.

Is there a way to do this with Server Side code????

TIA
Kate
Telerik team
 answered on 07 Nov 2011
0 answers
74 views

Dear Experts,

I am using RadGrid to show my application data. In order to filter the related values I am using FilterTemplate with RadComboBox as it is nicely describe in this example. I Have up to 5 columns using this kind of tiltering.

Due to performance reasons I would like to change the server side loading of the filtering RadComboBoxes with the use of Web Services. 

<telerik:GridBoundColumn DataField="OwnerId" UniqueName="OwnerId" DataType="System.Int32" />
<telerik:GridBoundColumn DataField="OwnerName" SortExpression="OwnerName" DataType="System.String"
    UniqueName="OwnerName" AutoPostBackOnFilter="true" FilterDelay="800" ShowFilterIcon="false">
    <FilterTemplate>
        <telerik:RadComboBox ID="RadComboBoxOwners" EnableAutomaticLoadOnDemand="True" Filter="StartsWith"
            AllowCustomText="true" AppendDataBoundItems="true" runat="server" OnClientSelectedIndexChanged="OwnerChanged"
            ViewStateMode="Enabled">
            <Items>
                <telerik:RadComboBoxItem Text="All" Value="" Selected="true" />
            </Items>
            <WebServiceSettings Path="~/DesktopModules/VipCrm/Wsi.asmx" Method="GetUsersFilter" />
        </telerik:RadComboBox>
        <telerik:RadScriptBlock ID="RadScriptBlockOwners" runat="server">
            <script type="text/javascript">
                function OwnerChanged(sender, args) {
                    $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>").filter("OwnerId", args.get_item().get_value(), "EqualTo");
                }
            </script>
        </telerik:RadScriptBlock>
    </FilterTemplate>
</telerik:GridBoundColumn>


When trying to implement this I encountered the following problems:

  1. If the <Items> are present no WSI request triggers.
  2. The RadComboBox loses its selected value though view state is enabled.


Has anyone tried this approach? Do you have suggestion to solve the above problems?

Regards,

Kristijan

Kristijan
Top achievements
Rank 1
 asked on 07 Nov 2011
7 answers
104 views
Hi:

I have been looking on the Telerik forums for a solution but all of the pages lead to non-existent blog posting from a number of year ago.
So, I am experiencing this issue for the last couple of days.  I am e-mailed all issue by the application and would like to resolve it

ERROR  
    Name = [user name here]
     URL = http://[server name here]/[app name here]/WebResource.axd?d=sFh9ZVODkqTk5fNZCIKIMkVkP6jzFG7y-JZ9_b6fI2-rFsv37yMwoBV5wlOm5uGfmLgYWqtsLuH4d8CnbQXtlKLMnKtUe27Gd3koHY6av1k1&t=634248270600000000
    Time =  2011-10-14 09:57:45.064
Computer =  [server name here]
Exception:  This is an invalid webresource request.
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Suggestion would be appreciated.

Phil
Iana Tsolova
Telerik team
 answered on 07 Nov 2011
1 answer
48 views
I'm able to sort my grid with multiple columns without issue.  What I'd like to do is mimic the way Dynamics CRM (and other apps) sort - which is by the user holding down Shift + clicking on the 2nd column to sort by.

Is that possible?
Iana Tsolova
Telerik team
 answered on 07 Nov 2011
1 answer
75 views
I have a grid in a form with another grid in DetailTables (detail grid).
I'm using wcf service to fetch data and fill in dataSource of grids (master and detail).
For this in OnDetailTableDataBind event of master grid, I've set the e.DetailTableView of event in a field and called the async operation of service and in Completed event of service ,i've bind the result to the filed DataSource and it doesn't work.
but it works if I call the operation sync.
I want to call it async, what should I do?
Iana Tsolova
Telerik team
 answered on 07 Nov 2011
9 answers
142 views
my radgrid(telerik) is like below :

<telerik:RadGrid ID="grdUsers" runat="server" GridLines="None" Skin="Vista" DataSourceID="sdsUsers"
       AllowPaging="True" AutoGenerateColumns="False" OnItemCommand="grdUsers_ItemCommand"
       Width="900px" AllowSorting="True" PageSize="20">
       <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="sdsUsers">
           <DetailTables>
               <telerik:GridTableView runat="server" DataKeyNames="ID,User_ID" DataSourceID="sdsDownload"
                   ShowFooter="True">
                   <ParentTableRelation>
                       <telerik:GridRelationFields DetailKeyField="User_ID" MasterKeyField="ID" />
                   </ParentTableRelation>
                   <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="ID" DataType="System.Int32" FilterControlAltText="Filter ID column"
                           HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID">
                       </telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="User_ID" DataType="System.Int32" FilterControlAltText="Filter User_ID column"
                           HeaderText="User_ID" SortExpression="User_ID" UniqueName="User_ID">
                       </telerik:GridBoundColumn>
 
                       <telerik:GridBoundColumn DataField="FileSize" FilterControlAltText="Filter FileSize column"
                           HeaderText="FileSize" SortExpression="FileSize" UniqueName="FileSize" Aggregate="Sum">
                       </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="ID" FilterControlAltText="Filter ID column" HeaderText="ID"
                   SortExpression="ID" UniqueName="ID">
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
               </telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="FirstName" FilterControlAltText="Filter FirstName column"
                   HeaderText="FirstName" SortExpression="FirstName" UniqueName="FirstName">
                   <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                   <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
               </telerik:GridBoundColumn>
           </Columns>
           <EditFormSettings>
               <EditColumn FilterControlAltText="Filter EditCommandColumn column">
               </EditColumn>
           </EditFormSettings>
       </MasterTableView>
       <FilterMenu EnableImageSprites="False">
       </FilterMenu>
       <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
       </HeaderContextMenu>
   </telerik:RadGrid>

this is a Hierarchy grid with two tables (one master and one detail).
i have a column in detail table named (FileSize)!
this column in my database is nvarchar(50), i want to have sum of file sizes in the footer of detail table.
but after enabling Footer in this detail table and set aggregate of FileSize Column to Sum, i got an error that tells you can not have sum of object values!
is there a way for make sum of FileSize Column?
Peyman
Top achievements
Rank 1
 answered on 07 Nov 2011
21 answers
472 views
I have a grid with 5 GridBoundColumns (Name, SSN, DOB, Address, etc..). I want different set of filtering menu options for each of these columns. Is there any way to achieve this?
Ivan Zhekov
Telerik team
 answered on 07 Nov 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?