Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
96 views
I've just begun to familiarize myself with the Dock controls to learn if and how they can be of use in my applications.  And, for the most part, I've ignored or discounted them, assuming their use is limited to the very specific, portal-type, personal UI's.  But now I'm revisiting that assumption and wonder if/how they could be of great usefulness if implemented in like-scenario as follows:

Utilize the RadDock controls in their obvious/intended use, to organize and manage site layout, persisting state to xml or db, etc etc.. nothing unusual there.  But- in a non-portal-like, public UI-  limiting that functionality to site owners/administrators only.  The browsing public, or non-auth users, would see the admin-prescribed layout/content, but without any of the the docking chrome or layout functionality. I suppose I think of these as two modes; admin/normal, edit/view, enabled/disabled... etc. 

I've toyed with and have had some success creating custom controls; docks and zones inheriting from RadDock and RadDockZone in order to add some custom properties, override where needed, etc.  I've created and am very happy with the functionality and outcome of the 'admin or enabled' mode and am looking into accomplishing the 'disabled' mode. 

I'm confident I can do this- one (hacky) way or another-  but in order of seeking the most logical, elegant way of doing it--  I would appreciate any input from Telerik or anyone with insight, suggestions, or tips. 

A couple thoughts:
- I thought I could dynamically load docks/content OnInit and then, when not admin, just disable the controls to inhibit rendering the scripts, leaving only chrome to deal with.  Not so. 
- In a 'disabled mode'.. would hope to not render anything dock-related; UI or script, as opposed to disabling, removing or hiding things on the client. 
- Regardless of if/how I can achieve this now.. it seems this kind of functionality could/should be baked-in to the Docking. ??

Thanks a bunch and I appreciate the input!
David



David
Top achievements
Rank 1
 answered on 16 Feb 2011
2 answers
197 views
Hello,

someone knows how to only disable the automatic filtering operation
when performing a filter on a row?

I need to filter a DropDown Column - so i just want to modify the gridview datasource selectcommand

It works - but just the first time and then i get this error
No property or field 'filterExpression' exists in type 'DataRowView' - its because my row is a DropDown

At the gridviews ItemCommand Event im using this code
if (e.CommandName == RadGrid.FilterCommandName)
{
    gvUser.MasterTableView.FilterExpression = ""; //tried with this ... but does not work
    Pair filterPair = (Pair)e.CommandArgument;
    //string s = filterPair.First + ", " + filterPair.Second;
 
    TextBox txtFilterTextBox = (e.Item as GridFilteringItem)[filterPair.Second.ToString()].Controls[0] as TextBox;
    string filterValue = txtFilterTextBox.Text;
 
    srcGv.SelectCommand = "SELECT * FROM [Table1] WHERE [ID] IN (SELECT [ID] FROM [Table2] WHERE [someRow] LIKE '%" + txtFilterTextBox.Text + "%')  ORDER BY [someRow]";
    gvUser.Rebind();
}

i think i just have to disable the automatic filter operation but i cant find where i can disable it ...

Greetings - Raimund
Raimund
Top achievements
Rank 1
 answered on 16 Feb 2011
7 answers
340 views
Hi,
I'm having problem with my project. Randomly, i got object reference problem in different pages, however i can't find a scenario which causes this. It's totally random.

When i catch this in debug mode, i saw that viewstates were loosing their values but i'm not sure about that. Debugger stops at a random viewstate, says value = null, however i'm sure it had a value before. Somehow, it looses its value after postback but as i said, i can't create a scenario

Here is my error log

<Log> 
<ExtendedProp><Url>http://195.87.212.232/LeasingPublish/Credit/CreditProposalQuery.aspx</Url><UserFullName>KREDİ ANALİSTİ</UserFullName><UserName>KRD_ANS</UserName><UserIP>195.87.213.86</UserIP><StackTrace>   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)  
   at System.Xml.XmlDocument.Load(XmlReader reader)  
   at System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency# dataCacheDependency, CacheDependency# transformCacheDependency)  
   at System.Web.UI.WebControls.XmlDataSource.GetXmlDocument()  
   at System.Web.UI.WebControls.XmlHierarchicalDataSourceView.Select()  
   at Telerik.Web.UI.HierarchicalControlItemContainer.GetHierarchyData(IEnumerable data)  
   at Telerik.Web.UI.HierarchicalControlItemContainer.PerformDataBinding(IEnumerable data)  
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)  
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)  
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()  
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()  
   at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()  
   at System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e)  
   at Telerik.Web.UI.RadDataBoundControl.OnPreRender(EventArgs e)  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Control.PreRenderRecursiveInternal()  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)</StackTrace><Guid>b175ba72-b3fb-4257-b005-89f5cbabcbd3</Guid> 
</ExtendedProp> 
</Log> 

Anyone had this problem before?

Thanks
Andrea Tasca
Top achievements
Rank 1
 answered on 16 Feb 2011
1 answer
188 views
Hi

im changing the look of rad menu according to my req

facing these issues,please help

1)for submenu item,I have removed img Url and in Css gave text-align:left still text is not left aligned 
2)added hover property in css,its showing hover for the text but i want for entire item

thanks
Harin




 
Kate
Telerik team
 answered on 16 Feb 2011
1 answer
151 views

Hi Team,
I’m getting below error due to large file size of XML (RadTreeView source XML appox 6MB).

Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

In order to solution provided on http://www.telerik.com/help/aspnet-ajax/troubleshooting-treeview-maximum-length-exceeded.html

<system.web.extensions>

        <scripting>

            <webServices>

                <jsonSerialization maxJsonLength="999999999"/>

            </webServices>

            <scriptResourceHandler enableCompression="true" enableCaching="true"/>

        </scripting>

      </system.web.extensions>

I have applied above code in web.config But this does not work, 

I am using client side RadTreeView.

Please let me know the proper solution for the same.

Veronica
Telerik team
 answered on 16 Feb 2011
1 answer
218 views
Hi,
My application images folder is ~/Images
and the rad editor is in a file that has the heirarchy: ~/Admin/pageedit.aspx
When I insert any image and see its html it becomes <img src="/images/abc.jpg" .... >

I want that the image path should be shown as <img src="images/abc.jpg"...>

I have tried this and almost done on OnClientCommandExecuting using javascript. The path shown becomes OK but the image is shown as broken, as the image path becomes wrong (i.e. abc.jpg has relative path "../images/abc.jpg").

Can you help me about this problem?
Rumen
Telerik team
 answered on 16 Feb 2011
1 answer
77 views
Is there a way with the RadInput textbox control to allow for users to toggle the editing and displaying of a value? What I mean is, on the load of the page, text is displayed. When the user clicks on the text, it becomes editable (i.e. text displayed within the RadInput textbox). Save and Cancel buttons are also displayed when the "edit mode" is toggled on.

Flickr does this, for example, with the naming of their photos and with descriptions.
Galin
Telerik team
 answered on 16 Feb 2011
1 answer
68 views
I attached a ViewPath to an instance of RADEditor's ImageManager. The tool was able to view the image in the folder, however, it is noting a file dimension (1800px by 2689 px) in the Properties tab that does not exist for the current image (100 px by 150 px).  The file size in the center pane is around 6 KB, which is accurate.  Any thoughts for why or where ImageManager would be storing this information?  I want for it to just show the image as it exists.  Thank you.
Rumen
Telerik team
 answered on 16 Feb 2011
3 answers
130 views
Hi,

I have a nested rad splitter to divide the screen into 3 portion left,(in right) top and main content with RadGrid.

I want splitter width should be fit as per screen size like 100%. but while i gave 100% to parent splitter the child splitter got shrink.

Plz help on this.


regards,

Baaje
Dobromir
Telerik team
 answered on 16 Feb 2011
11 answers
448 views
I have a radgrid with hierarchy of one parent table and 3 detail tables all at the same level. When the user expands all 3 child levels at once, I set a caption to separate them. I would like to change the background color(where the caption is and around that). Not the grid background. Is there a way to change this color?

Also, is there a way to add a little space between the bottom of the last part of the child and the next parent record?

Thanks
Dimo
Telerik team
 answered on 16 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?