Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi,

I have a RadTreeView control which I have bound to the directory sctructure of a website very similar to Telerik's demo under Application Scenarios / Directory Structure found here. Anyway, what I'd like to do is when a user selects a page from the tree, I want to iterate through that page (not navigate to it) using reflection and list out the various controls available on the selected page in order to perform various administrative purposes. This is easy enough for User Controls as I can just use LoadControl to gain access to an instance of a user control and then reflect through it to pull out control references. But an actual  page is much different. I can't seem to find a way to either get a reference to the page in question or reflect the page. I think the nature of Partial Page Classes has something to do with it.

Anyway, if anyone has run into a similar issue, I'd love to hear how you worked around it.

Thanks in advance,
Tom
T. Tsonev
Telerik team
 answered on 15 Feb 2010
1 answer
114 views
Hello !
I use GridView to bound my data from Business layer.
I have some service:
BLProvinces and BLDistricts
I used GridView for displaying List<District> ( DistrictID,Name,ProvinceID).
but I did not want to display ProvinceID and...I used GridTemplateColumn:
 <telerik:GridTemplateColumn HeaderText="ProvinceName" SortExpression="????">         
        <ItemTemplate>            <%#BusinessLayer.BLProvinces.SelectRecordByID((long)Eval("ProvinceID")).Name%> 
        </ItemTemplate> 
        </telerik:GridTemplateColumn>  

I want to Sort ProvinceName  but I dont know what SortExpression ?
Help me! thanks your very much !.
Mai Van Binh
Top achievements
Rank 1
 answered on 15 Feb 2010
1 answer
118 views
Hi,

i have Problems with the RadAjaxManager:

1.) I have an Page that holds an AjaxManager
2.) I have (two) UserControls who call this AjaxManager to add AjaxSettings:
RadAjaxManager1.AjaxSettings.AddAjaxSetting(ButSchaetzen, ButOk, null); 
3.) When I rise an Event on the Button ButSchaetzen, then the Event is processed correctly, but the Control (ButOk) disappears from the UserControl.

When I try to search with the IE - DOM Explorer then I see the following:

 

document.getElementById('ruhestandcheck_UcRentenschaetzer1_ButOk').innerHTML 

Results in:

 

RADAJAX_HIDDENCONTROL

I can't figure out why this happens.
- In the Event of ButSchaetzen I set ButOk.Enable = true;
- Nothing else I do with the Button
- The same happens to all other Controls I added to the AjaxManager

The AjaxManager - HTML Code looks like this:
<radA:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest" EnablePageHeadUpdate="false"   
          ClientEvents-OnRequestStart="requestStart()" ClientEvents-OnResponseReceived="responseReceived()" ClientEvents-OnResponseEnd="responseEnd()" 
          DefaultLoadingPanelID="AjaxLoadingPanel1">  
              <AjaxSettings > 
              </AjaxSettings>             
          </radA:RadAjaxManager> 

What can be the Reason why the AjaxManager set the Controls to "RADAJAX_HIDDENCONTROL"?

Regards

Volker Weg
Top achievements
Rank 1
 answered on 15 Feb 2010
2 answers
87 views
ComboBox renders incorrectly on IE8, but fine on FF. Items box seems slide 10px to left and about 15px up
And also there is a design time problem. It shows another arrow.
Please see attached files.



There is no style on page, just script manager and combobox.
Version is : 2009.3.1401.35

Any ideas?






Veselin Vasilev
Telerik team
 answered on 15 Feb 2010
1 answer
50 views
Hi dear forum members,

I just discovered the very neat feature to caching on the clientside... it's really nice to have fast paging without a postback, even if there are just a few more items than fit on one page....

My problem here is, that it does not seem to work, when I use clientside binding like so:

var tableView = clientControls.relatedDocumentsGrid.get_masterTableView();  
tableView.set_dataSource(result);  
tableView.dataBind(); 


 

So I'm calling a Webservice with ASP.NET Ajax instead of just using the <DataBinding /> Element like so:

<DataBinding Location="..." SelectMethod="..." EnableCaching="true" /> 

I don't really like declarative binding.... doing it manually gives me more freedom at times....

Is clientside caching supposed to work, when binding manually on the clientside?

Thanks for any advice!

Kind regards,
Wolfgang

 

 

 

Rosen
Telerik team
 answered on 15 Feb 2010
3 answers
189 views

When we use the RadEditor on our SharePoint site, it converts all relative urls given by the SharePoint page picker dialog to absolute urls.

It’s a big issue because, the editors accesses the site on port :8080 and because RadEditor converts the url, the port specification gets added to all the links.

The result is broken links for all visitors on port :80.

 

Can we do some configuration to force the RadEditor to use relative urls for links and images?

 

Our current setup is we use the RadEditor for SharePoint, and have activated the website features on both root site, and all subwebs.

We use the config file in the RadEditor install directory to set picture list, etc. and css files.

We have tried this settings in config.xml but with no luck (taken from another thread in the forum)
You can enable relative URLs in the editor by setting the StripAbsoluteAnchorPaths and StripAbsoluteImagesPaths editor properties to true in the configuration file.

Regards, Bjarke

Stanimir
Telerik team
 answered on 15 Feb 2010
1 answer
89 views
HI ,
       I am using telerik menu.I have used a Access Key property of a menu to set a focus after clickng "Alt + Access key".
       We can open a respective page after setting focus on it(by clicking on the focused menu ).
       I want to open the page in new tab or in popup. Is this possible? Please let me know. 
      e.g.Suppose , I am on a.aspx page .There is  a text box in which i want to fill data which is on b.aspx page .So what i will do is , I will press Alt+C and the b.aspx page will get opened in new tab or in a pop up.And then i will copy paste the data i needed. Is this possible?
     Along with the basic functionality of Access key I want to give above functionality also. 

      
     <

 

telerik:RadMenuItem runat="server" Text="Hx" TabIndex="3" Font-Size="10pt" Width="4%"

 

 

        ToolTip="Patient History" AccessKey="C">

 

 

        </telerik:RadMenuItem>

Thanks.

       
    

 

Yana
Telerik team
 answered on 15 Feb 2010
1 answer
114 views
Hello,

It seems like every link i add after the rotator control on the page will break, it won't be clickable. Im talking about an ordinary link like this: <a href="link.aspx">link</a>.

If I remove the RadRotator from the page, the links starts to work again.

Happens only on Firefox, it works in IE,I haven't tried other browsers.

Any idea what can be wrong?

Best Regards
Fiko
Telerik team
 answered on 15 Feb 2010
0 answers
181 views
Hi,
I have checkbox and raddatepicker. I want to change the color of raddatepicker input  based on checkbox. Shinu provided me a solution  below

<telerik:RadDatePicker ID="RadDatePicker13" runat="server"> 
</telerik:RadDatePicker> 
<asp:CheckBox ID="CheckBox1" runat="server" onclick="checkedChanged(this);" /> 

function checkedChanged(checkbox) { 
        var datepicker = $find("<%=RadDatePicker13.ClientID%>"); 
        if (checkbox.checked) { 
            datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "yellow"; 
        } 
        else { 
            datepicker.get_dateInput()._textBoxElement.style.backgroundColor = "white"; 
        } 
    } 


Its works fine.But the above doesnot work when there is a asychnorous postback of other control in the same page or mouseover of raddatepicker.
Please provided me  a solution.


regards
sathies

sathies
Top achievements
Rank 1
 asked on 15 Feb 2010
0 answers
129 views
hello to all experts 
 
                               i would like to ask for help for this particular problem on telerik treeview control, i've been searching for an answer but i've never found a good one, here's my problem during page load i have to load root folder followed by the child folder and there documents inside(each folder depend on the user which they want to store) now in a few folders defined by  the user there was no errror occured during page load, now when the folder goes to 400 and the files inside that folder goes up shall we say 2000 files in defferent format, it will cause an error saying maximum lenght exceeded how am i going to prevent that error..anyway if you could fix this codes much better coz i been looping all the parent folder and the next is the loop of each files on each parent folder, and i cant find any solutions..please i need your help guys if you could codes provide some codes, i've be thankful for that..

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

string rootFolder = "";

 

 

string[] parts;

 

 

string name = "";

 

 

if (cUserInfo.MemberKey == "000001")

 

{

rootFolder = Server.MapPath(

"../MEMBERS");

 

parts = rootFolder.Split(

'\\');

 

name = parts[parts.Length - 1];

name =

"IBOS Directories";

 

}

 

else

 

{

rootFolder = Server.MapPath(

"../MEMBERS/" + cUserInfo.MemberMnemonic.Trim());

 

parts = rootFolder.Split(

'\\');

 

name = parts[parts.Length - 1];

}

 

if (!Directory.Exists(rootFolder))

 

{

cXML.CopyDirectory(Server.MapPath(

"../MEMBERS/BANK1"), rootFolder, true);

 

}

 

RadTreeNode rootNode = new RadTreeNode(rootFolder);

 

rootNode.ImageUrl =

"../Images/Folder.gif";

 

rootNode.Category =

"Folder";

 

rootNode.Expanded =

true;

 

rootNode.Text = name;

rootNode.NavigateUrl = rootFolder;

RadTreeView1.Nodes.Add(rootNode);

RadTreeView1.MultipleSelect =

true;

 

Session[

"Rootnode"] = rootNode;

 

BindTreeToDirectory(rootFolder, rootNode);

}

 

private void BindTreeToDirectory(string dirPath, RadTreeNode parentNode)

 

{

 

string[] dirs = Directory.GetDirectories(dirPath); // this one will loop through out the folder

 

 

foreach (string s in dirs)

 

{

 

string[] parts = s.Split('\\');

 

 

string name = parts[parts.Length - 1];

 

 

if (name != "BANK1")

 

{

 

RadTreeNode node = new RadTreeNode(name);

 

node.ImageUrl =

"../Images/Folder.gif";

 

node.Value = name;

node.Category =

"Folder";

 

parentNode.Nodes.Add(node);

BindTreeToDirectory(s, node);

}

}

 

string[] files = Directory.GetFiles(dirPath); //this one will loop throught out the files and load to there respective parent folder

 

 

foreach (string fileName in files)

 

{

 

string[] parts = fileName.Split('\\');

 

 

string name = parts[parts.Length - 1];

 

 

//RadTreeNode node = new RadTreeNode(name);

 

 

RadTreeNode node = new RadTreeNode(fileName);

 

 

FileInfo fi = new FileInfo(fileName);

 

node.ImageUrl =

"../Images/File.gif";

 

node.Value =

String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());

 

node.Category =

"File";

 

node.Text = name;

node.ToolTip =

String.Format("{0}@{1}@{2}", fi.Name, fi.Length, fi.LastWriteTime.ToString());

 

node.NavigateUrl = fileName;

 

parentNode.Nodes.Add(node);

}

}


i would be greatful and appreciate if you could held me hand on this problem
thanks to all

jhols slow
Top achievements
Rank 1
 asked on 15 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?